Bug 1459945
Summary: | migration fails with hungup serial console reader on -M pc-i440fx-rhel7.0.0 and pc-i440fx-rhel7.1.0 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Paolo Bonzini <pbonzini> |
Component: | qemu-kvm-rhev | Assignee: | Paolo Bonzini <pbonzini> |
Status: | CLOSED ERRATA | QA Contact: | jingzhao <jinzhao> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.4 | CC: | chayang, famz, hhuang, juzhang, knoel, lmiksik, michen, mrezanin, mtessun, pagupta, pbonzini, peterx, quintela, qzhang, rbalakri, virt-bugs, virt-maint, xfu, xianwang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-rhev-2.10.0-18.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | 1452067 | Environment: | |
Last Closed: | 2018-04-11 00:23:04 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Paolo Bonzini
2017-06-08 16:03:06 UTC
Fix included in qemu-kvm-rhev-2.10.0-18.el7 Reproduce this bug using the following version: qemu-kvm-rhev-2.10.0-17.el7.x86_64 kernel-3.10.0-838.el7.x86_64 1. Boot a rhel7.5 guest with "-machine pc-i440fx-rhel7.0.0": /usr/libexec/qemu-kvm \ -name 'avocado-vt-vm1' \ -sandbox off \ -machine pc-i440fx-rhel7.0.0 \ -nodefaults \ -vga std \ -device virtio-serial-pci,id=virtio_serial_pci0,bus=pci.0,addr=03 \ -device nec-usb-xhci,id=usb1,bus=pci.0 \ -device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pci.0,addr=05 \ -drive id=drive_image1,if=none,snapshot=off,format=qcow2,snapshot=off,file=/mnt/rhel7.5.qcow2 \ -device scsi-hd,id=image1,drive=drive_image1,bus=virtio_scsi_pci0.0 \ -device virtio-net-pci,mac=9a:7b:7c:7d:7e:90,id=id9HRc5V,vectors=4,netdev=idjlQN53,bus=pci.0,addr=10 \ -netdev tap,id=idjlQN53,vhost=off,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown \ -m 4G \ -smp 4 \ -name debug-threads=on \ -serial pty \ -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 \ -device usb-kbd,bus=usb1.0,port=2 \ -device usb-mouse,bus=usb1.0,port=3 \ -vnc :1 \ -rtc base=localtime,clock=vm,driftfix=slew \ -boot order=cdn,once=c,menu=on,strict=off \ -monitor stdio \ -enable-kvm 2. boot the guest with "-incoming tcp:0:5800" 3 on src host,start cat for pty opened by src host QEMU instance: # cat /dev/pts/2 4. on dst host, start cat for pty opened by dst host QEMU instance: # cat /dev/pts/4 5. inside guest, type "yes > /dev/ttyS0",endless stream of "y" comes out of cat instance on src host # cat /dev/pts/2 y y y y .... 6. type ^Z to stop cat instance #1 7. on src host, do migration (qemu) migrate -d tcp:0:5800 after step7, migration is failed, the destination qemu-kvm quits with error: (qemu) qemu-kvm: inconsistent state in serial device (tsr not empty, tsr_retry=0 qemu-kvm: Failed to load serial:state qemu-kvm: error while loading state for instance 0x0 of device 'serial' qemu-kvm: load of migration failed: Operation not permitted Verify this bug using version: qemu-kvm-rhev-2.10.0-17.el7.x86_64 kernel-3.10.0-838.el7.x86_64 Test "-machine pc-i440fx-rhel7.0.0" and "-machine pc-i440fx-rhel7.1.0". The steps are same as comment #6. After step7, migration can be finished normally and endless stream of "y" comes out of cat instance on dst host # cat /dev/pts/2 y y y y .... Based on comment #7, set this bug to be verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:1104 |