128
Creating a snapshot with memory
Run the vm-checkpoint command, giving a descriptive name for the snapshot with memory, so that you
can identify it later:
xe vm-checkpoint vm=<vm uuid> new-name-label=<name of the checkpoint>
When XenServer has completed creating the snapshot with memory - its uuid will be displayed.
For example:
xe vm-checkpoint vm=2d1d9a08-e479-2f0a-69e7-24a0e062dd35 \
new-name-label=example_checkpoint_1
b3c0f369-59a1-dd16-ecd4-a1211df29886
A snapshot with memory requires at least 4MB of disk space per disk, plus the size of the RAM, plus around
20% overhead. So a checkpoint with 256MB RAM would require approximately 300MB of storage.
Note:
During the checkpoint creation process, the VM is paused for a brief period of time, and cannot be used
during this period.
To list all of the snapshots on a XenServer pool
Run the snapshot-list command:
xe snapshot-list
This lists all of the snapshots in the XenServer pool.
To list the snapshots on a particular VM
You will need to know the uuid of the particular VM; to do this run the vm-list command.
xe vm-list
This displays a list of all VMs and their UUIDs. For example:
xe vm-list
uuid ( RO): 116dd310-a0ef-a830-37c8-df41521ff72d
name-label ( RW): Windows Server 2003 (1)
power-state ( RO): halted
uuid ( RO): 96fde888-2a18-c042-491a-014e22b07839
name-label ( RW): Windows XP SP3 (1)
power-state ( RO): running
uuid ( RO): dff45c56-426a-4450-a094-d3bba0a2ba3f
name-label ( RW): Control domain on host
power-state ( RO): running
VMs can also be specified by filtering the full list of VMs on the values of fields.