virtualization with kvm-84 on slackware 12.2
I'm having some problems with virtualization using kvm-84 on slackware 12.2. I can't seem to install any guest operating system, qemu-system-x86_64 causes a general protection fault as soon as I start any installer. The system has an intel core2 quad cpu, and virtualization is enabled in bios. I run a slightly modified (highmem support) 2.6.27.7-smp kernel.
Here's what I did: I downloaded kvm-84, compiled and installed it. This created the kvm kernel modules in /lib/modules/2.6.27.7-smp/extra/. I loaded the intel module with modprobe kvm-intel. /dev/kvm was created with root as owner and group. The kvm howto says to run qemu-system using sudo, but I created a kvm group instead and chgrp'd /dev/kvm to that group. I added my user account to the kvm group. Code:
ls -la /dev/kvm Code:
qemu-img create -f qcow image.img 10G Code:
Mar 26 10:06:52 quad kernel: general protection fault: 0000 [#3] SMP |
Did you check that your CPU support Intel VT ? It seems that some Core 2 do but others don't.
You could check on this page or @ http://processorfinder.intel.com/ or simply look at "cat /proc/cpuinfo|grep vmx"'s output. The CPU should have the "vmx" flag if it is VT-able. Mine is not :( PS There is a SlackBuild for kvm-83 @ http://slackbuilds.org (it needs some editing to work with kvm-84 though). EDIT This post was wrong about flag to check for, edited accordingly. |
/proc/cpuinfo shows the vmx flag which should indicate virtualization support. The kvm-intel module seems to load just fine:
Code:
modprobe kvm-intel |
From what I remember you'll be having problems with x86_64-guests when your OS is 32-bit, which Slackware is.
You still should be able to emulate a 64-bit system, but you won't enjoy the benefits which KQEmu or KVM are supposed to give you. Thus, performance-wise, it would be better to use 32-bit guests. I may be wrong about this, but that's how I remember it. |
In addition to your steps I created a udev rule.
file: /lib/udev/rules.d/65-kvm.rules Code:
KERNEL=="kvm", NAME="%k", GROUP="kvm", MODE="0660" |
How it works for me
I have no idea why your getting a seg fault, but I have several kvm virtual machines running on 12.2 with kernel 2.6.29
These are my notes on how to create install and boot them Also a url which may help To create an image for KVM dd if=/dev/zero of=fedora.img bs=1k count=0 seek=16000000 To Install /usr/bin/qemu-system-x86_64 -localtime -m 1024 -hda /img/fedora.img -cdrom /dev/cdrom -boot d Or /usr/bin/qemu-system-x86_64 -localtime -m 1024 -hda /img/winxp.img -cdrom /img/winxp_pro_us.iso -boot d To boot /usr/bin/qemu-system-x86_64 -localtime -m 1024 -hda /img/fedora.img -cdrom /dev/cdrom -soundhw es1370 http://alien.slackbook.org/dokuwiki/...slackware:qemu I also have a kvm group of which I am a member and somewhere along the line a udev rule was created KERNEL=="kvm", NAME="%k", GROUP="kvm", MODE="0660" i believe by the slackbuild from sbo john |
Quote:
Thanks also to Chuck56 and AlleyTrotter for the udev rule, that will make life a little easier. |
All times are GMT -5. The time now is 04:17 PM. |