Bug 710489 - RFE: Add support for taking screenshots of secondary monitors
Summary: RFE: Add support for taking screenshots of secondary monitors
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Michal Privoznik
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 705070 729969
Blocks: 691830 693512
TreeView+ depends on / blocked
 
Reported: 2011-06-03 14:30 UTC by Michal Privoznik
Modified: 2018-03-05 05:55 UTC (History)
6 users (show)

Fixed In Version: libvirt-0.9.4-6.el6
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 11:12:30 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1551410 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Product Errata RHBA-2011:1513 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2011-12-06 01:23:30 UTC

Internal Links: 1551410

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


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