← Back to team overview

kernel-packages team mailing list archive

[Bug 1157589] Re: kvm hangs for freebsd guests since raring upgrade

 

** No longer affects: kvm (Ubuntu)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1157589

Title:
  kvm hangs for freebsd guests since raring upgrade

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  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+0000: 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=ffffffff80855a40 RBX=000000000009f000 RCX=00000000c0000080 RDX=0000000000000000
  RSI=0000000000000000 RDI=0000000000000000 RBP=0000000000000000 RSP=0000000000000000
  R8 =0000000000000000 R9 =0000000000000000 R10=0000000000000000 R11=0000000000000000
  R12=0000000000000000 R13=0000000000000000 R14=0000000000000000 R15=0000000000000000
  RIP=000000000009f076 RFL=00010086 [--S--P-] CPL=0 II=0 A20=1 SMM=0 HLT=0
  ES =0000 0000000000000000 0000ffff 0000f300 DPL=3 DS16 [-WA]
  CS =0008 0000000000000000 00000000 00209900 DPL=0 CS64 [--A]
  SS =9f00 000000000009f000 0000ffff 0000f300 DPL=3 DS16 [-WA]
  DS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS   [-WA]
  FS =0000 0000000000000000 0000ffff 0000f300 DPL=3 DS16 [-WA]
  GS =0000 0000000000000000 0000ffff 0000f300 DPL=3 DS16 [-WA]
  LDT=0000 0000000000000000 0000ffff 00008200 DPL=0 LDT
  TR =0000 0000000000000000 0000ffff 00008b00 DPL=0 TSS64-busy
  GDT=     000000000009f080 00000020
  IDT=     0000000000000000 0000ffff
  CR0=80000011 CR2=0000000000000000 CR3=000000000009c000 CR4=00000030
  DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 
  DR6=00000000ffff0ff0 DR7=0000000000000400
  EFER=0000000000000501
  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+0000: 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+0000: 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=ffffffff80bcccd0 RBX=000000000009f000 RCX=00000000c0000080 RDX=0000000000000000
  RSI=0000000000000000 RDI=0000000000000000 RBP=0000000000000000 RSP=0000000000000000
  R8 =0000000000000000 R9 =0000000000000000 R10=0000000000000000 R11=0000000000000000
  R12=0000000000000000 R13=0000000000000000 R14=0000000000000000 R15=0000000000000000
  RIP=000000000009f076 RFL=00010086 [--S--P-] CPL=0 II=0 A20=1 SMM=0 HLT=0
  ES =0000 0000000000000000 0000ffff 0000f300 DPL=3 DS16 [-WA]
  CS =0008 0000000000000000 00000000 00209900 DPL=0 CS64 [--A]
  SS =9f00 000000000009f000 0000ffff 0000f300 DPL=3 DS16 [-WA]
  DS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS   [-WA]
  FS =0000 0000000000000000 0000ffff 0000f300 DPL=3 DS16 [-WA]
  GS =0000 0000000000000000 0000ffff 0000f300 DPL=3 DS16 [-WA]
  LDT=0000 0000000000000000 0000ffff 00008200 DPL=0 LDT
  TR =0000 0000000000000000 0000ffff 00008b00 DPL=0 TSS64-busy
  GDT=     000000000009f080 00000020
  IDT=     0000000000000000 0000ffff
  CR0=80000011 CR2=0000000000000000 CR3=000000000009c000 CR4=00000030
  DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 
  DR6=00000000ffff0ff0 DR7=0000000000000400
  EFER=0000000000000501
  Code=00 00 00 80 0f 22 c0 ea 70 f0 09 00 08 00 48 b8 d0 cc bc 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

  From that,

    KVM internal error. Suberror: 1
    emulation failure

  doesn't tell me much about where to look at next :-/
  --- 
  ApportVersion: 2.9.2-0ubuntu1
  Architecture: amd64
  DistroRelease: Ubuntu 13.04
  InstallationDate: Installed on 2011-06-23 (636 days ago)
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64+mac (20110427.1)
  MarkForUpload: True
  Package: linux
  PackageArchitecture: amd64
  ProcVersionSignature: Ubuntu 3.8.0-13.23-generic 3.8.3
  Tags: third-party-packages raring
  Uname: Linux 3.8.0-13-generic x86_64
  UnreportableReason: This is not an official Ubuntu package. Please remove any third party package and try again.
  UpgradeStatus: Upgraded to raring on 2013-03-17 (4 days ago)
  UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare vboxusers wireshark

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1157589/+subscriptions