Submitted by someguy on Mon, 12/28/2009 - 02:18
I have a dedicated server which I use Xen on, but am replacing it with a server I built for local colocation that I would like to use KVM on (for better Windows Server 2008 virtualization). The problem is I receive the following error when trying to register KVM after following this guide
Failed to save KVM host : The selected system cannot support KVM instances : The required command qemu-kvm or kvm does not exist. Perhaps the KVM software is not installed?
It's true, there is no qemu-kvm or kvm since (I believe) Cloudmin should be using qemu-system-x86_64 on my CentOS 5.4 x86_64 installation. Am I wrong, and if so, what should I be doing in addition to or instead of what is laid out in the setup guide?
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Mon, 12/28/2009 - 02:28 Comment #1
Interesting, I didn't know that qemu was renamed on 64-bit systems.
You may be able to work around this with a command like :
ln -s `which qemu-system-x86_64` /usr/bin/qemu
Make sure you have the
qemu
package installed first from YUM though .. the issue may just be that qemu isn't installed.Submitted by someguy on Mon, 12/28/2009 - 15:21 Comment #2
No, I know it was installed.
# yum install qemu
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.highspeedweb.net
* base: mirror.stanford.edu
* extras: mirror.rackspace.com
* updates: mirror.newnanutilities.org
Setting up Install Process
Package qemu-0.9.0-4.x86_64 already installed and latest version
Nothing to do
I just decided to go with the link below, but wanted to make sure you either knew something needed to be changed or that you could tell something I was doing was wrong.
ln -s `which qemu-system-x86_64` /usr/bin/qemu-kvm
Submitted by JamieCameron on Mon, 12/28/2009 - 15:38 Comment #3
Also, do you have the
kvm
package installed. I just realized that this is what provides the qemu-kvm command..Submitted by someguy on Mon, 12/28/2009 - 18:58 Comment #4
Yes. I followed every step on the setup guide I linked to in my original post, the first of which installed the kvm package.
# yum install kvm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.igsobe.com
* base: mirror.ash.fastserv.com
* extras: mirror.rackspace.com
* updates: centos.omnispring.com
Setting up Install Process
Package kvm-83-105.el5_4.13.x86_64 already installed and latest version
Nothing to do
Submitted by JamieCameron on Mon, 12/28/2009 - 19:09 Comment #5
So does the
/usr/bin/qemu-kvm
file exist on your host system? It is normally part of thekvm
RPM package.If it does exist and Cloudmin isn't finding it, is
/usr/bin
in root's $PATH on the host system?Submitted by someguy on Mon, 12/28/2009 - 19:24 Comment #6
No,
qemu-kvm
only exists at/usr/libexec/qemu-kvm
Yes
# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
Submitted by JamieCameron on Mon, 12/28/2009 - 19:31 Comment #7
What files are in the
kvm
package then? You can see withrpm -ql kvm
Submitted by someguy on Mon, 12/28/2009 - 22:14 Comment #8
# rpm -ql kvm
/etc/sysconfig/modules/kvm.modules
/etc/udev/rules.d/65-kvm.rules
/usr/bin/ksmctl
/usr/libexec/qemu-kvm
/usr/share/kvm
/usr/share/kvm/bios.bin
/usr/share/kvm/extboot.bin
/usr/share/kvm/keymaps
/usr/share/kvm/keymaps/ar
/usr/share/kvm/keymaps/common
/usr/share/kvm/keymaps/da
/usr/share/kvm/keymaps/de
/usr/share/kvm/keymaps/de-ch
/usr/share/kvm/keymaps/en-gb
/usr/share/kvm/keymaps/en-us
/usr/share/kvm/keymaps/es
/usr/share/kvm/keymaps/et
/usr/share/kvm/keymaps/fi
/usr/share/kvm/keymaps/fo
/usr/share/kvm/keymaps/fr
/usr/share/kvm/keymaps/fr-be
/usr/share/kvm/keymaps/fr-ca
/usr/share/kvm/keymaps/fr-ch
/usr/share/kvm/keymaps/hr
/usr/share/kvm/keymaps/hu
/usr/share/kvm/keymaps/is
/usr/share/kvm/keymaps/it
/usr/share/kvm/keymaps/ja
/usr/share/kvm/keymaps/lt
/usr/share/kvm/keymaps/lv
/usr/share/kvm/keymaps/mk
/usr/share/kvm/keymaps/modifiers
/usr/share/kvm/keymaps/nl
/usr/share/kvm/keymaps/nl-be
/usr/share/kvm/keymaps/no
/usr/share/kvm/keymaps/pl
/usr/share/kvm/keymaps/pt
/usr/share/kvm/keymaps/pt-br
/usr/share/kvm/keymaps/ru
/usr/share/kvm/keymaps/sl
/usr/share/kvm/keymaps/sv
/usr/share/kvm/keymaps/th
/usr/share/kvm/keymaps/tr
/usr/share/kvm/pxe-e1000.bin
/usr/share/kvm/pxe-ne2k_pci.bin
/usr/share/kvm/pxe-pcnet.bin
/usr/share/kvm/pxe-rtl8139.bin
/usr/share/kvm/pxe-virtio.bin
/usr/share/kvm/vgabios-cirrus.bin
/usr/share/kvm/vgabios.bin
/usr/share/man/man1/qemu-kvm.1.gz
Do you have a clone, or were we just both on the same sleep/work pattern? XD
Submitted by JamieCameron on Tue, 12/29/2009 - 00:22 Comment #9
Ok, /usr/libexec/qemu-kvm is the command you really want.
The quick fix is to run :
ln -s /usr/libexec/qemu-kvm /usr/bin
The next Cloudmin release will look in the /usr/libexec directory too.
Submitted by someguy on Tue, 12/29/2009 - 18:48 Comment #10