Skip to main content

Snapshots

Create new snapshot

Find UUID

xe vm-list

Create snapshot

xe vm-snapshot new-name-label="<name>" vm=<vm-uuid>

Restore a snapshot

xe snapshot-revert snapshot-uuid=<uuid>

List snapshots

xe snapshot-list

Create a template from snapshot

xe snapshot-export-to-template snapshot-uuid=<snapshot-uuid> filename="<name>.xva"  preserve-power-state=false

List SR

xe sr-list name-label=<name>

Import template in SR

xe vm-import filename=<name>.xva sr-uuid=<sr-uuid>

Find template UUID

xe template-list

Create VM from template

xe vm-install template-uuid=<template-uuid> new-name-label=<new-name>