Product Documentation

Creating New Templates

Feb 01, 2013

You can create new custom templates in several different ways in XenCenter:

  • By copying an existing template; see Copying VMs and templates.
  • By converting an existing VM into a new template.
  • By saving a copy of a VM snapshot as a new template.
  • By importing a template that has previously been exported from an existing template or VM snapshot as an XVA file.

To convert an existing VM into a template

Note that when you create a new template using this method, the VM's disks will be copied to the new template and the original VM will no longer exist. Note that a VM that is currently in a vApp cannot be converted into a template.
  1. Shut down the VM as described in Shut down a VM.
  2. In the Resources pane, select the VM, right-click and then click Convert to Template.
  3. Click OK to confirm. You can view the conversion progress in the status bar at the bottom of the XenCenter window and on the Logs tab.
When conversion is complete, the VM disappears from the Resources pane and reappears as a new custom template. The new custom template can then be used to create new VMs in the same way as any other template.

To save a copy of a snapshot as a new template

  1. On the Snapshots tab, select the snapshot, right click and then click Create Template from Snapshot on the shortcut menu.
  2. Enter the name of the new template and then click OK.
Once the new template has been successfully created, it appears as a custom template in the Resources pane and on the Templates page in the New VM wizard.

To import a template from an XVA file

VM templates and snapshots that have been exported as XVA files can be imported into XenCenter using Import wizard: on the File menu, click Import, select the XVA file containing the template on the first page of the wizard and then follow the same steps as when importing a VM from XVA; see Import VMs from XVA.

The import progress is displayed in the status bar at the bottom of the XenCenter window and also on the Logs tab. The import process may take some time, depending on the size of the template and the speed and bandwidth of the network connection between XenCenter and the server where you are installing it. When the newly-imported template is available, it will appear in the Resources pane as a custom template. The new template has the same configuration properties as the original exported template. To change its configuration properties, use the template's Properties window.