You can manage a VM template by performing the following tasks:
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 volume name, and storage capacity. If VMs have been deployed using the template, the name and storage capacity of the template cannot be edited.
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.
Mount a virtual driver—Mount a virtual driver for the temporary VM created after image update is enabled for the VM template. For more information about how to mount a virtual driver, see "Create a VM" and "Edit a VM."
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 Resources.
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 Resources.
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 Resources.
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 Resources.
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.
You can update the image of a VM template that uses the same CPU architecture as the hosts on CVM. For example, to update the image for a VM template that uses the ARM architecture when the hosts on CVM use the x86 architecture, perform the following steps:
Deploy the VM template on an x86 host.
Update the image for the VM template.
Convert or clone the VM to a VM template.
If the number of IDE disks is larger than 3 for a VM image, you cannot use a virtual driver to mount the image file. To do that, you can configure networks from the console and then upload the required file to the VM template.
On the top navigation bar, click Resources.
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.
Mount a virtual driver:
Click More in the Actions column for a VM template with image update enabled, and then select Virtual Driver.
Select a virtual driver file, and then click OK. Make sure you have put the required file in the /vms directory.
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 Resources.
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.
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 Resources.
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 Resources.
From the left navigation pane, select VM Templates.
Click More in the Actions column for a VM template, and then select Delete.