21.25. Taking a Screenshot of the Guest Console
virsh screenshot guestname [command takes a screenshot of a current guest virtual machine console and stores it into a file. If no file path is provided, the screenshot is saved to the current directory. If the hypervisor supports multiple displays for a guest virtual machine, use the
--screen screenIDoption to specify the screen to be captured.
Example 21.52. How to take a screenshot of a guest machine's console
virsh screenshot guest1 /home/username/pics/guest1-screen.ppmScreenshot saved to /home/username/pics/guest1-screen.ppm, with type of image/x-portable-pixmap