14.15.2. Managing Snapshots
188.8.131.52. Creating Snapshots
virsh snapshot-createcommand creates a snapshot for domain with the properties specified in the domain XML file (such as <name> and <description> elements, as well as <disks>).
snapshot-create <domain> <xmlfile>
[--redefine] [--current] [--no-metadata] [--reuse-external]
virsh snapshot-createcommand for use with live snapshots which are visible in libvirt, but not supported in Red Hat Enterprise Linux 6.
--redefinespecifies that if all XML elements produced by
snapshot-dumpxmlare valid; it can be used to migrate snapshot hierarchy from one machine to another, to recreate hierarchy for the case of a transient domain that goes away and is later recreated with the same name and UUID, or to make slight alterations in the snapshot metadata (such as host-specific aspects of the domain XML embedded in the snapshot). When this option is supplied, the
xmlfileargument is mandatory, and the domain’s current snapshot will not be altered unless the
--currentoption is also given.
--no-metadatacreates the snapshot, but any metadata is immediately discarded (that is, libvirt does not treat the snapshot as current, and cannot revert to the snapshot unless
--redefineis later used to teach libvirt about the metadata again).
--reuse-external, if used, this option specifies the location of an existing external XML snapshot to use. If an existing external snapshot does not already exist, the command will fail to take a snapshot to avoid losing contents of the existing files.