After updating my Gentoo host machine yesterday with emerge -avDNu world, which included update of kvm from app-emulation/qemu-kvm-0.13.0-r2 to app-emulation/qemu-kvm-0.14.1, I wasn’t able to boot my guests systems any more. So first thing I did was emerge qemu-kvm. It turns out that it doesn’t help – kvm file is still missing.
gentoo1 ~# ls -l /usr/bin/ | grep kvm -rwxr-xr-x 1 root root 66872 May 28 16:03 kvm.kss
Luckily for me I do have more Gentoo machines with KVM virtualization.
I’ve logged in on my other KVM Gentoo machine and found out following:
gentoo2 ~# ls -l /usr/bin/ | grep kvm lrwxrwxrwx 1 root root 17 Nov 11 2010 kvm -> /usr/bin/qemu-kvm -rwxr-xr-x 1 root root 61 Nov 11 2010 qemu-kvm
OK – so what’s the content of the qemu-kvm file?
gentoo2 ~# cat /usr/bin/qemu-kvm #!/bin/sh exec /usr/bin/qemu-system-x86_64 --enable-kvm "$@"
From the above you can easily fix the problem by creating qemu-kvm file with content above, plus adding the kvm symlink. Hope it’ll help.