100
2. Note the UUID of the snapshot, and then run the snapshot-uninstall command to remove it:
xe snapshot-uninstall snapshot-uuid=<snapshot-uuid>
3. This command alerts you to the VM and VDIs that will be deleted. Type yes to confirm.
For example:
xe snapshot-uninstall snapshot-uuid=1760561d-a5d1-5d5e-2be5-d0dd99a3b1ef
The following items are about to be destroyed
VM : 1760561d-a5d1-5d5e-2be5-d0dd99a3b1ef (Snapshot with memory)
VDI: 11a4aa81-3c6b-4f7d-805a-b6ea02947582 (0)
VDI: 43c33fe7-a768-4612-bf8c-c385e2c657ed (1)
VDI: 4c33c84a-a874-42db-85b5-5e29174fa9b2 (Suspend image)
Type 'yes' to continue
yes
All objects destroyed
If you only want to remove the metadata of a checkpoint or snapshot, run the following command:
xe snapshot-destroy snapshot-uuid=<snapshot-uuid>
For example:
xe snapshot-destroy snapshot-uuid=d7eefb03-39bc-80f8-8d73-2ca1bab7dcff
Snapshot Templates
Creating a template from a snapshot
You can create a VM template from a snapshot, however its memory state will be removed.
To do this:
1. Use the commandsnapshot-copy and specify a new-name-label for the template:
xe snapshot-copy new-name-label=<vm-template-name> \
snapshot-uuid=<uuid of the snapshot>
For example:
xe snapshot-copy new-name-label=example_template_1
snapshot-uuid=b3c0f369-59a1-dd16-ecd4-a1211df29886
Note:
This creates a template object in the SAME pool. This template exists in the XenServer
database for the current pool only.
2. To verify that the template has been created, run the command template-list:
xe template-list
This will list all of the templates on the XenServer host.
Exporting a snapshot to a template
When you export a VM snapshot, a complete copy of the VM (including disk images) is stored as a single file on
your local machine, with a .xva file extension.
To do this: