Running libvirt with KVM

From KVM

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")) ||
       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