Create and use an ECS instance in a Cloud Box

更新时间:
复制 MD 格式

An Elastic Compute Service (ECS) instance is a virtual compute server that includes basic components such as vCPUs, memory, an operating system, a network, and disks. You can use the compute and block storage resources in a Cloud Box to create ECS instances. You can manage the state and applications of these instances just as you would a local server. This topic describes how to create an ECS instance in a Cloud Box and provides guidance on related operations.

Billing

When you create an ECS instance using Cloud Box resources, you are not charged for the instance type (compute resources) or cloud disks (block storage resources). However, you are still charged for other ECS-related services. For example, if you use a paid image, you must pay the associated image fees. For more information, see Billing overview.

Prerequisites

  • The Cloud Box is in the Running state.

  • You have configured the network for the Cloud Box. For more information, see Configure the network.

Procedure

  1. Go to the Cloud Box Details page.

    1. Log on to the ECS console.

    2. In the left-side navigation pane, choose Instances & Images > CloudBox.

    3. In the top navigation bar, select a region.

    4. Click the Cloud Box List tab.
    5. Find the target Cloud Box and click its Cloud Box ID.

  2. Create an ECS instance in the Cloud Box.

    1. On the Cloud Box Details page, click Create Instance in the upper-right corner.

    2. On the Custom Launch page, configure the parameters.

      The following table describes some of the key parameters. For more information, see Create an instance on the Custom Launch tab.

      Configuration section

      Parameter

      Example

      Description

      Basic configurations

      Billing method

      Pay-As-You-Go

      The Pay-As-You-Go billing method offers greater flexibility. For more information, see Billing overview.

      Region

      China (Hangzhou)

      Select the region where the Cloud Box is located.

      Network and zone

      • VPC: vpc-bp1opxu1zkhn00g****

      • Availability zone and vSwitch: vsw-2vc0fpswizsbfa8iq****

      A Cloud Box resides in a single availability zone. Select a VPC and a vSwitch in your Cloud Box's availability zone based on your requirements. For more information, see Configure the network.

      Instance and image

      Instance

      • Instance family: General Purpose Type g6

      • Instance type: ecs.g6.large

      The compute SKUs you purchased for your Cloud Box and the available inventory determine the available instance types. For more information, see Compute SKUs.

      Image

      • Type: Public Image

      • Version: Alibaba Cloud Linux 3.2104 LTS 64-bit

      You can select an image from the Public Image, Custom Image, Shared Image, Marketplace Image, or Community Image tab. When you select the Custom Image tab, you can use a custom image from object storage in the Cloud Box. For more information, see Image overview.

      Storage

      System disk

      ESSD cloud disk

      An ECS instance's storage consists of a system disk and any attached data disks. The block storage resources you purchased determine the available storage types and capacity.

      Data disk

      Bandwidth and security group

      You cannot directly assign a public IP address to an ECS instance in a Cloud Box. To enable public internet access, you can create a Cloud Box Elastic IP Address (EIP) and associate it with the ECS instance. For more information, see Configure public internet access for an ECS instance in a Cloud Box.

      Security group

      sg-bp1bhjjsoiyx44hd****

      A security group controls inbound and outbound traffic for its instances. Select an existing security group based on your requirements. For more information, see Security group overview.

      Elastic network interface

      eni-2vc20tbtn0ysj7au****

      Elastic network interfaces are categorized as primary or secondary. A primary elastic network interface is created with the ECS instance and cannot be detached. You can attach or detach a secondary elastic network interface at any time to switch network traffic between instances. For more information, see Elastic network interface overview.

      Management settings

      Logon credentials

      Custom Password

      Logon credentials provide secure access to an ECS instance. You can use key pairs, set a custom password, or set a password after the instance is created. Select and configure the method that best suits your needs.

      Tag

      CloudBox-ECS

      Tags help you categorize and group resources, which simplifies searching and bulk operations. A tag consists of a key-value pair. For more information, see Tags.

      Advanced options (Optional)

      Instance name

      EcsQuickStart

      The name of the ECS instance displayed in the console.

      Deployment set

      None

      When you create an ECS instance in a Cloud Box, you can only deploy the instance within that specific Cloud Box.

  3. Select Cloud Server ECS Terms of Service and then click Create Order.

  4. In the Creation Successful dialog box, click Management Console to go to the instance list page and view the creation progress.

    An ECS instance created using Cloud Box resources is marked with a image icon. When the instance status changes to Running, the instance is successfully running in your Cloud Box.

    image

Related operations

Actions

Description

Related documentation

Connect to an ECS instance

You can connect to an ECS instance using various methods, such as Workbench or third-party client tools. Choose a connection method based on factors like the instance's operating system, your local operating system, and the operations you need to perform.

Select a method to connect to an ECS instance

Manage the state of an ECS instance

From creation to release, you can stop, start, and restart an instance as needed.

Instance lifecycle

View information about an ECS instance

You can view the overall status of your ECS instances on the Overview page. You can also view detailed information about specific instances on the Instances page.

View instance information

Change the logon password of an ECS instance

If you forget the logon password for an ECS instance or need to change it, you can reset it from the console, by using Cloud Assistant, or by running a command within the instance.

Send a remote command

You can send remote commands to one or more ECS instances from the console. This allows you to quickly perform routine maintenance tasks without having to log on to the instances.

Send a remote command

Related documentation

  • To deploy environments in batches, create a custom image from an ECS instance. You can then use the image cache feature to pre-cache the custom image to the Cloud Box's local storage. Using this cached custom image, you can quickly and efficiently create multiple ECS instances with identical environments. For more information, see Accelerate the creation of ECS instances by using image cache.

  • To back up data, create a snapshot from an ECS instance and save the snapshot to the local storage in your Cloud Box. This keeps your business data entirely on-premises. For more information, see Save ECS snapshots to a local OSS bucket in a Cloud Box.