Page 1 of 1

qemu-kvm installation problem

Posted: 22. Jan 2011, 23:04
by garby
When using

Code: Select all

slapt-get -i qemu-kvm
I get the following error:
FATAL: Error inserting kvm_amd (/lib/modules/2.6.33.4/kernel/arch/x86/kvm/kvm-amd.ko): Operation not supported
Strange to see that the script tries to insert the module from 32-bit architecture, even though the package is made for 64-bit arch! And I could not find any x86_64 directory under same directory. Is it a bug?

Also, is is not clear whether vde is needed to run qemu-kvm, nor available as dependency? The document (http://www.unixwerk.eu/linux/kvm4win.html#C02) states that vde is needed.

I could not ind the libvirt package so that qemu-kvm can be run with libvirt0 interface. Any suggestions would be appreciated!

Re: qemu-kvm installation problem

Posted: 23. Jan 2011, 10:08
by gapan
No, the directory is right. You get that error because your CPU doesn't have any virtualization support, so you can't use the kvm part of qemu. That means that qemu will be terribly slow.

Re: qemu-kvm installation problem

Posted: 24. Jan 2011, 20:10
by pwatk
'/lib/modules/2.6.33.4/kernel/arch/x86/kvm/kvm-amd.ko' is still a valid location for a 64bit system.

Auto loading of the kernel module has been removed from the installation script (doinst.sh) for Salix 13.2 but I still have no idea how I would detect this situation within the rc script.

Re: qemu-kvm installation problem

Posted: 25. Jan 2011, 06:22
by garby
@gapan @pwatk: Thanks!

Re: qemu-kvm installation problem

Posted: 25. Jan 2011, 08:37
by thenktor
pwatk wrote:'/lib/modules/2.6.33.4/kernel/arch/x86/kvm/kvm-amd.ko' is still a valid location for a 64bit system.
And to be totally correct: It's a valid location for a x86_64 system :mrgreen: :ugeek: :twisted:

PS: Of course other architectures have 64 bit support, too. But we are talking about x86 systems here.

Re: qemu-kvm installation problem

Posted: 25. Jan 2011, 12:17
by pwatk
thenktor wrote:
pwatk wrote:'/lib/modules/2.6.33.4/kernel/arch/x86/kvm/kvm-amd.ko' is still a valid location for a 64bit system.
And to be totally correct: It's a valid location for a x86_64 system :mrgreen: :ugeek: :twisted:

PS: Of course other architectures have 64 bit support, too. But we are talking about x86 systems here.
:roll: :)

Re: qemu-kvm installation problem

Posted: 25. Jan 2011, 22:15
by pwatk
I've added a few lines to rc.kvm to exit with an error if your processor doesn't support the vmx (intel) or svm (amd) virtualisation extensions:

Code: Select all

...
if [ ! "$(egrep '^flags.*(vmx|svm)' /proc/cpuinfo)" ]; then
  echo "$(basename $0): KVM virtualisation is not supported or disabled by the BIOS"
  exit 1
fi
...
Expect a new package on the bugtracker for current in the next few days (I'm not updating the package for 13.1).