Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 869496 - screendump wont save PPM image file if qemu-kvm booted with '-S'
screendump wont save PPM image file if qemu-kvm booted with '-S'
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm (Show other bugs)
6.4
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Amos Kong
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-24 01:34 EDT by Xiaoqing Wei
Modified: 2015-05-24 20:06 EDT (History)
15 users (show)

See Also:
Fixed In Version: qemu-kvm-0.12.1.2-2.361.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-11-21 00:54:36 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:1553 normal SHIPPED_LIVE Important: qemu-kvm security, bug fix, and enhancement update 2013-11-20 16:40:29 EST

  None (edit)
Description Xiaoqing Wei 2012-10-24 01:34:19 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
Comment 2 Amos Kong 2012-10-31 05:14:30 EDT
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.
Comment 3 Amos Kong 2012-10-31 05:44:13 EDT
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.
Comment 11 langfang 2013-06-24 05:25:15 EDT
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.
Comment 16 errata-xmlrpc 2013-11-21 00:54:36 EST
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

Note You need to log in before you can comment on or make changes to this bug.