[SOLVED] Building SlackBuilds KVM doesn't work, 2.6.35.4 kernel
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Building SlackBuilds KVM doesn't work, 2.6.35.4 kernel
Hi,
since there was a lot of talk about virtualization I thought I try kvm -- before I used VirtualBox.
I took the SlackBuild from SlackBuilds.org and got an error with u8 as type in /usr/include/scsi/scsi.h. (sorry, I don't have the exact error message anymore..) I searched for its definition and I only found __u8 in /usr/include/linux/types.h. Then I searched the web and found a "fix" which says I have to change u8 from /usr/include/scsi/scsi.h to __u8.
Okay, this problem was solved, but when I run the SlackBuild now it stops at some point and I don't know why. These are the last few lines of output:
Quote:
CC arm-softmmu/translate.o
CC arm-softmmu/tcg/tcg.o
CC arm-softmmu/tcg/tcg-runtime.o
CC arm-softmmu/fpu/softfloat.o
CC arm-softmmu/op_helper.o
CC arm-softmmu/helper.o
CC arm-softmmu/neon_helper.o
CC arm-softmmu/iwmmxt_helper.o
CC arm-softmmu/disas.o
CC arm-softmmu/i386-dis.o
CC arm-softmmu/arm-dis.o
CC arm-softmmu/vl.o
CC arm-softmmu/monitor.o
CC arm-softmmu/gdbstub-xml.o
AR i386-softmmu/libqemu.a
LINK i386-softmmu/qemu
AR arm-softmmu/libqemu.a
LINK arm-softmmu/qemu-system-arm
root@tux:/home/christian/Downloads/kvm#
I put an echo after the make for building kvm and I put an echo after "make install". None of them are printed.
as you can see here, kvm is the name of the old version of the package stopped in 2009, userspace tools (the modified qemu) and the kernel modules: with 2010 (someone correct me if I'm saying bull**** ) they are packaging only the new stable branch named qemu-kvm containing only the userspace tools (as the kvm modules are already shipped with your distribution's kernel).
But it is still very slow. I think I'll read some tutorials about kvm and if it won't be faster I'll change back to VirtualBox or VMware.
Did you load the kvm modules first:
Code:
modprobe kvm-intel
- or -
modprobe kvm-amd
If either of those don't load then either your CPU doesn't support virtualization or your motherboard BIOS doesn't support virtualization. A BIOS upgrade is sometimes needed to gain access to the virtualization of the motherboad depending on how old it is.
Yep, I loaded the kvm-amd module. lsmod verified it.
About the BIOS update: I'd never update a BIOS if it's not absolutely necessary. If it doesn't work due to my BIOS version I'd rather take another virtualization program.
Yep, I loaded the kvm-amd module. lsmod verified it.
About the BIOS update: I'd never update a BIOS if it's not absolutely necessary. If it doesn't work due to my BIOS version I'd rather take another virtualization program.
AFAIK, you won't get hardware virtualization from other programs if this isn't enabled by your BIOS.
Also, unless i missed something, if you have the hardware virtualization extension enabled you should see a svm (for AMD) or vmx (for Intel) on your /proc/cpuinfo in the flags line.
As for qemu, you can alternate to the VM console using ctrl+alt+2 and run "info kvm" to see if it go the kvm support enabled.
The qemu command is just the emulator without any acceleration. It's slower than qemu-kvm even if you add the -enable-kvm option.
Use qemu-system-x86_64 in place of qemu. Don't worry about the reference to x86_64 if you're running 32 bit because it works for both 32 bit and 64 bit.
If I've kept up so far, you've installed packages for qemu, kvm and qemu-kvm. As mentioned earlier in the thread, all you need is qemu-kvm. I suggest you uninstall the qemu and kvm packages.
Note that the virtio interface requires a customized kernel with the virtio-blk module, you'd have to replace it for scsi or ide if you don't want to customize the installer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.