Updated on 2024-03-29 GMT+08:00

Creating a Server Template

Scenarios

SMS allows you to create server templates for quick configuration. You can use these templates to quickly configure target server settings, such as VPC, Subnet, and Security Group.

Procedure

  1. Log in to the SMS console.
  2. In the navigation pane on the left, choose Templates.

    Figure 1 Templates

  3. In the upper right corner of the Server Templates area, click Create Server Template.

    Figure 2 Create Server Template

  4. Enter a template name, click next to Configuration, and set parameters listed in Table 1.

    Table 1 Parameters

    Parameter

    Description

    Region

    • Select a region where you want to provision a target server.
    • By default, the region is the one set in the default migration template, but you can change it as needed.

    Project

    • Select a project in the region from the drop-down list.
    • You can select a project only after a region is selected.

    VPC

    If you select Create during migration, SMS will create a VPC when you use this template to configure a target server.

    • If the source IP address is 192.168.X.X, SMS will create a VPC and a subnet that both belong to network range 192.168.0.0/16.
    • If the source IP address is 172.16.X.X, SMS will create a VPC and a subnet that both belong to network range 172.16.0.0/12.
    • If the source IP address is 10.X.X, SMS will create a VPC and a subnet that both belong to network range 10.0.0.0/8.

    Subnet

    • If you select Create during migration, SMS will recommend a subnet when you use this template to configure a target server.
    • The subnet is in the same network segment as the VPC.

    Security Group

    • If you select Create during migration, SMS will create a security group and enable the required ports when you use this template to configure a target server.
    • Windows: ports 8899, 8900, and 22
    • Linux: port 22 for a file-level migration and ports 8900 and 22 for a block-level migration
      CAUTION:
      • For security purposes, you are advised to open these ports only to the source server.
      • The firewall of the target server must allow traffic to these ports.

    AZ

    The parameter is set to Random by default. You can also select another AZ.

    Disk Type

    The value can be Common I/O, High I/O, or Ultra-high I/O.

  5. Click OK.

Related Operations

You can perform the following operations on a created server template.

Operation

Description

Modifying a server template

  1. Locate the server template and click Modify in the Operation column.
  2. In the displayed Modify Server Template dialog box, modify the parameters and click OK.

Deleting a server template

  1. Locate the server template and click Delete in the Operation column.
  2. In the displayed Delete dialog box, click OK.