Public bug reported:
Until I upgraded to raring, freebsd guest has been one of my most stable
guest under kvm (and previously under vbox for that matter).
Since the upgrade to raring, my existing guest hangs very early in the
boot process ending with the following in
/var/log/libvirt/qemu/freebsd8.log :
2013-03-20 07:47:53.020+: starting up
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
QEMU_AUDIO_DRV=none /usr/bin/kvm -name freebsd8 -S -M pc-1.0 -m 4096 -smp
2,sockets=2,cores=1,threads=1 -uuid 1babac4e-de14-5f5d-73e9-dfe524966f9a
-no-user-config -nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/freebsd8.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown
-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive
file=/caviar3/libvirt/images/freebsd-8.0-64bits.qcow2,if=none,id=drive-ide0-0-0,format=qcow2
-device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1
-netdev tap,fd=30,id=hostnet0 -device
e1000,netdev=hostnet0,id=net0,mac=08:00:27:5f:9f:06,bus=pci.0,addr=0x3 -chardev
pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -vnc
127.0.0.1:0 -vga cirrus -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device
hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
W: kvm binary is deprecated, please use qemu-system-x86_64 instead
char device redirected to /dev/pts/6 (label charserial0)
KVM internal error. Suberror: 1
emulation failure
RAX=80855a40 RBX=0009f000 RCX=c080
RDX=
RSI= RDI= RBP=
RSP=
R8 = R9 = R10=
R11=
R12= R13= R14=
R15=
RIP=0009f076 RFL=00010086 [--S--P-] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES = f300 DPL=3 DS16 [-WA]
CS =0008 00209900 DPL=0 CS64 [--A]
SS =9f00 0009f000 f300 DPL=3 DS16 [-WA]
DS =0018 00c09300 DPL=0 DS [-WA]
FS = f300 DPL=3 DS16 [-WA]
GS = f300 DPL=3 DS16 [-WA]
LDT= 8200 DPL=0 LDT
TR = 8b00 DPL=0 TSS64-busy
GDT= 0009f080 0020
IDT=
CR0=8011 CR2= CR3=0009c000 CR4=0030
DR0= DR1= DR2=
DR3=
DR6=0ff0 DR7=0400
EFER=0501
Code=00 00 00 80 0f 22 c0 ea 70 f0 09 00 08 00 48 b8 40 5a 85 80 ff ff ff ff
ff e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 99 20 00 ff ff 00 00
qemu: terminating on signal 15 from pid 2474
2013-03-20 07:49:36.834+: shutting down
To isolate the issue (and hoping for some change in more recent freebsd
versions) I tried creating a new vm but hit the same issue.
Using ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/ISO-
IMAGES/9.1/FreeBSD-9.1-RELEASE-amd64-bootonly.iso , I end up with the
following /var/log/libvirt/qemu/freebsd9.log which includes the kvm
command :
2013-03-20 07:52:03.780+: starting up
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
QEMU_AUDIO_DRV=none /usr/bin/kvm-spice -name freebsd9 -S -M pc-i440fx-1.4 -m
4096 -smp 2,sockets=2,cores=1,threads=1 -uuid
1ae60371-46e3-641b-4d85-9b3e5ac3cb3c -no-user-config -nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/freebsd9.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown
-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive
file=/caviar3/libvirt/images/freebsd9.img,if=none,id=drive-ide0-0-0,format=raw
-device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1
-drive
file=/caviar3/libvirt/installers/freebsd/FreeBSD-9.1-RELEASE-amd64-bootonly.iso,if=none,id=drive-ide0-1-0,readonly=on,format=raw
-device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev
tap,fd=30,id=hostnet0 -device
e1000,netdev=hostnet0,id=net0,mac=52:54:00:3e:70:67,bus=pci.0,addr=0x3 -chardev
pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -vnc
127.0.0.1:0 -vga cirrus -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device
hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
W: kvm binary is deprecated, please use qemu-system-x86_64 instead
char device redirected to /dev/pts/6 (label charserial0)
KVM internal error. Suberror: 1
emulation failure
RAX=80bcccd0 RBX=0009f000 RCX=c080
RDX=
RSI= RDI= RBP=
RSP=
R8 = R9