This topic describes how to create and configure one or more Elastic Compute Service (ECS) instances on a dedicated host.

Background information

Only VPC-connected ECS instances can be created on a dedicated host. The ECS instances on a dedicated host have different features from the ECS instances on a shared host. For more information, see Differences between ECS instances on a dedicated host and those on a shared host.
Note We recommend that you create pay-as-you-go ECS instances on a dedicated host and select a combination of billing methods to optimize your costs without compromising flexibility. For more information, see Resource billing for ECS instances on a dedicated host.

Procedure

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Instances & Images > Dedicated Hosts.
  3. In the top navigation bar, select a region.
  4. Find the dedicated host on which you want to create ECS instances, and click Create Instance in the Actions column.
  5. Configure the parameters in the Basic Configurations step. The following table describes the parameters.
    Parameter Description Example
    Dedicated Host Select the dedicated host on which you want to create ECS instances and specify whether to select Associate with DDH.
    • If you select Associate with DDH, the ECS instances are deployed on the current dedicated host. If the resources of the dedicated host are insufficient, the ECS instances fail to be restarted.
    • If you do not select Associate with DDH, the ECS instances may be deployed on another dedicated host that belongs to your Alibaba Cloud account when the instances are restarted. For more information, see Features.
    DDH-test/dh-bp116lrux5x1qxh9****
    Billing Method Select a billing method for the ECS instances based on the billing method of the dedicated host. You can select Subscription or Pay-As-You-Go as the billing method of ECS instances that run on a subscription dedicated host.

    For more information, see Resource billing for ECS instances on a dedicated host.

    Pay-As-You-Go
    Instance Type The region and zone of the ECS instances must be the same as those of the dedicated host. The available instance types depend on the type and available computing resources of the dedicated host. For more information, see Dedicated host types.
    • If the dedicated host supports only predefined instance types, click Predefined Instance Type. Then, select the instance type in the Instance Type section. ECS instance types
    • If the dedicated host supports custom instance types, click Custom Instance Type. Then, you can adjust the sliders to specify the number of vCPUs and the size of the memory. The minimum scaling step size of vCPUs is 1. If more than one vCPU is required, you must set this parameter to an even number, for example, 2 or 4. The minimum scaling step size of the memory is 1 GiB. Add a custom instance type
    ecs.i2.xlarge
    DDH Resources The resources of the dedicated host. Default
    Selected Instance Type The selected instance type. Default
    Quantity Specify the number of ECS instances that you want to purchase based on your needs. 1
    Image You can select public images, custom images, shared images, or images that is purchased from Alibaba Cloud Marketplace.

    For more information, see Select an image.

    Note
    • To associate an SSH key pair with each ECS instance, you must select a Linux operating system from the drop-down list for the image.
    • To configure user data of the ECS instances, you must select an image that supports user data. For more information, see Manage the user data of Linux instances.
    Alibaba Cloud Linux 2.1903 LTS 64-bit
    Storage
    • System Disk: Required. The system disk is used to install the operating system. You must specify the type and capacity of the system disk.
      • Disk Type: All available types of disks in the current region are listed in this section.
      • Capacity: The default capacity of the system disk is 40 GiB. The maximum capacity is 500 GiB. If the size of the selected image is larger than 40 GiB, the image size is the default value. The minimum size of the system disk is related to the image. The actual size is displayed on the buy page. The system disks for different images have different capacities:
        • Linux (excluding CoreOS and Red Hat): 20 to 500 GiB
        • FreeBSD: 30 to 500 GiB
        • CoreOS: 30 to 500 GiB
        • Red Hat: 40 to 500 GiB
        • Windows: 40 to 500 GiB
    • Data Disk: To add data disks, you must specify the disk type, capacity, and quantity. You must also specify whether to enable disk encryption. You can create an empty data disk or create a data disk from a snapshot.
      Note In this case, the data disk has the following features:
      • The billing method of the data disk is the same as that of the ECS instances.
      • When you enable or disable the Release Disk with Instance feature for a system disk or a data disk, take note of the following information:
        • If the Release Disk with Instance feature is enabled for the disk, the disk is automatically released when its associated instance is released.
        • If the Release Disk with Instance feature is disabled for the disk, the disk is retained as a pay-as-you-go data disk 15 days after its associated instance expires, 15 days after a payment becomes overdue for the instance, or when the instance is manually released. If you create a disk in the Chinese mainland, you must complete real-name verification for your account to ensure that the disk can be retained.
          Note The retained disk is billed on a pay-as-you-go basis. You can log on to the Billing Management console and view consumption details by disk ID.
      • A maximum of 16 data disks can be attached to a single instance. For more information, see the "Elastic Block Storage (EBS) limits" section in Limits.
    • If you create an instance from an instance family with local SSDs, such as the i2 type, the information of the local SSDs is displayed and cannot be modified. For more information about the local SSDs of an instance family, see Instance family.
    Default
    Snapshot You can use automatic snapshot policies to periodically back up disks to prevent data loss risks arising from various situations such as virus attacks and accidental data deletion. You can specify the backup cycle and a system disk or data disk for backup. Default
  6. Click Next: Network and Security Group and configure the parameters in the Network and Security Group step. The following table describes the parameters.
    Parameter Description Example
    Network Type Alibaba Cloud provides a default virtual private cloud (VPC). If you do not want to use the default VPC, you can create a VPC and a vSwitch in the region where you want to create ECS instances. For more information, see Create an IPv4 VPC.
    • VPC: ddh-vpc/vpc-bp1j4z1sr8****
    • vSwitch: test/vsw-bp155oak33****
    Public IP
    • If you want to assign public IP addresses to the ECS instances, you must select Assign Public IP Address. Then, select Pay-By-Traffic or Pay-By-Bandwidth as the billing method of the public bandwidth, and specify the bandwidth. The public IP addresses cannot be detached from the ECS instances. For more information about the billing method of public bandwidth, see Public bandwidth.
    • If your instances do not need to access the Internet or your VPC-type instances use elastic IP addresses (EIP) to access the Internet, you do not need to assign public IP addresses. You can associate an EIP with or disassociate an EIP from an instance at any time.
    Default
    Security Group Alibaba Cloud provides a default security group. If you do not want to use the default security group, you can create a security group in the region where you want to create ECS instances. For more information, see Create a security group. sg-20200622/sg-bp1542zl60b5q6hx****
    Elastic Network Interface If the selected instance type supports Elastic Network Interface (ENI), you can add ENIs and select vSwitches for the ENIs.
    Note By default, the ENIs are released together with the ECS instances. You can also call the DetachNetworkInterface operation to detach the ENIs from the instances.
    test
    IPv6 Specify whether to use an IPv6 address based on your business requirements. For information about the instance families that support IPv6, see Instance family. Default
  7. Optional:Click System Configurations and configure the parameters in the System Configurations step. The following table describes the parameters.
    Parameter Description Example
    Logon Credentials You can specify key pairs and passwords. You can also select Set Later to configure the logon credential after the ECS instances are created. Select logon credentials based on the operating systems of the images.
    • Key Pair: Select an existing key pair or click Create Key Pair to create a key pair. For more information, see Create an SSH key pair.
    • Password: Enter a password and confirm it.
    • Set Later: After the instances are created, bind the key pairs or reset the instance passwords. For more information, see Reset the logon password of an instance.
    Set Later
    Instance Name The name of the ECS instance. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), colons (:), and hyphens (-). It must start with a letter. DDH-ecs
    Description Enter a description. The description must be 2 to 256 characters in length and cannot start with http:// or https://. test
    Hostname Enter a hostname. ddh-test
    Advanced Default
  8. Optional:Click Grouping and configure the parameters in the Grouping step.
    • Tags: Each tag consists of a case-sensitive key-value pair. If you have multiple instances, we recommend that you tag the instances for easy identification.
    • Resource Group: If you are an enterprise user, and you have activated Resource Management and created resource groups, you can manage instances by using the resource groups. Resource groups allow you to manage cross-region and cross-service resources based on your business requirements and manage the permissions of resource groups. For more information, see What is Resource Management?
  9. Click Preview to confirm the order.
    Before the ECS instances are created, make sure that the selected configurations such as the use duration meet your requirements.
    1. In the Configurations Selected section, confirm the configurations of the ECS instances.
      You can click the asda icon to modify the configurations.
    2. Configure the use duration of the ECS instances.
      • If the billing method of the ECS instances is Subscription, you must specify the duration, and specify whether to turn on the Enable Auto-renewal switch.
        Note The expiration date of the subscription ECS instances cannot be later than that of the subscription dedicated host.
      • If the billing method of the ECS instances is Pay-As-You-Go, you can select Automatic Release and specify the time to automatically release the instances.
    3. Read and accept the ECS Terms of Service.
    4. In the lower part of the page, view the total fees of the ECS instances, confirm the order, and then complete the payment.

Result

After the ECS instances are created, click Console in the upper-right corner of the page to go back to the ECS console. On the Instances page, select the region where the created ECS instances reside. Then, you can view the instance ID, public IP address, and private IP address of the created instances. To view the information of the dedicated host where each ECS instance is created, perform the following operations: Click the Column Filters button. In the Column Filters dialog box, select Dedicated Host and click OK.
Note For more information about Column Filters, see Migrate ECS instances between different dedicated hosts in the DDH console.

What to do next