Mark Wu has uploaded a new change for review.
Change subject: faqemu: use domain type 'qemu' instead of the emulator wrapper ......................................................................
faqemu: use domain type 'qemu' instead of the emulator wrapper
Engine always set kvmEnabled' to 'true' when staring a VM. Then vdsm will set domain type to 'kvm'. It will cause the following libivrt error on a host without kvm support:
"libvirtError: unsupported configuration: Domain requires KVM, but it is not available. Check that virtualization is enabled in the host BIOS, and host configuration is setup to load the kvm modules."
This patch sets domain type to 'qemu' in faqemu hook to override what set by vdsm core. Since libvirt can choose default emulator (qemu-system- x86_64 for x86_64,qemu) according to the domain type, we don't need use the emulator wrapper.
Change-Id: Ibd732d58a81977c1a2473485db92cd1787260e08 Signed-off-by: Mark Wu wudxw@linux.vnet.ibm.com --- M vdsm.spec.in M vdsm_hooks/faqemu/Makefile.am M vdsm_hooks/faqemu/before_vm_start.py D vdsm_hooks/faqemu/vdsm-faqemu 4 files changed, 2 insertions(+), 34 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/91/6391/1 -- To view, visit http://gerrit.ovirt.org/6391 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange Gerrit-Change-Id: Ibd732d58a81977c1a2473485db92cd1787260e08 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com