129
For example, specifying power-state=halted will select all VMs whose power-state field is equal to 'halted'.
Where multiple VMs are matching, the option --multiple must be specified to perform the operation. The
full list of fields that can be matched can be obtained by the command xe vm-list params=all.
Locate the required VM and then enter the following:
xe snapshot-list snapshot-of=<vm uuid>
For example:
xe snapshot-list snapshot-of=2d1d9a08-e479-2f0a-69e7-24a0e062dd35
This lists the snapshots currently on that VM:
uuid ( RO): d7eefb03-39bc-80f8-8d73-2ca1bab7dcff
name-label ( RW): Regular
name-description ( RW):
snapshot_of ( RO): 2d1d9a08-e479-2f0a-69e7-24a0e062dd35
snapshot_time ( RO): 20090914T15:37:00Z
uuid ( RO): 1760561d-a5d1-5d5e-2be5-d0dd99a3b1ef
name-label ( RW): Snapshot with memory
name-description ( RW):
snapshot_of ( RO): 2d1d9a08-e479-2f0a-69e7-24a0e062dd35
snapshot_time ( RO): 20090914T15:39:45Z
Restoring a VM to its previous state
Ensure that you have the uuid of the snapshot that you want to revert to, and then run the snapshot-revert
command:
To do this:
1. Run the snapshot-list command to find the UUID of the snapshot or checkpoint that you want to revert to:
xe snapshot-list
2. Note the uuid of the snapshot, and then run the following command to revert:
xe snapshot-revert snapshot-uuid=<snapshot uuid>
For example:
xe snapshot-revert snapshot-uuid=b3c0f369-59a1-dd16-ecd4-a1211df29886
After reverting to a checkpoint, the VM will be suspended.
Note:
It is possible to revert to any snapshot in time,forwards or backwards. Existing snapshots and checkpoints
are not deleted during revert.

Deleting a snapshot

Ensure that you have the UUID of the checkpoint or snapshot that you wish to remove, and then run the
following command: