You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a script with cloubed library, this error raised when calling boot_vm():
generating template file
booting vm mngt0
libvir: QEMU error : Cannot find QEMU binary /usr/bin/kvm: No such file
or directory
ERROR:root:libvirt error: Cannot find QEMU binary /usr/bin/kvm: No such
file or directory
Cannot find QEMU binary /usr/bin/kvm: No such file or directory
Done.
The distribution is RHEL 6.3 with the following packages:
Currently, the path of KVM executable is hard-coded in cloubed, and it is given to Libvirt through the emulator element of the XML Domain.
The emulator element is documented in the devices section of Libvirt XML Domain documentation. The documentation especially explains that the default emulator (when there is not any specified emulator element) is given by Libvirt capabilities. And this is exactly what we want here.
The solution may be simply to remove the emulator element out of the XML Domain representation generated by cloubed.
When running a script with cloubed library, this error raised when calling
boot_vm()
:The distribution is RHEL 6.3 with the following packages:
Here is the [truncated] output of
virsh capabilities
:It looks like cloubed looks for KVM executable under path
/usr/bin/kvm
whereaslibvirt finds it under path
/usr/libexec/qemu-kvm
.The text was updated successfully, but these errors were encountered: