kvm主機快照

不会跳舞的胖子發表於2024-08-10

# 預設是以時間戳命名快照,沒有備註我們不好區別

virsh snapshot-create domain-name

檢視快照

[root@kafka-1 ssh]# virsh snapshot-list auto-clone2-bridge-vm
 Name                 Creation Time             State
------------------------------------------------------------
 1723107604           2024-08-08 17:00:04 +0800 running

使用自定義快照名稱

[root@kafka-1 ssh]# virsh snapshot-create-as auto-clone2-bridge-vm --name  v1
Domain snapshot v1 created

檢視快照

[root@kafka-1 ssh]# virsh snapshot-list auto-clone2-bridge-vm
 Name                 Creation Time             State
------------------------------------------------------------
 1723107604           2024-08-08 17:00:04 +0800 running
 v1                   2024-08-08 17:00:58 +0800 running

回滾到指定版本

virsh snapshot-revert domain-name snapshot-name

檢視當前快照版本號

virsh snapshot-current domain-name

刪除快照

virsh snapshot-delete  domain-name snapshot-時間戳

相關文章