FS#10366 - qemu 0.9.1-4: qemu + kqemu crashes guest linux os with ACPI enabled

Attached to Project: Arch Linux
Opened by Jörg Kriegel (sokoban65) - Tuesday, 06 May 2008, 21:24 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 04 August 2008, 11:17 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Qemu with loaded kqemu module crashes any random resent guest linux kernel. The previous package version did not. It seems this has something to do with the various incompatible ACPI-Tables in the bios.bin images from the kvm and qemu sources. Replacing /usr/share/qemu/bios.bin with the version from the qemu source fixes this bug, but then qemu-kvm has problems to bring the guest linux ethernet interface up and the guest linux is freezing sometimes. I suggest to fix this by providing separate bios images for qemu-kvm and qemu. See my patch.

Additional info:
* package version: qemu 0.9.1-4

Steps to reproduce:

$ sudo modprobe kqemu
$ qemu -cdrom arch-ftp-install-2008.04-rc-i686.iso

The Guest Linux Kernel is crashing while booting.

$ qemu -cdrom arch-ftp-install-2008.04-rc-i686.iso -no-acpi

This is a workaround for the problem.
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Monday, 04 August 2008, 11:17 GMT
Reason for closing:  Implemented
Comment by Glenn Matthys (RedShift) - Tuesday, 17 June 2008, 11:47 GMT
$ qemu -cdrom arch-ftp-install-2008.04-rc-i686.iso

You are starting qemu without the -m (memory) argument, which means it will allocate 128 megabytes of memory for the virtual machine. This may not be enough for the installer CD. Can you try again with -m 256 and the firmware images provided by the qemu package? That solved the problem for me.
Comment by Jörg Kriegel (sokoban65) - Tuesday, 24 June 2008, 19:13 GMT
I have tried with -m 256. It doesn't work for me. I attached the guest kernel log.
   dmesg (14.9 KiB)
Comment by Glenn Matthys (RedShift) - Tuesday, 24 June 2008, 19:15 GMT
What processor do you have? If you have hardware virtualization you should use that (modprobe kvm-intel || modprobe kvm-amd, and use qemu-kvm)
Comment by Jörg Kriegel (sokoban65) - Tuesday, 24 June 2008, 20:10 GMT
Yes, my processor supports kvm. I use it when possible (it's so much faster). But this doesn't help in a configuration where the proccessor doesn't support kvm. I also want to ask you RedShift, if you can run ifconfig with no problems? I always get a kernel oops in the guest doing this. Do you ran qemu on a 32bit the 64bit arch host? I ran it on a 32bit host.

Loading...