Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 710489

Summary: RFE: Add support for taking screenshots of secondary monitors
Product: Red Hat Enterprise Linux 6 Reporter: Michal Privoznik <mprivozn>
Component: libvirtAssignee: Michal Privoznik <mprivozn>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: dallan, dyuan, eblake, mzhan, vbian, ydu
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-0.9.4-6.el6 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 11:12:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 705070, 729969    
Bug Blocks: 691830, 693512    

Description Michal Privoznik 2011-06-03 14:30:42 UTC
Description of problem:
Currently, QEMU supports taking screenshots of the first monitor only. But once it extends its functionality, libvirt should allow this as well.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 5 Vivian Bian 2011-08-29 08:24:03 UTC
tested with following rpms[1] , and failed .

Eric , would you please help confirm if I did the correct configuration for guest, and did the right steps to verify this bug ? 

If I was right , then bug status should have been changed to ASSIGNED 

[1] rpms 
libvirt-0.9.4-6.el6
qemu-kvm-0.12.1.2-2.184.el6
kernel-2.6.32-191.el6

Steps :
1. configure guest with multiple spice QXL video devices 
    <video>
      <model type='qxl' vram='9216' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <video>
      <model type='qxl' vram='9216' heads='1'/>
      <alias name='video1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </video>
    <video>
      <model type='qxl' vram='9216' heads='1'/>
      <alias name='video2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </video>
2. start guest 
3. check guest qemu-kvm parameters  :
   qemu-kvm \
   -spice port=5900,tls-port=5901,addr=0.0.0.0,disable-ticketing,x509-dir=/etc  /pki/libvirt-spice \
   -vga qxl -global qxl-vga.vram_size=9437184 
   -device qxl,id=video1,vram_size=9437184,bus=pci.0,addr=0x7 
   -device qxl,id=video2,vram_size=9437184,bus=pci.0,addr=0x8 

4. # virsh screenshot rhel6 /tmp/rhel6
error: could not take a screenshot of rhel6
error: internal error unable to execute QEMU command 'screendump': The command screendump has not been found

# virsh screenshot rhel6 /tmp/rhel6 --screen1 
error: command 'screenshot' doesn't support option --screen1
[root@dhcp-93-106 ~]# virsh screenshot rhel6 /tmp/rhel6 --screen 1 
error: could not take a screenshot of rhel6
error: internal error unable to execute QEMU command '__com.redhat_qxl_screendump': An undefined error has ocurred

# virsh screenshot rhel6 /tmp/rhel6 --screen 2
error: could not take a screenshot of rhel6
error: internal error unable to execute QEMU command '__com.redhat_qxl_screendump': An undefined error has ocurred

Comment 7 Vivian Bian 2011-08-31 05:16:00 UTC
Will try to verify this bug once https://bugzilla.redhat.com/show_bug.cgi?id=729969 get fixed .

Comment 8 yanbing du 2011-10-18 09:11:43 UTC
Test with following packages:
libvirt-0.9.4-18.el6.x86_64
qemu-kvm-0.12.1.2-2.197.el6.x86_64
kernel-2.6.32-210.el6.x86_64

since there's only windows qxl driver for winXP and win7_x86, only test for these two guests, and can get screen shot by virsh command: screenshot <domain> [<file>] [--screen <number>]. So bug VERIFIED.

Comment 9 errata-xmlrpc 2011-12-06 11:12:30 UTC
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/RHBA-2011-1513.html