리눅스
KVM에서 스냅샷 생성, 복원 및 삭제하기
변군이글루
2017. 8. 17. 13:05
반응형
KVM에서 스냅샷 생성, 복원 및 삭제하기
KVM (Kernel-based Virtual Machine)은 가상화 기술을 사용하여 가상 머신을 실행하는 데 사용되는 오픈 소스 가상화 플랫폼입니다.
Snapshot (help keyword 'snapshot')
snapshot-create-as | 인수 모음에서 스냅샷 생성 |
snapshot-current | 현재 스냅샷 설정 |
snapshot-delete | 도메인 스냅샷 삭제 |
snapshot-dumpxml | 도메인 스냅샷의 덤프 XML |
snapshot-edit | 스냅샷의 XML 편집 |
snapshot-info | 스냅샷 정보 |
snapshot-list | 도메인의 스냅샷 목록 |
snapshot-parent | 부모 스냅샷의 이름 얻기 |
snapshot-revert | 도메인을 스냅샷으로 되돌리기 |
스냅샷 생성
virsh snapshot-create --domain <가상머신 이름> --reboot --quiesce --name <스냅샷 이름>
- <가상머신 이름>: 스냅샷을 생성할 가상 머신의 이름을 지정합니다.
- <스냅샷 이름>: 생성한 스냅샷의 이름을 지정합니다.
virsh snapshot-create-as --domain commANSIBLEmn107 --name "Snapshot-1" --description "First-snapshot"
728x90
스냅샷 목록
virsh snapshot-list commANSIBLEmn107
$ virsh snapshot-list commANSIBLEmn107
이름 생성 시간 상태
------------------------------------------------------------
Snapshot-1 2017-08-17 11:31:35 +0900 running
스냅샷 삭제
virsh snapshot-delete --domain <가상머신 이름> --snapshotname <스냅샷 이름>
- <가상머신 이름>: 삭제할 스냅샷이 속한 가상 머신의 이름을 지정합니다.
- <스냅샷 이름>: 삭제할 스냅샷의 이름을 지정합니다.
virsh snapshot-delete --domain commANSIBLEmn107 --snapshotname "Snapshot-1"
스냅샷 복원
virsh snapshot-delete --domain <가상머신 이름> --snapshotname <스냅샷 이름>
- <가상머신 이름>: 스냅샷을 복원할 가상 머신의 이름을 지정합니다.
- <스냅샷 이름>: 복원할 스냅샷의 이름을 지정합니다.
virsh snapshot-revert --domain commANSIBLEmn107 --snapshotname "Snapshot-1"
원본URL
- https://doc.opensuse.org/documentation/leap/virtualization/html/book.virt/cha.libvirt.managing.html
728x90
반응형