You can migrate an Elastic Compute Service (ECS) instance from a dedicated host to a shared host. This allows you to flexibly deploy your business.

Prerequisites

The ECS instance that you want to migrate must meet the following requirements:
  • The ECS instance is stopped. This is because you can migrate an ECS instance only after you stop it. For more information, see Stop an instance.
    Warning If you stop an ECS instance, your business is interrupted. Proceed with caution.
  • You are billed for the ECS instance based on the pay-as-you-go billing method. To migrate subscription instances, you must change the billing method to pay-as-you-go. For more information, see Change the billing method of an instance from subscription to pay-as-you-go.
  • The dedicated host is not a local SSD host.

Background information

After you migrate an ECS instance from a dedicated host to a shared host, you are charged for the vCPUs, memory, and local disks. The costs of these resources are no longer included in DDH bills. Make sure that your account has sufficient balance. For more information, see Pay-as-you-go.

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. On the Dedicated Hosts page, find the dedicated host on which the ECS instance resides, and then click Details in the Actions column.
    detail-info
  5. Find the ECS instance that you want to migrate, and click Modify Host Deployment in the Actions column.
    modify-ddh
  6. In the Modify Host Deployment dialog box, set the required parameters.
    ParameterDescription
    Destination HostSelect Shared Host.
    Target Instance TypeEnter an instance type, for example, ecs.g6.large. For more information, see Overview of instance families.
    The destination instance type must meet the following requirements. This ensures the success of the migration.
    Migration MethodValid value: Stop and Migrate. The ECS instance that you want to migrate must be in the Stopped state.
    Modify Host Deployment dialog box
  7. Click OK.
    After the migration is complete, the ECS instance automatically starts and enters the Running state.
  8. Optional:on the Instances page, find the dedicated host on which the ECS instance resides.
    1. In the upper-right corner of the page, click the display-config icon.
      config-icon
    2. Select Dedicated Host, and then click OK.
    3. In the Dedicated Host column, view the host on which the ECS instance resides.
      • If the ID and name of a dedicated host are displayed, the ECS instance is running on the dedicated host.
      • If - is displayed, the ECS instance is running on a shared host.
      host-column