# 默认是以时间戳命名快照,没有备注我们不好区别
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-时间戳
标签:domain,快照,name,主机,08,kvm,virsh,snapshot From: https://www.cnblogs.com/rtnb/p/18351938