Updated on 2024-07-19 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 Apply for Server 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 Cloud server parameters

    Parameter

    Description

    Example Value

    Specifications

    Select the planned ECS flavor, for example, s6.xlarge.2.

    s6.xlarge.2

    VPC

    Select the planned VPC.

    fa_vpc

    Subnet

    Select the planned subnet.

    subnet-fa

    ECS Name

    The value can be customized.

    WKS-desktop_temp

    Enterprise Project

    Select an enterprise project.

    default

  1. Click OK.

    After the request is successful, 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 Value

    Name

    The value can be customized.

    -

    Enterprise Project

    Use the enterprise project selected in 4.

    NOTE:

    This parameter is mandatory when the enterprise project function is enabled.

    default

    Template

    • General-purpose web server: allows all inbound ICMP traffic and inbound traffic on ports 22, 80, 443, and 3389. This template type applies to cloud servers for remote login, public network ping, and website services.
    • All ports open: The security group that you create using this template includes default rules that allow inbound traffic on all ports. Note that allowing inbound traffic on all ports poses security risks.
    • Customization: Users can configure this parameter as required.

    -

  5. Locate the row that contains the security group created in 9, and click Configure Rule. 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 IP

    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 Instance.
  7. On the Associated Instances page, click Add on the Servers tab.
  8. Select ECS, select the ECS created in 4, and click OK.