XenCenter

Creating New Templates

You can create 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

When you create a template using this method, the VM’s disks are copied to the new template and the original VM no longer exists. A VM that is currently in a vApp cannot be converted into a template.

  1. Shut down the VM as described in Shutdown a VM.
  2. In the Resources pane, select the VM, right-click and then select Convert to Template.
  3. Click Convert to confirm. You can view the conversion progress in the status bar at the bottom of the XenCenter window and on the Events view under Notifications.

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 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 select Create Template from Snapshot on the shortcut menu.
  2. Enter the name of the new template and then click OK.

After the template is 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:

  1. On the File menu, select Import
  2. Select the XVA file containing the template on the first page of the wizard
  3. Follow the same steps as when importing a VM from XVA

For more information, see Import VMs from XVA.

The import progress is displayed on the status bar at the bottom of the XenCenter window and also on the Events view under Notifications. The import process can take some time, depending on the size of the template and the speed and bandwidth of the network connection between XenCenter and the server. When the newly imported template is available, it appears 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.

Creating New Templates