You can manage a VM template by performing the following tasks:
Synchronize the VM template distribution state—Synchronize VM template distribution configuration to the database in the system.
Distribute a VM template—Distribute the VM template to the storage pool of the destination host. As a best practice to improve VM deployment efficiency, distribute a VM template before deploying VMs by using the template.
Download a VM template—The file must be in .tar.gz format.
Check the integrity and track the source of a VM template—Perform CRC for a VM template file to prevent tampering of the VM template during copy or transmission, and trace the source and author of VM templates for easy management.
Edit a VM template—Edit VM template information such as CPUs, CPU cores, memory size, storage path, and storage capacity. If VMs have been deployed using the template, the name and storage capacity of the template cannot be edited.
Update the image of a VM template:
Enable image update—Create a temporary VM based on a VM template for you to update the template image. After you enable image update, the VM template enters the maintenance mode.
Enter VM console—After you enter the console of the temporary VM created upon enabling image update, you can update the image, for example, by installing or deleting applications.
Disable image update—After completing VM template image update, you can disable image update to delete the created temporary VM and restore the normal VM template state.
Convert to public/private template—Convert the public template to a private template or the private template to a public template.
Delete a VM template—If VMs have been deployed using the template, the template file will not be deleted.
On the top navigation bar, click Compute.
From the left navigation pane, select VM Templates.
From the Used By box, select All, Public, or Private to filter VM templates by owner.
On the top navigation bar, click Compute.
From the left navigation pane, select VM Templates.
Click Sync Distribution State.
On the top navigation bar, click Compute.
From the left navigation pane, select VM Templates.
Click More in the Actions column for a VM template, and then select Distribute VM Template.
Configure the parameters.
Click OK.
Overwrite Existing: Select whether to overwrite the storage volumes with the same name on the target host.
On the top navigation bar, click Compute.
From the left navigation pane, select VM Templates.
Click More in the Actions column for a VM template, and then select Download VM Template.
On the top navigation bar, click Compute.
From the left navigation pane, select VM Templates.
Click More in the Actions column for a VM template, and then select Integrity Check and Source Track.
On the top navigation bar, click Compute.
From the left navigation pane, select VM Templates.
Enable image update:
Click More in the Actions column for a VM template.
Select Enable Image Update.
The system will create a temporary VM based on the VM template for you to update the template image.
Update the image:
Click Console in the Actions column for the VM template.
Delete or install application programs on the temporary VM.
Disable image update:
Click More in the Actions column for the VM template,
Select Disable Image Update to delete the created temporary VM and quit maintenance mode.
On the top navigation bar, click Compute.
From the left navigation pane, select VM Templates.
Click More in the Actions column for a VM template, and then select Edit.
Configure the parameters.
Click OK.
Name: Enter the name of the VM template. If VMs have been deployed using this template, the name cannot be edited.
CPUs: Specify the number of CPU cores, which is the number of CPUs multiplied by the number of cores of each CPU.
Memory: Enter the memory of the VMs.
Save Path: Enter the path of the template pool that stores the VM template.
Storage Volume Name: Name of the storage volume on the VMs. It is the same as the VM template name and cannot be edited.
Storage Size: Enter the capacity of the disks on the VMs. If VMs have been deployed using this template, the storage capacity cannot be edited.
On the top navigation bar, click Compute.
From the left navigation pane, select VM Templates.
Click More in the Actions column for a VM template, and then select Convert to Public/Private Template.
On the top navigation bar, click Compute.
From the left navigation pane, select VM Templates.
Click More in the Actions column for a VM template, and then select Delete.
In the dialog box that opens, click OK.