New: Host kernel freezes when I shutdown guest
https://bugzilla.kernel.org/show_bug.cgi?id=120751
Bug ID: 120751
Summary: Host kernel freezes when I shutdown guest
Product: Virtualization
Version: unspecified
Kernel Version: 4.6.2
Hardware: x86-64
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: kvm
Assignee: [email protected]
Reporter: [email protected]
Regression: NoI wasn't able to find the smallest case that would cause this, so I'll describe the whole procedure how to reproduce this. I'll then try to narrow down the cause. If there is some information I might gather anywhere, I'll be more than happy to provide such information.
Reproducible: always
Steps:
1) I start a guest, switch to text console and login.
2) Then in the host I run:
a) 'virsh dompmsuspend $guest mem' which tells the guest's qemu-ga to
suspend to RAM.
b) I then run 'virsh dompmwakeup $guest' to wake it up. The guest console
misbehaves at this point (which is what I am trying to reproduce to solve another bug).
3) So I connect using ssh and run 'shutdown -h now'.
Actual results:
At that point last fraction of the second of the music I was playing (whatever remained in the buffer, I guess) starts repeating and the host stops responding. Even Magic SysRq doesn't work. I have to manually force the host off with a button and boot again.
Expected results:
Host keeps running.
I've first seen that in 4.6.2, I tried 4.6.0 and it happened as well. I'm not sure whether this is related to Virtualization or graphics drivers or anything else.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 120751] Host kernel freezes when I shutdown guest
https://bugzilla.kernel.org/show_bug.cgi?id=120751
--- Comment #1 from Martin Kletzander <[email protected]> ---
$ uname -a Linux wheatley 4.6.2 #1 SMP PREEMPT Tue Jun 21 13:50:41 CEST 2016 x86_64 Intel(R) Core(TM) i7-4900MQ CPU @ 2.80GHz GenuineIntel GNU/Linux
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 120751] Host kernel freezes when I shutdown guest
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=120751
--- Comment #2 from Martin Kletzander <[email protected]> --- Created attachment 220841
--> https://bugzilla.kernel.org/attachment.cgi?id=220841&action=edit
kernel config
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 120751] Host kernel freezes when I shutdown guest
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=120751
--- Comment #3 from Martin Kletzander <[email protected]> --- Another reboot and I can confirm that the PM suspend is not needed. Starting a guest and then running 'shutdown -h now' through ssh is enough.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 120751] Host kernel freezes when I shutdown guest
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=120751
--- Comment #4 from Martin Kletzander <[email protected]> --- Created attachment 220851
--> https://bugzilla.kernel.org/attachment.cgi?id=220851&action=edit
Domain XML
Domain XML added in case someone asks although it probably doesn't have anything in common with the issue. QEMU command line looks like this (in case that helps):
/usr/bin/qemu-system-x86_64 -name guest=rhel7,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-1-rhel7/master-key.aes
-machine pc-i440fx-1.7,accel=kvm,usb=off,dump-guest-core=off -cpu SandyBridge
-m 4096 -realtime mlock=off -smp 4,sockets=4,cores=1,threads=1 -numa node,nodeid=0,cpus=0,cpus=2,mem=2048 -numa node,nodeid=1,cpus=1,cpus=3,mem=2048
-uuid f49fa544-f21d-4267-8958-d82570644f39 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-1-rhel7/monitor.sock,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown
-boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 -drive if=none,id=drive-ide0-0-0,readonly=on -device ide-cd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive file=/var/lib/libvirt/images/rhel7.img,format=qcow2,if=none,id=drive-virtio-disk0
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=25,id=hostnet0,vhost=on,vhostfd=27 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:42:be:45,bus=pci.0,addr=0x3
-netdev tap,fd=28,id=hostnet1 -device rtl8139,netdev=hostnet1,id=net1,mac=52:54:00:42:be:55,bus=pci.0,addr=0x7
-chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -chardev socket,id=charchannel1,path=/var/lib/libvirt/qemu/channel/target/domain-1-rhel7/org.qemu.guest_agent.0,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0 -device usb-tablet,id=input0 -vnc
unix:/var/lib/libvirt/qemu/domain-1-rhel7/vnc.sock -spice port=5901,tls-port=5902,addr=127.0.0.1,disable-ticketing,x509-dir=/etc/pki/libvirt-spice,seamless-migration=on -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=8,max_outputs=1,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -device pvpanic -msg
timestamp=on
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 120751] Host kernel freezes when I shutdown guest
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=120751
Martin Kletzander <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Kernel Version|4.6.2 |4.6.0 through 4.6.2
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 120751] Host kernel freezes when I shutdown guest
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=120751
--- Comment #5 from Martin Kletzander <[email protected]> --- Created attachment 221001
--> https://bugzilla.kernel.org/attachment.cgi?id=221001&action=edit
stacktrace photo
I managed to get a shot of the stacktrace but it's missing all modules loaded. I can reproduce it if the list and it's proof is needed.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 120751] Host kernel freezes when I shutdown guest
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=120751
Martin Kletzander <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID--- Comment #6 from Martin Kletzander <[email protected]> --- Sorry for the noise, I've found smaller reproducer and since that doesn't involve virtualization (as it is related to networking), I'll post that into separate bug so that others don't need to read through irrelevant information.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.