Red Hat Training

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

20.39.4. snapshot-edit

이 명령은 현재 사용 중인 스냅샷을 편집하는 데 사용됩니다.
# virsh snapshot-edit domain [snapshotname] [--current] {[--rename] [--clone]}
snapshotname--current 둘 다 지정된 경우 편집한 스냅샷이 현재 스냅샷이 되도록 강제 적용됩니다. snapshotname 이 생략된 경우 현재 스냅샷을 편집하려면 --current 를 제공해야 합니다.
아래 명령 시퀀스와 동일하지만 몇 가지 오류 검사도 포함됩니다.
# virsh snapshot-dumpxml dom name > snapshot.xml 
# vi snapshot.xml [note - this can be any editor] 
# virsh snapshot-create dom snapshot.xml --redefine [--current] 
--rename 이 지정되면 스냅샷의 이름이 변경됩니다. --clone 이 지정된 경우 스냅샷 이름을 변경하면 스냅샷 메타데이터의 복제본이 생성됩니다. 둘 다 지정하지 않으면 편집에서 스냅샷 이름은 변경되지 않습니다. 스냅샷 이름은 단일 qcow2 파일 내의 내부 스냅샷과 같은 일부 스냅샷의 내용은 원래 스냅샷 이름에서만 액세스할 수 있으므로 신중하게 변경해야 합니다.