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

Creating an ECS

Scenario

This section describes how to create an ECS for subsequent ECS configuration and image creation.

Prerequisites

Procedure

Creating an ECS

  1. Log in to the console.
  2. Click Service List. Under Compute, click Image Management Service.

    The IMS console is displayed.

  3. Click Create ECS in the Operation column of the private image created in Registering a Private Image Using an ISO File.
  4. On the displayed page, configure the parameters in Table 1 and retain the default values for other parameters.

    Table 1 ECS configuration

    Parameter

    Description

    Example

    Flavor

    Select the desired ECS flavor. For example, select s6.xlarge.2 for a common image. If the GPU image type is RTX, the value can be g5r.

    s6.xlarge.2

    VPC

    Select the desired VPC.

    fa_vpc

    Subnet

    Select the desired subnet.

    subnet-fa

    Name

    The value can be customized.

    WKS-desktop_temp

    Enterprise Project

    Select an enterprise project.

    NOTE:

    This parameter is mandatory if the enterprise project has been enabled.

    default

  1. Click OK.

    The created ECS is displayed in the ECS list on the ECS console.

Configuring a security group policy

  1. In the Service List, choose Networking > Virtual Private Cloud.
  2. In the navigation pane on the left, choose Access Control > Security Groups.
  3. In the upper right corner of the Security Groups page, click Create Security Group.

    The page for creating a security group is displayed.

  4. Configure the parameters of a security group, as shown in Table 2.

    Table 2 Security group configuration

    Parameter

    Description

    Example

    Name

    The value can be customized.

    -

    Enterprise Project

    Use the enterprise project selected in 4.

    NOTE:

    This parameter is mandatory if the enterprise project has been enabled.

    default

    Template

    • General-purpose web server: allows all inbound ICMP traffic and inbound traffic on ports 22, 80, 443, and 3389. This template applies to ECS for remote login, public network ping, and website services.
    • All ports open: allows inbound traffic on all ports. Note that this poses security risks.
    • Fast-add rule: You can select common protocols and ports to quickly add inbound rules. If you do not select any protocols or ports, all of them will be closed. You can add or modify security group rules as required after a security group is created.

    -

  5. Locate the row that contains the security group created in 9, and click Manage Rules. On the Inbound Rules tab, click Add Rule. In the displayed dialog box, set Protocol & Port, as shown in Table 3.

    Table 3 Security group rules

    Protocol & Port

    Type

    Source

    Choose Protocols > All.

    IPv4

    Select IP Address, and enter 0.0.0.0/0.

  6. Locate the row that contains the security group created in 9, and click Manage Instances.
  7. On the Associated Instances page, click Add on the Servers tab.
  8. Select ECS, select the ECS created in 4, and click OK.