Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#30551 - [qemu-kvm] guest crash after update to 1.1.0-1
Attached to Project:
Arch Linux
Opened by Naoki Kawakami (aya) - Thursday, 05 July 2012, 13:26 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 08 July 2012, 10:12 GMT
Opened by Naoki Kawakami (aya) - Thursday, 05 July 2012, 13:26 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 08 July 2012, 10:12 GMT
|
DetailsDescription:
After updating from 1.0.1-3 to 1.1.0-1 my guests (rhel 6.2) crash after some time during boot Additional info: * package version(s) Upgrade qemu-kvm 1.0.1-3 > 1.1.0-1 Steps to reproduce: Upgrade and try to start your guests Workaround: Go back to qemu-kvm 1.0.1-3 and the guest start with no problems. |
This task depends upon
http://ompldr.org/vZW51bQ
I am using libvirt to start the VM and it fails on me.
Here is what I see in the log for VM
/var/log/libvirt/qemu/rhel-1.log
2012-07-05 15:44:33.926+0000: starting up
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -name rhel-1 -S -M pc-0.15 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -uuid 5981d8f3-fa10-dc72-0ea1-b0283a14ac1b -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/rhel-1.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=/home/user/kvm-vms/rhel-1.img,if=none,id=drive-virtio-disk0,format=raw,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive file=/home/user/kvm-vms/rhel-1.2.img,if=none,id=drive-virtio-disk1,format=raw,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x8,drive=drive-virtio-disk1,id=virtio-disk1 -drive file=/home/user/data/archives/os/redhat/rhel6.2_64bit/rhel-server-6.2-x86_64-dvd.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=18,id=hostnet0,vhost=on,vhostfd=19 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:6c:de:61,bus=pci.0,addr=0x3 -netdev tap,fd=20,id=hostnet1,vhost=on,vhostfd=21 -device virtio-net-pci,netdev=hostnet1,id=net1,mac=52:54:00:86:35:d6,bus=pci.0,addr=0x7 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 -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=0x6
Domain id=1 is tainted: high-privileges
char device redirected to /dev/pts/3
2012-07-05 15:44:47.247+0000: shutting down
/var/log/messages.log
Jul 6 00:51:09 mypc NetworkManager[336]: <warn> /sys/devices/virtual/net/vnet0: couldn't determine device driver; ignoring...
Jul 6 00:51:09 mypc kernel: [11039.682477] device vnet0 entered promiscuous mode
Jul 6 00:51:09 mypc kernel: [11039.708394] virbr0: topology change detected, propagating
Jul 6 00:51:09 mypc kernel: [11039.708407] virbr0: port 1(vnet0) entered forwarding state
Jul 6 00:51:09 mypc kernel: [11039.708432] virbr0: port 1(vnet0) entered forwarding state
Jul 6 00:51:09 mypc kernel: device vnet1 entered promiscuous mode
Jul 6 00:51:09 mypc NetworkManager[336]: <warn> /sys/devices/virtual/net/vnet1: couldn't determine device driver; ignoring...
Jul 6 00:51:09 mypc kernel: [11039.800908] virbr1: topology change detected, propagating
Jul 6 00:51:09 mypc kernel: [11039.800915] virbr1: port 2(vnet1) entered forwarding state
Jul 6 00:51:09 mypc kernel: [11039.800923] virbr1: port 2(vnet1) entered forwarding state
Jul 6 00:51:09 mypc libvirtd[3614]: 2012-07-05 15:51:09.250+0000: 3616: warning : qemuDomainObjTaint:1371 : Domain id=2 name='rhel-1' uuid=5981d8f3-fa10-dc72-0ea1-b0283a14ac1b is tainted: high-privileges
Jul 6 00:51:22 mypc kernel: qemu-kvm[4273]: segfault at 10 ip 00007fb514a6ad0e sp 00007fb50cd46c00 error 4 in qemu-system-x86_64[7fb51493a000+308000]
Jul 6 00:51:22 mypc kernel: [11052.998846] virbr0: port 1(vnet0) entered disabled state
Jul 6 00:51:22 mypc kernel: [11053.004312] virbr0: port 1(vnet0) entered disabled state
Jul 6 00:51:22 mypc kernel: [11053.004757] device vnet0 left promiscuous mode
Jul 6 00:51:22 mypc kernel: [11053.004763] virbr0: port 1(vnet0) entered disabled state
Jul 6 00:51:22 mypc kernel: virbr1: port 2(vnet1) entered disabled state
Jul 6 00:51:22 mypc kernel: device vnet1 left promiscuous mode
Jul 6 00:51:22 mypc kernel: virbr1: port 2(vnet1) entered disabled state
Jul 6 00:51:22 mypc libvirtd[3614]: 2012-07-05 15:51:22.590+0000: 3614: error : qemuMonitorIORead:526 : Unable to read from monitor: Connection reset by peer
I have created a new VM (rhel-3) with the same settings and it worked. Then I stopped one of the failing ones on grub menu and compared the qemu-kvm processes on the host:
fail:
/usr/bin/qemu-kvm -name rhel-2 -S -M pc-0.15 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -uuid 1b30ba09-0190-204b-26da-425b5f9247e5 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/rhel-2.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=/home/user/kvm-vms/rhel-2.img,if=none,id=drive-virtio-disk0,format=raw,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive file=/home/user/data/archives/os/redhat/rhel6.2_64bit/rhel-server-6.2-x86_64-dvd.iso,if=none,id=drive-ide0-1-0,readonly=on,format=raw,cache=none,aio=native -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=19,id=hostnet0,vhost=on,vhostfd=21 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:6c:a8:3e,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 -vnc 127.0.0.1:1 -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=0x6
ok:
/usr/bin/qemu-kvm -name rhel-3 -S -M pc-1.1 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -uuid 17eb21d8-303f-ab88-b12f-a91be34e0930 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/rhel-3.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=/home/user/kvm-vms/rhel-3.img,if=none,id=drive-virtio-disk0,format=raw,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive file=/home/user/data/archives/os/redhat/rhel6.2_64bit/rhel-server-6.2-x86_64-dvd.iso,if=none,id=drive-ide0-1-0,readonly=on,format=raw,cache=none,aio=native -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=19,id=hostnet0,vhost=on,vhostfd=20 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:a9:3e:40,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 -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=0x6
The only difference is right in the very beginning:
-M pc-0.15 - fail
-M pc-1.1 - ok
Edited
/etc/libvirt/qemu/rhel-2.xml
<type arch='x86_64' machine='pc-0.15'>hvm</type>
↓
<type arch='x86_64' machine='pc-1.1'>hvm</type>
Restarted libvirt.
Booted rhel-2 and it all worked.
[user@mypc ~]$ qemu-kvm -M ?
Supported machines are:
pc Standard PC (alias of pc-1.1)
pc-1.1 Standard PC (default)
pc-1.0 Standard PC
pc-0.15 Standard PC
pc-0.14 Standard PC
pc-0.13 Standard PC
pc-0.12 Standard PC
pc-0.11 Standard PC, qemu 0.11
pc-0.10 Standard PC, qemu 0.10
isapc ISA-only PC
But I have no idea why pc-0.15 fails.