This topic describes how to use Server Migration Center (SMC) to migrate a server to Edge Node Service (ENS).
Scenarios
You can use SMC to migrate various types of servers that run Linux to Alibaba Cloud ENS. These servers include physical servers, virtual machines (VMs), and cloud hosts from other cloud platforms. The migration modes include Physical-to-Virtual (P2V), where you migrate from a physical data center to ENS, and Virtual-to-Virtual (V2V), where you migrate from a VM environment or a cloud host to ENS. This solution does not cover database or object storage migration.
The migration involves the following cloud products:
SMC: A migration platform developed by Alibaba Cloud. You can use SMC to migrate one or more source servers to Alibaba Cloud. Source servers can be servers in data centers, VMs, cloud hosts on other cloud platforms, or other types of servers. For more information, see Server Migration Center (SMC).
OSS: Alibaba Cloud Object Storage Service. For more information, see Object Storage Service (OSS).
ENS: An Alibaba Cloud edge computing product. Built on carrier edge nodes and networks, ENS provides one-stop, distributed computing resources that are integrated, open, interactive, and elastic. ENS helps you sink business to the carrier edge, which reduces computing latency and costs. For more information, see Edge Node Service.
Limits
Before you start the migration, make sure that the following preparations are complete:
You have an Alibaba Cloud account that has passed identity verification, and you have activated Resource Access Management (RAM) and Object Storage Service (OSS).
Data migration from encrypted disks is not supported.
Make sure the destination ENS node is upgraded to support cloud-init.
Supported image formats are raw, VDI, and VMDK. You can directly import compressed files in the tar.gz format. The VHD and QCOW2 formats are not supported.
The maximum size of an image that you can import to ENS is 1 TB. This is the total size of the compressed files for all system disks and data disks.
If you transfer data over the internet, make sure the source server can access the internet. You must also open ports 8080 and 8703 in the outbound direction for the source server in its security group. Data is transferred to the intermediate instance over the internet.
Limits on operating systems and data migration:
Source server operating system
Supported operating systems
Limits on data migration
Linux
CentOS 6/7/8
Red Hat 5/6/7/8
Ubuntu 10/12/14/16/17/18/19/20
Debian 7/8/9/10
Alibaba Cloud Linux
The partition structures of some disks, such as logical volume management (LVM) partitions and extended disk partitions, cannot be replicated. Unsupported disk partition structures are rebuilt as standard partitions.
SWAP partitions cannot be replicated. You must reconfigure them after the migration.
Some non-mainstream file system formats cannot be replicated. File systems in unsupported formats are rebuilt into mainstream formats such as ext2, ext3, or ext4.
If block replication is not supported, virtual memory, caches, system snapshot files, some software configurations such as cloud-init and network services, and data in the Docker directory are not migrated by default. For more information, see the
rsync_excludes_linux.txtfilter configuration file in the SMC client directory.
Migration notes
By default, you can create one migration task for each server.
The migration duration is affected by the data volume and network speed. For example, it takes about 25 minutes to migrate a 20 GB application service over the internet.
Do not interfere with the intermediate instance. For each migration, a temporary intermediate instance is created in your Alibaba Cloud account to assist with the migration. To prevent migration failures, do not stop, restart, or release the intermediate instance. After the migration is complete, the intermediate instance is automatically released.
For dynamic data directories, such as the data directories of large databases, you must suspend the business before migration.
The migration has the following impacts:
Item
Description
Data directory for migration
During the migration, SMC can obtain the disk partition structure of the migration source and automatically generate the destination disk partitions when you create a migration task. This improves the data transfer speed while maintaining the disk partition structure of the migration source as much as possible.
For Linux systems: If block replication is not enabled, all directories in the root directory of the system, including other partition directories mounted to the root directory, are migrated by default and a system disk partition is generated. If you want to migrate other partition directories, such as /disk1, to an independent data disk, you must select and configure a data disk when you create the migration task. If block replication is enabled, only the root partition directories of the system disk, such as / and /boot, are migrated by default. If you want to migrate other partitions, you must select and configure a data disk when you create the migration task.
IP address
The IP address changes after the migration. If your business involves IP address configurations, modify the IP address after the migration.
Underlying hardware devices
After the migration, the underlying hardware devices change. This may invalidate some application licenses that are bound to the hardware. Perform checks as needed.
Migration overview
An ENS instance is the smallest unit of computing service that Edge Node Service provides for your business. During an edge node migration, SMC migrates the source server to an Alibaba Cloud Edge Node Service image. You can then use the ENS image in the Edge Node Service console to create an ENS instance and quickly complete the migration.
The following figure shows the relationships between the products and services involved and the migration flow.
Install the SMC client on the source server.
Configure the migration and start the migration. The SMC service automatically creates a custom ECS image, exports it to an intermediate Object Storage Service (OSS) bucket, and then imports it as an ENS image.
In the Edge Node Service console, use the ENS image to create an ENS instance to complete the migration.
Edge Node Service (ENS) is built on carrier edge nodes and networks. It provides elastic and distributed computing resources that are close to end users and have global coverage. By computing and processing data from terminals nearby, ENS optimizes response latency, central workload, and overall costs. It helps you move your business to the carrier's edge, which effectively reduces computing latency and costs.
Object Storage Service (OSS) is a secure, cost-effective, and highly reliable cloud storage service that can store large amounts of data. The custom ECS image generated during the migration is stored and transferred through an OSS bucket.
Migration procedure
The first time you use this feature, you must grant ECS access permissions to OSS resources. The OSS bucket is used to store the intermediate image. Follow the prompts in the SMC console to complete the authorization.
Use the ENS image to create an ENS instance
If the Real-time Migration Status is Completed, the migration was successful and an Alibaba Cloud ENS image has been generated.

You can then go to the Edge Node Service console and use the ENS image to create an ENS instance. Select the ENS image from this migration.
Clean up resources
Migrate to a cloud server image
During migration, SMC creates a temporary pay-as-you-go intermediate instance named No_Delete_SMC_Transition_Instance in your destination Alibaba Cloud account to facilitate the migration. You must decide whether to manually release the instance based on the migration outcome:
Successful migration: The intermediate instance is automatically released. You do not need to manually release it.
Migration error: The intermediate instance is retained for the migration task and incurs charges. You can release it in the following ways to avoid unnecessary charges:
To delete a migration task and automatically clean up the intermediate instance, click the migration source ID, and then click Cancel Migration Job in the Actions column for the task.
Manually release the intermediate instance.
Migrate to a destination instance
During migration, SMC creates a temporary pay-as-you-go intermediate disk named SMC_Temp_Disk and attaches it to the destination instance to facilitate the migration. You must decide whether to manually release this intermediate disk based on the migration outcome:
Successful migration: The intermediate disk is automatically released. You do not need to manually release it.
Migration error: The intermediate disk is retained for the migration task and incurs charges. You can choose one of the following ways to release it to avoid unnecessary charges:
If you no longer need a migration task, click the migration source ID. In the Actions column for the task, click Cancel Migration. This action deletes the task and automatically cleans up the intermediate disk.
Manually release the intermediate disk.






icon in front of the mount target.
