From KVM
Revision as of 14:55, 4 February 2009 by WikiSysop (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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