Bug 176694 - [kvm] KVM Guest Crash at Boot - kernel trap 12 with interrupts disabled [regression]
Summary: [kvm] KVM Guest Crash at Boot - kernel trap 12 with interrupts disabled [regr...
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Kyle Evans
URL:
Keywords: uefi
Depends on:
Blocks:
 
Reported: 2013-03-06 15:50 UTC by Juergen Gotteswinter
Modified: 2022-04-21 19:14 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Gotteswinter 2013-03-06 15:50:00 UTC
Trying to Install a 9.0 or 9.1 FreeBSD Guest on a Linux KVM Host ends
in the following error message directly after the Boot Menu:

kernel trap 12 with interrupts disabled

Enabling Verbose does not show more Information.

Tried to set hw.mca.enabled=0 and disabled acpi, without effect. Tested
FreeBSD 8.3, which works when setting hw.mca.enabled=0.

It seems like this Bug is initially triggered by the Qemu -cpu Parameter,
when "-cpu Opteron_G4" is set, this Bug happens.

How-To-Repeat: Try to Install a FreeBSD 9.x Guest on a Linux KVM Host with qemu Parameter
"-cpu Opteron_G4"

/usr/libexec/qemu-kvm -S -M rhel6.3.0 -cpu Opteron_G4 -enable-kvm -m 4096 -smp 8,sockets=2,cores=4,threads= ....
Comment 1 juergen.gotteswinter 2013-03-06 16:09:00 UTC
-HEAD shows the same Problem. So far only 8.x seems to be fine.
-- 
InterNetX GmbH
Maximilianstr. 6
93047 Regensburg
Germany

Tel.  +49 941 59559-480
Fax  +49 941 59559-245

www.internetx.com
www.facebook.com/InterNetX
www.twitter.com/InterNetX

Geschaftsführer/CEO: Thomas Mörz
Amtsgericht Regensburg, HRB 7142
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:29 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 3 David NewHamlet 2018-03-17 22:25:47 UTC
this still stay with FreeBSD-12.0-CURRENT-amd64-20180315-r331001-disc1.iso under Ubuntu 18.04 X86_64(Linux lxn550jk 4.15.0-10-generic #11-Ubuntu SMP Tue Feb 13 18:23:35 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux).

Ubuntu package info:
qemu-system-x86 1:2.11+dfsg-1ubuntu4  amd64 QEMU full system emulation binaries (x86)

I have try some tips from https://forums.freebsd.org/threads/freebsd-10-does-not-boot-kvm-kernel-trap-12.47409/ but it still not works.


kernel trap 12 with interrupts disabled --- FreeBSD-12.0-CURRENT-amd64-20180315-r331001-disc1.iso
boot normally                           --- FreeBSD-11.1-RELEASE-amd64-disc1.iso
boot normally                           --- FreeBSD-10.4-RELEASE-amd64-uefi-disc1.iso

test with follow command:

sudo /usr/bin/qemu-system-x86_64 -enable-kvm \
-machine pc-i440fx-bionic \
-cpu Haswell-noTSX \
-drive file=/usr/share/OVMF/OVMF_CODE.fd,if=pflash,format=raw,unit=0,readonly=on \
-drive file=/var/lib/libvirt/qemu/nvram/freebsd11.1_VARS.fd,if=pflash,format=raw,unit=1 \
-m 8192 -smp 4,sockets=4,cores=1,threads=1 \
-no-user-config -nodefaults \
-device ide-cd,drive=drive-sata0-0-1,id=sata0-0-1,bootindex=1 \
-drive file=/ds/data/iso/FreeBSD-11.1-RELEASE-amd64-disc1.iso,format=raw,if=none,id=drive-sata0-0-1,media=cdrom,readonly=on \
-vga std \
-display sdl
Comment 4 David NewHamlet 2018-03-18 10:07:45 UTC
FYI: only effect UEFI boot.
Comment 5 David NewHamlet 2018-04-01 23:39:48 UTC
Fixed in: FreeBSD-12.0-CURRENT-amd64-20180329-r331740-disc1.iso
Comment 6 Kyle Evans freebsd_committer freebsd_triage 2018-04-02 00:04:00 UTC
I guess I'll take this one, then. =) It'd be nice to know exactly what change we made to unbreak this, but I don't know that I care enough to ask you to bissecting it.