All Products
Search
Document Center

Dedicated Host:Migrate an ECS instance from a dedicated host to a shared host

Last Updated:Jun 05, 2024

If your business no longer requires exclusive resources, you can migrate Elastic Compute Service (ECS) instances on a dedicated host to a shared host to reduce deployment costs.

Prerequisites

The ECS instance that you want to migrate must meet the following requirements:

  • The ECS instance that you want to migrate is stopped. For more information, see Stop an instance.

    Warning

    If you stop an ECS instance, the services that run on the instance are interrupted. Proceed with caution.

  • The billing method of the ECS instance is pay-as-you-go. 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.

Limits

ECS instances attached with local SSDs cannot be migrated to from a dedicated host to a shared host.

Billing

After you migrate an ECS instance from a dedicated host to a shared host, you are charged for the vCPUs and memory. 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 > icon1 > Dedicated Hosts.

  3. In the top navigation bar, select the region and resource group to which the resource belongs. 地域

  4. On the 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 Change Host in the Actions column.

    modify-ddh

  6. In the Change Host dialog box, set the required parameters.

    Parameter

    Description

    Destination Host

    Select Shared Host.

    Target Instance Type

    Enter an instance type, such as ecs.g6.large. For more information, see Overview of instance families.

    The destination instance type must meet the following requirements to ensure successful migration:

    Migration Method

    Valid value: Stop and Migrate, which means the ECS instance that you want to migrate must be in the Stopped state.

    DDH迁移至共享宿主机

  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