You are not logged in.

#1 2007-11-14 11:11:32

haukew
Member
From: Hamburg, Germany
Registered: 2007-10-25
Posts: 96
Website

kqemu with a custom kernel

Hi!
I am trying to run a Copy of WinXP in QEmu. QEmu itself works fine, but, of course, slow - so i thought about using KQEmu. I found the wikipage explaining QEmu, but i guess i have to compile KQEmu myself in order to use it with my custom kernel (i can't load the KQEmu-module with the prepackaged KQEmu). But looking in AUR i find no package for KQemu - can anybody help me with this? And do i have to compile QEmu itself, too?

This btw is the output i get when i run a virtual machine with kqemu enabled:

Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal
error, but for better emulation accuracy either use a 2.6 host Linux kernel or
type 'echo 1024 > /proc/sys/dev/rtc/max-user-freq' as root.
Could not open '/dev/kqemu' - QEMU acceleration layer not activated

Thanks in advance, Hauke

Last edited by haukew (2007-11-14 11:16:27)

Offline

#2 2007-11-14 11:21:42

somairotevoli
Member
Registered: 2006-05-23
Posts: 335

Re: kqemu with a custom kernel

http://wiki.archlinux.org/index.php/ABS

shouldn't have to compile qemu too.

To have a 1024 Hz timer, you would need to recompile your kernel w/ this option.

Last edited by somairotevoli (2007-11-14 11:23:24)

Offline

#3 2007-11-14 11:48:03

wideeye
Member
Registered: 2006-09-30
Posts: 32

Re: kqemu with a custom kernel

there's a kqemu package in abs. you can build that for your kernel by changing the _kernver variable in the PKGBUILD to what your "uname -r" returns

i found kvm to be faster then kqemu, so i would suggest trying that if your cpu supports it.

Offline

#4 2007-11-14 11:49:14

haukew
Member
From: Hamburg, Germany
Registered: 2007-10-25
Posts: 96
Website

Re: kqemu with a custom kernel

great, that was it, thanks :-)
here is what i did:

i (of course) installed abs, then executed "abs" to get the tree.
Then i copied the directory /var/abs/extra/modules/kqemu to /var/abs/local/kqemu .
Then i edited line "_kernver=" in the PKGBUILD to fit the name of my kernel (uname -r), in my case 2.6.23-custom.
Then i ran makepkg -i

And all was fine :-)

Man, that's _way_ easier than Gentoo!

P.S: Where can i set the 1024 Hz Timer? It's not the 1000Hz-one in

Processor type and features  ---> Timer frequency

is it? If so, i can only select 1000Hz (what i did)

[edit]@kvm: ok, i installed kvm and loaded the kernel-module - partly, that's what it says:

# modprobe kvm
# modprobe kvm-amd
FATAL: Error inserting kvm_amd (/lib/modules/2.6.23-custom/kernel/drivers/kvm/kvm-amd.ko): Operation not supported
#

But as far as i see it, kvm uses quemu, too, or do i get it wrong?

And yes, i compiled my kernel with AMD-kvm-support.

Device Drivers  ---> [*] Virtualization  ---> Virtualization ---> <M> KVM for AMD processors support

uname -a says this about my processor:
AMD Athlon(tm) 64 Processor 3500+ AuthenticAMD

Last edited by haukew (2007-11-14 11:58:03)

Offline

Board footer

Powered by FluxBB