https://www.jianshu.com/p/98e12540d314
virsh snapshot-create-as +虚拟机名称+快照名
1.[root@localhost /]# virsh list #查看当前运行的虚拟机
2.[root@localhost /]# virsh snapshot-create-as ubuntu-18.04 ubuntu-18.04-snapshot1-20200318 #创建快照
3. [root@localhost /]# virsh snapshot-list ubuntu-18.04 #查询快照
4. virsh snapshot-revert +虚拟机名称+快照名 #恢复快照
[root@localhost /]# virsh snapshot-revert ubuntu-18.04 ubuntu-18.04-snapshot1-20200318
5.恢复到最新快照
[root@localhost /]# virsh snapshot-revert ubuntu-18.04 --current