Red Hat Bugzilla – Bug 869496
screendump wont save PPM image file if qemu-kvm booted with '-S'
Last modified: 2015-05-24 20:06:55 EDT
Description of problem: screendump wont save PPM image file if qemu-kvm booted with '-S' Version-Release number of selected component (if applicable): qemu-kvm-0.12.1.2-2.330.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1. boot a guest w/ '-S' option, then do screendump [root@rhel6xwei virtlab_logs]# ls /home/hello ls: cannot access /home/hello: No such file or directory [root@rhel6xwei virtlab_logs]# qemu-kvm -monitor stdio -S -M rhel6.4.0 VNC server running on `::1:5900' QEMU 0.12.1 monitor - type 'help' for more information (qemu) screendump /home/hello (qemu) q [root@rhel6xwei virtlab_logs]# ls /home/hello ls: cannot access /home/hello: No such file or directory [root@rhel6xwei virtlab_logs]# rpm -q qemu-kvm qemu-kvm-0.12.1.2-2.330.el6.x86_64 Actual results: PPM image file did't saved. Expected results: PPM image file saved. Additional info: 1) Tried same steps w/ upstream qemu-kvm, PPM image file saved. [root@localhost ~]# ls /home/hello ls: cannot access /home/hello: No such file or directory [root@localhost ~]# qemu-system-x86_64 -monitor stdio -M pc-1.3 -S VNC server running on `::1:5900' QEMU 1.2.50 monitor - type 'help' for more information (qemu) screendump /home/hello (qemu) q [root@localhost ~]# ls /home/hello /home/hello 2) If 'cont' then 'stop', then try 'screendump', file will be saved. [root@rhel6xwei virtlab_logs]# ls /home/hello ls: cannot access /home/hello: No such file or directory [root@rhel6xwei virtlab_logs]# rpm -q qemu-kvm qemu-kvm-0.12.1.2-2.330.el6.x86_64 [root@rhel6xwei virtlab_logs]# ls /home/hello ls: cannot access /home/hello: No such file or directory [root@rhel6xwei virtlab_logs]# qemu-kvm -monitor stdio -S -M rhel6.4.0 VNC server running on `::1:5900' QEMU 0.12.1 monitor - type 'help' for more information (qemu) cont (qemu) stop (qemu) info status VM status: paused (qemu) screendump /home/hello (qemu) q [root@rhel6xwei virtlab_logs]# ls /home/hello /home/hello
It's not a common usage. Upstream fixed this bug by the commit 9a51f5b0, I tried to backport to qemu-kvm-rhel6, problem can be resolved. commit 9a51f5b0677381ed87d413e969ea72adf1f17f5f Author: Gerd Hoffmann <kraxel@redhat.com> Date: Fri Feb 24 12:43:43 2012 +0100 vga: simplify screendump The displaychangelistener isn't needed at all, we can simply save the image when vga_hw_update is done instead of hooking into the update process. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> -- Assign this bug to myself.
Xwei tested with qemu-kvm-0.12.1.2-2.295.el6.x86_64 (rhel-6.3 ga), bug also exists. We are late in 6.4, and it is not a regression, so postpone it.
Reproduce this bug as following version: Host # uname -r 2.6.32-389.el6.x86_64 # rpm -q qemu-kvm qemu-kvm-0.12.1.2-2.356.el6.x86_64 Steps: 1.Boot guest # /usr/libexec/qemu-kvm -S -M rhel6.4.0 -cpu Opteron_G4 -monitor stdio 2.Do screendump ... VNC server running on `::1:5900' QEMU 0.12.1 monitor - type 'help' for more information (qemu) screendump /home/hello Results: the screendump file did't saved. Verify this bug as following version: Host # uname -r 2.6.32-389.el6.x86_64 # rpm -q qemu-kvm qemu-kvm-0.12.1.2-2.376.el6.x86_64 Steps as same as reproduce Results:The screendump file saved. According to above test ,this bug fixed.
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. http://rhn.redhat.com/errata/RHSA-2013-1553.html