You are not logged in.

#1 2007-07-26 08:19:42

javajunky
Member
Registered: 2006-11-13
Posts: 39

QEMU on Arch64?

Am I going mad, I cannot find a Qemu package when I do a pacman -Qs qemu , however the wiki refers to a qemu package and x86_64 in the same article which implies there is one ( http://wiki.archlinux.org/index.php/Qemu ) smile  [intention to use Qemu with the kvm modules in the .22 kernel]

Offline

#2 2007-07-26 08:54:32

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: QEMU on Arch64?

-Qs only looks for allready installed packages. To search the db use -Ss.

Offline

#3 2007-07-26 09:01:05

javajunky
Member
Registered: 2006-11-13
Posts: 39

Re: QEMU on Arch64?

Ah! I *swear* I did that, clearly I'm an idiot smile

Offline

#4 2007-07-26 09:20:18

javajunky
Member
Registered: 2006-11-13
Posts: 39

Re: QEMU on Arch64?

*sigh*, qemu-system-x86 gives me :
'Could not open '/dev/kqemu' - QEMU acceleration layer not activated'
I can find no sign of a qemu-kvm on my system, is there something else I need other than Qemu and the latest kernel26 packages ?
[qemu 0.9.0-1 is the package that was installed]

Offline

#5 2007-07-26 12:09:05

dongiovanni
Member
From: Germany
Registered: 2006-10-06
Posts: 110

Re: QEMU on Arch64?

qemu has no support for kvm. You need the kvm package from AUR.

Offline

#6 2007-07-26 12:23:59

javajunky
Member
Registered: 2006-11-13
Posts: 39

Re: QEMU on Arch64?

wink I *was* using the KVM AUR before the kvm modules stuff was dropped out of .21 kernel, now in .22, the KVM AUR appears to be completely deprecated, see the last comment here: http://aur.archlinux.org/packages.php?d … s=0&SeB=nd 
but that comment implies that the Qemu package should have been changed ?

Offline

#7 2007-07-26 12:27:28

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: QEMU on Arch64?

afaik qemu from testing supports kvm.

Offline

#8 2007-07-26 21:32:39

RobF
Member
Registered: 2006-10-10
Posts: 157

Re: QEMU on Arch64?

Note: the following applies to the 32-bit architecture; I don't know how much of this applies to Arch64.

The new kernel 2.6.22 comes with the modules kvm, kvm-intel and kvm-amd.  They are in /lib/modules/2.6.22-ARCH/kernel/drivers/kvm/ .  And when you install qemu, you get both qemu and qemu-kvm.

All you have to do is

1. Enable virtualization technology in your BIOS.
2. # modprobe kvm-intel         (or kvm-amd if you're using an AMD CPU; this loads both kvm-intel/amd and kvm)
3. $ qemu-kvm -cdrom /home/joe/Desktop/SabayonLinux-x86-3.4a.iso -hda qemulinux.img -m 256 -boot d
(that's just an example)

There are some permissions problems when you run qemu-kvm as an ordinary user.  The fix for these is in slubman's post from yesterday:

http://bbs.archlinux.org/viewtopic.php?id=35539

I've just about given up on qemu with kernel 2.6.22, using either the kqemu or the kvm full virtualization.  They seem to be very flaky with this kernel.

qemu ran beautifully with kqemu under kernel 2.6.18.  I've used close to 20 different ISO images of Linux live CD's that ran well under these circumstances.  With the upgrade to kernel 2.6.21 & 22 (and possibly the introduction of the tickless clock timer) qemu hangs with 75% of these images, regardless of whether you use kvm or kqemu.

When qemu-kvm works, it's great.  It runs Linux/Unix guest OS's almost at native speed.  E.g. this works with MCNLive-Toronto, MCNLive-Delft, BeaFanaTIX 2006.2, FreesBIE 2.0.1, DesktopBSD 1.6, RIPLinuX, and Puppy 2.17, but not with a dozen other Linux distros that worked with the older kernel.

I'd be curious to learn how qemu-kvm works for you.  For now, I'm investing my time in learning how to use Virtualbox.

Robert

Offline

#9 2007-10-03 10:02:18

steve-e
Member
Registered: 2007-10-03
Posts: 37

Re: QEMU on Arch64?

Hey,

I'd like to to use qemu in addition with kvm on my arch64 box. Has anyone a working qemu with kvm support? The package in testing does not work for me, it segfaults immediately when I try to run it with kvm.


steve

Offline

#10 2007-10-03 23:28:20

kappa
Member
Registered: 2006-11-10
Posts: 26

Re: QEMU on Arch64?

I am using the 0.9.0-5 PKGBUILD  without problems on Arch64.

Offline

#11 2007-10-04 18:40:07

steve-e
Member
Registered: 2007-10-03
Posts: 37

Re: QEMU on Arch64?

This does not work for me :-/

Whenever I run qemu-kvm with loaded kvm module (permissions are set correctly), I get the following TB.

/usr/bin/qemu-system-x86_64-kvm -boot d -m 300 -hda '/tmp/suse.img' -cdrom  '/tmp/openSUSE-10.3-GM-GNOME-i386-iso/openSUSE-10.3-GM-GNOME-i386.iso' -net nic,vlan=0 -net user,vlan=0 -localtime &
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.
exception 6 (0)
rax 0000000000000671 rbx 0000000000800000 rcx 0000000000000000 rdx 00000000000013ca
rsi 0000000000055e1c rdi 0000000000055e1d rsp 00000000fffa0080 rbp 000000000000200b
r8  0000000000000000 r9  0000000000000000 r10 0000000000000000 r11 0000000000000000
r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15 0000000000000000
rip 000000000000b071 rflags 00033096
cs 4004 (00040040/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ds 4004 (00040040/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
es 00ff (00000ff0/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ss ff11 (000ff110/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
fs 3002 (00030020/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
gs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
tr 0000 (13450000/00002088 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0)
ldt 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 0 type 2 l 0 g 0 avl 0)
gdt 40920/47
idt 0/ffff
cr0 60000010 cr2 0 cr3 0 cr4 0 cr8 0 efer 0
code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Offline

#12 2007-10-06 16:25:54

steve-e
Member
Registered: 2007-10-03
Posts: 37

Re: QEMU on Arch64?

Even wit the qemu update a view days ago, it is still broken for me.

Offline

#13 2007-10-07 12:44:22

kappa
Member
Registered: 2006-11-10
Posts: 26

Re: QEMU on Arch64?

While I don't know what's wrong, here are a few ideas:
- try installing the OS without kvm and see whether it boots from the HD image with kvm.
- do other Live CDs / HD images work?
- try minimal boot options. (only image or iso, no network)

If you have an Intel cpu, your problem might be related to this.

Offline

Board footer

Powered by FluxBB