前几天学写了KVM中qume-info命令的使用,今天学学在虚拟化里面用处广泛的快照和克隆功能,snapshot和virt-clone。对于snapshot命令的使用其实很简单。进入virsh界面以后可以查看对对应的命令查看详细的参数使用介绍。
virsh # snapshot- #snapshot命令主要是这10个命令
snapshot-create
snapshot-dumpxml snapshot-parent
snapshot-create-as snapshot-edit
snapshot-revert
snapshot-current snapshot-info
snapshot-delete
snapshot-list
virsh # snapshot-
#snapshot-create - Create a snapshot from XML
#从XML文件里面创建一个快照
#snapshot-create-as - Create a snapshot from a set of args;Create a snapshot (disk and RAM) from arguments;#从一个argument(内容提要)里面创建一个快照
#snapshot-current - Get or set the current snapshot #获取当前快照
#snapshot-delete - Delete a domain snapshot #删除快照
#snapshot-dumpxml - Dump XML for a domain snapshot #备份某一实例的快照当前的xml文件
#snapshot-edit - edit XML for a snapshot,Returns basic information about a snapshot.#编辑某个快照的xml文件
#snapshot-list - List snapshots for a domain #快照列表
#snapshot-parent - Get the name of the parent of a snapshot;Extract the snapshot's parent, if any #提取某个快照的跟
#snapshot-revert - Revert a domain to a snapshot;Revert domain to snapshot;
#将实例恢复到快照的某一状态