• Cloud-Native Container ProductsCloud-Native Container Products
    • KubeSphere Enterprisehot
    • KubeSphere Virtualizationhot
    • KubeSphere Enterprise HCI
  • Cloud-Native ServiceCloud-Native Service
    • KubeSphere Backuphot
    • KubeSphere Litenew
    • KubeSphere Inspectornew
  • Public Cloud Container ServicePublic Cloud Container Service
    • KubeSphere on AWS
    • KubeSphere on DigitalOcean

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

  1. Log in to the KSV web console.

  2. In the top navigation bar, click Virtual Resources to go to the management page of virtual resources.

  3. In the left-side navigation pane, choose VMs > Templates to go to the management page of VM templates.

  4. On the VM Templates page, click Create and select Create Template from the drop-down list.

  5. In the Basic Info step, configure basic information for the VM template, and then click Next.

    ParameterDescription
    Template Name
    The 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.
    Project
    The name of the project in which you want to create the VM template.
    Description
    The description of the VM template.
  6. On the Configuration tab, configure parameters for the VM template. The following table describes the parameters.

    ParameterDescription
    Image
    The VM image defined in the template.
    CPU
    The number of CPU cores defined in the template.
    Memory
    The memory size defined in the template.
    System Disk
    The system disk size defined in the template.
    Data Disk
    The data disk size defined in the template. You can click Add to add more data disks and set the disk size.
    Login Method
    The login method for the VM. KSV allows you to use a username and its passord or an SSH key for login.
    Network
    The network used by the VM and the method for IP address allocation.
    Shared
    Specifies whether the template can be shared with other users. If this feature is enabled, users in other projects can replicate the template.
  7. Click OK. The template appears in the VM template list after it is created.

Replicate an existing template

  1. Log in to the KSV web console.

  2. In the top navigation bar, click Virtual Resources to go to the management page of virtual resources.

  3. In the left-side navigation pane, choose VMs > Templates to go to the management page of VM templates.

  4. On the VM Templates page, click Create and select Replicate Template from the drop-down list.

  5. In the Basic Info step, configure basic information for the VM template, and then click Next.

    ParameterDescription
    Template Name
    The 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.
    Project
    The name of the project in which you want to create the VM template.
    Description
    The description of the VM template.
  6. 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.

KubeSphere ®️ © QingCloud Technologies 2022