guest with vcpus>1 hangs; >1 guest at a time, hangs one of them; hard hang -- must virsh destroy. thanks.

Bug #455901 reported by Chandra Krintz
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kvm (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: kvm

I got a new intel i7 (950) and installed Ubuntu 9.04 and kvm-84
on it. I use this same config for a bunch of other machines
and it works fine. All my other machines are core2/xeon boxes
though. All are 64bit.

I try to run guestVM from an image that works on another box.
If I set vcpus in the config to 1 the guest starts. Otherwise
it hangs during boot after the lines:
...
[ 1.349990] Uniform CD-ROM driver Revision: 3.20
[ 1.350080] sr 1:0:0:0: Attached scsi generic sg1 type 5
[ 1.350264] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.350264] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.350264] uhci_hcd: USB Universal Host Controller Interface driver
[ 1.350264] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
[ 1.350264] uhci_hcd 0000:00:01.2: PCI INT D -> Link[LNKD] -> GSI 11 (level, high) -> IRQ 11
[ 1.350264] uhci_hcd 0000:00:01.2: UHCI Host Controller
[ 1.350264] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
[ 1.350264] uhci_hcd 0000:00:01.2: irq 11, io base 0x0000c020
[ 1.359995] usb usb1: configuration #1 chosen from 1 choice
[ 1.360018] hub 1-0:1.0: USB hub found
[ 1.360018] hub 1-0:1.0: 2 ports detected
[ 1.360020] PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[ 1.360020] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 1.360020] serio: i8042 AUX port at 0x60,0x64 irq 12
<hang's hard here -- I can only leave the console and do a virsh destroy to kill>

If I set vcpus=1 then guest starts fine.
If I start another guest, the first one hangs hard.
During either of these cases there is no information/error in syslog.
I do see "kvm: 10933: cpu0 unhandled wrmsr: 0xc0010117 data 0" during
boot but other users/bug reports say that thisis fixed or doesn't
cause a problem.

My system info is below:
version info:
QEMU PC emulator version 0.9.1 (kvm-84), Copyright (c) 2003-2008 Fabrice Bellard

guest kernel info:
Linux appscale-image 2.6.28-13-server #45-Ubuntu SMP Tue Jun 30 22:56:18 UTC 2009 x86_64 GNU/Linux

host cpu:
model name : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
cpu family : 6
cpu MHz : 3065.952
cpu cores : 4
cpuid level : 11

host unix (ubuntu):
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty

host kernel info:
Linux eagles 2.6.28-15-server #52-Ubuntu SMP Wed Sep 9 11:34:09 UTC 2009 x86_64 GNU/Linux

kvm:
  Installed: 1:84+dfsg-0ubuntu12.3
  Candidate: 1:84+dfsg-0ubuntu12.3
  Version table:
 *** 1:84+dfsg-0ubuntu12.3 0
        500 http://us.archive.ubuntu.com jaunty-updates/main Packages
        100 /var/lib/dpkg/status
     1:84+dfsg-0ubuntu11 0
        500 http://us.archive.ubuntu.com jaunty/main Packages
qemu:
  Installed: 0.10.0-1ubuntu1
  Candidate: 0.10.0-1ubuntu1
  Version table:
 *** 0.10.0-1ubuntu1 0
        500 http://us.archive.ubuntu.com jaunty/universe Packages
        100 /var/lib/dpkg/status

kvm config file:
<domain type='kvm'>
  <name>XXX</name>
  <uuid>XXX-ed3d-ff3c-11ad-c85f81c77b58</uuid>
  <memory>2097152</memory>
  <currentMemory>2097152</currentMemory>
  <vcpu>2</vcpu>
  <os>
    <type arch='x86_64' machine='pc'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='file' device='disk'>
      <source file='/local/kvm/images/test.qcow2'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <interface type='bridge'>
      <mac address='XX:XX:XX:XX:XX:XX'/>
      <source bridge='br0'/>
      <model type='virtio'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/2'/>
      <target port='0'/>
    </serial>
    <console type='pty' tty='/dev/pts/2'>
      <source path='/dev/pts/2'/>
      <target port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'/>
  </devices>
</domain>

thanks.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
KvmCmdLine:
 UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
 root 10933 1 0 555893 350892 0 08:12 ? 00:00:32 /usr/bin/kvm -S -M pc -m 2048 -smp 1 -name cs263-appscale -uuid 04844aaa-ed3d-ff3c-11ad-c85f81c77b58 -monitor pty -pidfile /var/run/libvirt/qemu//cs263-appscale.pid -boot c -drive file=/local/kvm/images/appscale1.2/cs263-appscale/disk0.qcow2,if=ide,index=0,boot=on -net nic,macaddr=52:54:01:30:00:0c,vlan=0,model=virtio -net tap,fd=18,script=,vlan=0,ifname=vnet1 -serial pty -parallel none -usb -vnc 127.0.0.1:1
MachineType: Gateway FX6801
Package: kvm 1:84+dfsg-0ubuntu12.3
ProcCmdLine: root=UUID=7bce9000-5b8d-43f4-90f5-6801c6c51943 ro max_loop=255
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.28-15.52-server
SourcePackage: kvm

Revision history for this message
Chandra Krintz (ckrintz) wrote :
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Marking low, since this happens with vcpus>1. Workaround is to use just one vcpu.

I'll try to reproduce.

:-Dustin

Changed in kvm (Ubuntu):
importance: Undecided → Low
Revision history for this message
Soren Hansen (soren) wrote :

We'd appreciate it if you could retest this on Karmic (the release coming out the day after tomorrow) to see if it still happens there.

Revision history for this message
Chandra Krintz (ckrintz) wrote : Re: [Bug 455901] Re: guest with vcpus>1 hangs; >1 guest at a time, hangs one of them; hard hang -- must virsh destroy. thanks.
Download full text (6.6 KiB)

Thanks,

After running for awhile vcpus=1 hangs as well. There
are no errors in any of the logs.

I've tried using xen in the interim and it all works: 1 cpu, 1+cpu,
and hvm. I guess I'll just stick with that until kvm is working
on intel i7. My machine is a Gateway FX6801-01 in case that
helps.

thanks
Chandra

On Tue, 2009-10-27 at 13:45 +0000, Dustin Kirkland wrote:
> Marking low, since this happens with vcpus>1. Workaround is to use just
> one vcpu.
>
> I'll try to reproduce.
>
> :-Dustin
>
> ** Changed in: kvm (Ubuntu)
> Importance: Undecided => Low
>
> --
> guest with vcpus>1 hangs; >1 guest at a time, hangs one of them; hard hang -- must virsh destroy. thanks.
> https://bugs.launchpad.net/bugs/455901
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “kvm” package in Ubuntu: New
>
> Bug description:
> Binary package hint: kvm
>
> I got a new intel i7 (950) and installed Ubuntu 9.04 and kvm-84
> on it. I use this same config for a bunch of other machines
> and it works fine. All my other machines are core2/xeon boxes
> though. All are 64bit.
>
> I try to run guestVM from an image that works on another box.
> If I set vcpus in the config to 1 the guest starts. Otherwise
> it hangs during boot after the lines:
> ...
> [ 1.349990] Uniform CD-ROM driver Revision: 3.20
> [ 1.350080] sr 1:0:0:0: Attached scsi generic sg1 type 5
> [ 1.350264] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> [ 1.350264] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
> [ 1.350264] uhci_hcd: USB Universal Host Controller Interface driver
> [ 1.350264] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
> [ 1.350264] uhci_hcd 0000:00:01.2: PCI INT D -> Link[LNKD] -> GSI 11 (level, high) -> IRQ 11
> [ 1.350264] uhci_hcd 0000:00:01.2: UHCI Host Controller
> [ 1.350264] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
> [ 1.350264] uhci_hcd 0000:00:01.2: irq 11, io base 0x0000c020
> [ 1.359995] usb usb1: configuration #1 chosen from 1 choice
> [ 1.360018] hub 1-0:1.0: USB hub found
> [ 1.360018] hub 1-0:1.0: 2 ports detected
> [ 1.360020] PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
> [ 1.360020] serio: i8042 KBD port at 0x60,0x64 irq 1
> [ 1.360020] serio: i8042 AUX port at 0x60,0x64 irq 12
> <hang's hard here -- I can only leave the console and do a virsh destroy to kill>
>
> If I set vcpus=1 then guest starts fine.
> If I start another guest, the first one hangs hard.
> During either of these cases there is no information/error in syslog.
> I do see "kvm: 10933: cpu0 unhandled wrmsr: 0xc0010117 data 0" during
> boot but other users/bug reports say that thisis fixed or doesn't
> cause a problem.
>
> My system info is below:
> version info:
> QEMU PC emulator version 0.9.1 (kvm-84), Copyright (c) 2003-2008 Fabrice Bellard
>
> guest kernel info:
> Linux appscale-image 2.6.28-13-server #45-Ubuntu SMP Tue Jun 30 22:56:18 UTC 2009 x86_64 GNU/Linux
>
> host cpu:
> model name : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
> cpu family : 6
> cpu MHz : 3065.952
> cpu cores : 4
> c...

Read more...

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Chandra-

Thanks for testing with 1 vcpu.

Can you also test with Karmic? The kvm bits have changed significantly since Jaunty.

:-Dustin

Changed in kvm (Ubuntu):
importance: Low → Medium
Revision history for this message
Chandra Krintz (ckrintz) wrote :

Hi All,

Sorry for the delay.
I've upgraded and tested on Karmic and it all
works fine (multiple VMs, multiple
CPUs etc). No hanging problems.

Thanks All!
-Chandra

Changed in kvm (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.