Create a VM template
Describes how to create a VM template in the KSV web console.
This topic describes how to create a VM template in the KubeSphere Virtualization (KSV) web console.
Prerequisites
The user that you use has been granted the permissions to manage VM templates. Only user admin, project administrators, and operators can manage VM templates. Project viewers can view only VM templates in the projects to which they belong.
KSV allows you to create a new template or replicate an existing template. You can use one of the following methods to create a template as needed:
Create a new template
Log in to the KSV web console.
In the top navigation bar, click Virtual Resources to go to the management page of virtual resources.
In the left-side navigation pane, choose VMs > Templates to go to the management page of VM templates.
On the VM Templates page, click Create and select Create Template from the drop-down list.
In the Basic Info step, configure basic information for the VM template, and then click Next.
Parameter Description Template NameThe custom name of the VM template.The name can contain only letters, digits, and hyphens (-), and must start and end with a letter or a digit. The name can be up to 16 characters in length.ProjectThe name of the project in which you want to create the VM template.DescriptionThe description of the VM template.On the Configuration tab, configure parameters for the VM template. The following table describes the parameters.
Parameter Description ImageThe VM image defined in the template.CPUThe number of CPU cores defined in the template.MemoryThe memory size defined in the template.System DiskThe system disk size defined in the template.Data DiskThe data disk size defined in the template. You can click Add to add more data disks and set the disk size.Login MethodThe login method for the VM. KSV allows you to use a username and its passord or an SSH key for login.NetworkThe network used by the VM and the method for IP address allocation.SharedSpecifies whether the template can be shared with other users. If this feature is enabled, users in other projects can replicate the template.Click OK. The template appears in the VM template list after it is created.
Replicate an existing template
Log in to the KSV web console.
In the top navigation bar, click Virtual Resources to go to the management page of virtual resources.
In the left-side navigation pane, choose VMs > Templates to go to the management page of VM templates.
On the VM Templates page, click Create and select Replicate Template from the drop-down list.
In the Basic Info step, configure basic information for the VM template, and then click Next.
Parameter Description Template NameThe custom name of the VM template.The name can contain only letters, digits, and hyphens (-), and must start and end with a letter or a digit. The name can be up to 16 characters in length.ProjectThe name of the project in which you want to create the VM template.DescriptionThe description of the VM template.In the Select Template section, select the VM template that you want to replicate, and click OK. The template appears in the VM template list after it is created.
common:NOTE
Before you replicate a template, make sure the sharing feature is enabled for the template that you want to replicate. You can only replicate shared templates.