Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

20.25. 게스트 콘솔의 스크린샷 가져오기

virsh screenshot guestname [imagefilepath] 명령은 현재 게스트 가상 머신 콘솔의 스크린샷을 가져와서 파일에 저장합니다. 파일 경로가 제공되지 않으면 스크린샷이 현재 디렉터리에 저장됩니다. 하이퍼바이저가 게스트 가상 머신에 여러 디스플레이를 지원하는 경우 --screen ID 옵션을 사용하여 캡처할 화면을 지정합니다.

예 20.52. 게스트 머신 콘솔의 스크린샷을 가져오는 방법

다음 예제는 guest1 머신의 콘솔 스크린샷을 가져와서 /home/username/pics/guest1-screen.png 로 저장합니다.
# virsh screenshot guest1 /home/username/pics/guest1-screen.ppm
Screenshot saved to /home/username/pics/guest1-screen.ppm, with type of image/x-portable-pixmap