Running libvirt with KVM

From KVM
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

When I build from source KVM and Libvirt (Ubuntu 8.10 desktop), I found that Libvirtd could not connect to

virsh -c qemu:///system

complaining that it couldnt connect to the hypervisor. I found that the qemu driver in virsh was hard coded to look in the following places for the qemu executable:


if ((virFileExists("/usr/bin/qemu")) ||
       (virFileExists("/usr/bin/qemu-kvm")) ||
       (virFileExists("/usr/bin/kvm")) ||
       (virFileExists("/usr/bin/xenner")))
       return 1;


The solution was to symlink

/usr/bin/kvm -> /usr/local/bin/qemu-system-x86_64


Then the libvirtd qemu driver found, and it all worked great