SE

XCP-ng 스냅샷 만들기

구불리 2023. 12. 3. 09:21

 

VM을 운영하다보면 동일한 서비스의 스케일 인 & 아웃으로 인해 스냅샷을 활용하는 부분이 많다

보통 UI로 진행하는게 편한데 스냅샷은 command가 더 편한것 같기도?

 

 

0.스냅샷 만들기

# xe vm-snapshot vm=[uuid] new-name-lavel=[snapshot name]

 

1. 스냅샷 리스트 확인

# xe snapshot-list

 

 

2. 스냅샷 파일로 내보내기

# xe snapshot-export-to-template snapshot-uuid= [UUID] filename=[/경로/원파는파일명.xva]  

 

 

3. 스냅샷 파일로 가져오기

원하는 hypervisor의 storage의 localstorage 명 확인 명령어
# xe sr-list 

 

 



# xe vm-import filename= [/경로/원파는파일명.xva] sr-uuid=b8...

 

 

4. VM 기동하기

UI에서 New VM Wizard 로 스냅샷 시작

 

 

 

5. 스냅샷 파일 삭제

xe snapshot-uninstall snapshot-uuid=[snapshot-uuid]