Updated on 2025-08-20 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. Choose Compute in All Services and choose 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 Cloud server parameters

    Parameter

    Description

    Example Value

    Flavor

    Select the planned ECS flavor,

    c6.large.2

    VPC

    Select the planned VPC.

    fa_vpc

    Subnet

    Select the planned subnet.

    subnet-fa

    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. Choose Networking in All Services and choose 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.

    Enter the page for creating a security group.

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

    Table 2 Security group configuration

    Parameter

    Description

    Example Value

    Name

    Can be custom.

    -

    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: The security group that you create using this template is for general-purpose web servers and includes default rules that allow all inbound ICMP traffic and allow inbound traffic on ports 22, 80, 44, 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 Manage 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

    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.