qemu-kvm installation problem

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
garby
Posts: 48
Joined: 18. Jan 2011, 10:36

qemu-kvm installation problem

Post 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!
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: qemu-kvm installation problem

Post 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.
Image
Image
User avatar
pwatk
Posts: 474
Joined: 14. Mar 2010, 23:56
Location: United Kingdom

Re: qemu-kvm installation problem

Post 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.
Image
garby
Posts: 48
Joined: 18. Jan 2011, 10:36

Re: qemu-kvm installation problem

Post by garby »

@gapan @pwatk: Thanks!
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: qemu-kvm installation problem

Post 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.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
pwatk
Posts: 474
Joined: 14. Mar 2010, 23:56
Location: United Kingdom

Re: qemu-kvm installation problem

Post 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: :)
Image
User avatar
pwatk
Posts: 474
Joined: 14. Mar 2010, 23:56
Location: United Kingdom

Re: qemu-kvm installation problem

Post 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).
Image
Post Reply