Help Center/ Elastic Cloud Server/ FAQs/ Region and AZ FAQ/ Can I Migrate an ECS to Another Region, AZ, or Account?
Updated on 2024-09-29 GMT+08:00

Can I Migrate an ECS to Another Region, AZ, or Account?

After an ECS is created, it cannot be directly migrated to another region, AZ, or account.

To migrate an ECS across accounts or regions, create an image using the ECS and migrate the image to the target accounts or regions.

For details about common server migration scenarios and methods, see Common Server Migration Scenarios.

For details about how to migrate an ECS across accounts or regions, see Migrating ECSs Across Accounts and Regions Through Image Replication.

Common Server Migration Scenarios

Common server migration scenarios include migration from physical servers to cloud servers, from a virtualization platform, such as VMware, to Huawei Cloud, between Huawei Cloud ECSs across accounts, regions, or AZs, from cloud servers on a third-party cloud platform to Huawei Cloud ECSs, and installation disk imaging. For details about the recommended migration methods, see Table 1.

Table 1 Common server migration scenarios

Scenario

Condition

Recommended Solution

Remarks

From x86 physical servers to Huawei Cloud servers

For example, P2V

The servers can access the Internet.

Server Migration Service

For details, see Best Practices - Server Migration Service.

None

From VMs on a virtualization platform, such as VMware, to Huawei Cloud servers

The VMs can access the Internet.

Server Migration Service

For details, see Best Practices - Server Migration Service.

None

The VMs cannot access the Internet.

  1. Export the VM image files from the virtualization platform.
  2. Import the image files to Huawei Cloud.

If the image file format is not vhd, vmdk, qcow2, raw, vhdx, qcow, vdi, qed, zvhd, or zvhd2, convert the file format.

Between Huawei Cloud ECSs across accounts, regions, or AZs

For example, the ECSs of account A in the CN North-Beijing4 region are to be migrated to account B in the CN East-Shanghai1 region.

The ECSs can access the Internet.

Server Migration Service

For details, see Best Practices - Server Migration Service.

None

The ECSs cannot access the Internet.

Recommended

  • Migration across accounts: Sharing Images.

    Use the system disk of the source ECS to create a system disk image and the data disk to create a data disk image, or use the source ECS to create a full-ECS image. Then, share the images with other accounts.

  • Migration across regions: Replicate images across regions.

    Use the system disk of the source ECS to create a system disk image and the data disk to create a data disk image, or use the source ECS to create a full-ECS image. Then, replicate the images to other regions.

  • Migration across accounts and regions: Sharing Images and Replicating Images Across Regions.
  • Migration across AZs: Creating an ECS from an Image.

    Use the system disk of the source ECS to create a system disk image and the data disk to create a data disk image, or use the source ECS to create a full-ECS image. Then, use the Apply for Server function of the image to create an ECS in the target AZ.

Only the full-ECS images created using CBR can be shared.

The size of images to be replicated across regions cannot be larger than 128 GB.

From a third-party cloud platform to Huawei Cloud

For example, from Alibaba Cloud or Tencent Cloud to Huawei Cloud

The ECSs can access the Internet.

Server Migration Service

For details, see Best Practices - Server Migration Service.

None

The ECSs cannot access the Internet.

  1. Export the image from the source cloud platform.
  2. Import the image files to Huawei Cloud.

If the image file format is not vhd, vmdk, qcow2, raw, vhdx, qcow, vdi, qed, zvhd, or zvhd2, convert the file format.

Installation disk imaging

For example, create an image file offline and import it to Huawei Cloud.

The ISO installation disk image of the required OS is available.

Create a Windows image using VirtualBox and upload the image to Huawei Cloud.

Or

Create an image using an ISO file imported to Huawei Cloud.

None