Server Migration Center (SMC) supports cross-account ECS instance migration across availability zones and regions. Migrate instances from other accounts into your current account as new ECS instances or images, with incremental transfer and zero source-instance downtime.
Prerequisites
-
You must understand the migration impact and have completed the migration preparations.
-
The source account contains the ECS instance to be migrated.
-
The source server is running with a normal Cloud Assistant status. View Cloud Assistant status and troubleshoot abnormal states.
Preparation
-
Cross-account console migration requires a RAM user to import the migration source. Log on to the destination's main account and grant the following permissions to the RAM user:
If the main account does not have a RAM user, create one.
-
The AliyunSTSAssumeRoleAccess permission for calling STS.
-
The AliyunSMCFullAccess permission for managing SMC.
-
The AliyunECSReadOnlyAccess permission for read-only access to ECS.
-
The AliyunECSAssistantFullAccess permission for managing Cloud Assistant.
Example: Grant the AliyunSTSAssumeRoleAccess permission.
-
Log on to the RAM console with the destination's main account.
-
In the left-side navigation pane, choose Users, and then click the logon name of the RAM user.
-
Choose .
-
On the Add Authorization page, enter AliyunSTSAssumeRoleAccess, select the policy, and then click OK.

-
-
Obtain the main account IDs of the source and destination accounts.
-
Log on to the Alibaba Cloud console with the source and destination accounts separately.
-
Hover over the user icon in the upper-right corner to view the account ID.

-
Step 1: Grant source account permissions
Log on to the RAM Console with the source account (must have RAM administrative permissions). Create a role and grant it permissions.
-
Create a policy
-
In the navigation pane on the left, choose , then click Create Policy.

-
Click the JSON Editor tab, replace the existing content with the following policy, then click OK.
{ "Version": "1", "Statement": [ { "Action": [ "ecs:DescribeZones", "ecs:DescribeInstances", "ecs:DescribeSecurityGroupAttribute", "ecs:DescribeSecurityGroups", "ecs:DescribeSnapshots", "ecs:DescribeImages", "ecs:DescribeDisks", "ecs:DescribeCloudAssistantStatus", "ecs:RunCommand", "ecs:DescribeInvocations" ], "Resource": "*", "Effect": "Allow" } ] } -
In the Create Policy dialog box, enter policy-smc for the policy name, then click OK.

-
-
Create a role
-
In the navigation pane on the left, choose , then click Create Role.

-
For Trusted Entity Type, select Cloud Account. For Trusted Entity, select Other Account. In the text box, enter the Alibaba Cloud account ID of the destination account.

-
Click OK. Enter a role name, such as ram-role-smc.

-
-
Grant permissions to the role
-
On the Roles page, click the name of the role you created to open its details page.

-
Click the Permissions tab, then click Precise Permission.

-
In the Grant Permission panel, select Custom Policy, search for and select the policy-smc policy, then click OK.

-
Step 2: Import the migration source
-
Log on to the SMC console as a RAM user of the target account. In the left-side navigation pane, choose Cross-account/Same-account Migration.
-
On the Cross-account/Same-account Migration page, click Import Source Servers.
-
Configure the parameters as prompted and copy the activation code command. The following table describes the parameters.
Parameter
Description
Migration Source Type
ECS Instance.
Import Method
Select Import through Console.
Cloud Assistant remotely connects to the source server to import the migration source. Do not interrupt this process.
Cross-Account
Cross-account.
The Alibaba Cloud account to which the source server belongs
Enter the ID of the source server's Alibaba Cloud account.
Source Account RAM Role
Enter the role name created in Step 1, for example, ram-role-smc.
Region
Select the region of the source server.
Instance
Search by instance ID, name, or IP address and select the ECS instances to migrate. You can select multiple instances for batch import.
-
After you configure the parameters, click Import.
SMC uses Cloud Assistant to import the migration source. This takes 3 to 10 minutes.
-
On the Cross-account/Same-account Migration page of the SMC console, check the status of the migration source in the Real-time Migration Status column.
-
If the status is Migration Source Online, the import is successful.
NoteDuring cross-account ECS migration, the source instance's public IP, full OS name, or instance status may not display. This is expected and does not affect migration.
-
Any other status indicates a failed import. Troubleshoot using the following solutions, then retry.
-
Check the error message in the console or SMC client logs. Default installation directories:
-
Windows servers: C:\smc.
-
Linux servers: /smc.
-
-
Common issues and solutions: SMC FAQ and Troubleshooting.
-
-
Step 3: Configure migration for the target account
-
In the Actions column of the migration source that you want to manage, click Start Migration.
-
Configure the parameters and click Start Migration.
Configure basic parameters.
Parameter
Description
Destination Type (Required)
Select a destination type based on your migration scenario:
ECS Image
Converts the source server into a custom image. You can then use this custom image to create an ECS instance and complete the migration.
The following parameters are available:
Destination Region: The Alibaba Cloud region where the custom image will be created. This parameter is required. Regions and zones.
Image name prefix: The prefix of the custom image name that SMC generates for the migration source.
ECS Instance
Migrates the source server to an existing ECS instance. The source server's storage, operating system, and other configurations must be compatible with the destination instance.
ImportantWhen you migrate to a destination instance, SMC first replaces the operating system of the destination instance. Automatic snapshots of the system disk are deleted and cannot be restored. To retain automatic snapshots, disable their release with the disk before migration. Configure automatic snapshots to be released with disks.
The following parameters are available:
Destination Region: The Alibaba Cloud region where the destination ECS instance is located. This parameter is required. Regions and zones.
Destination Instance: Select an ECS instance to be the destination.
Migration Test
The migration drill feature assesses the job's feasibility and risks before you start. It provides data volume, migration speed, and total time estimates, and suggests fixes to reduce potential migration issues. You are charged for pay-as-you-go resources used during the migration drill. By default, Migration Test is enabled.
WarningIf the target type is an ECS Instance, a migration drill creates snapshots of all disks on the target ECS instance. The snapshots are automatically rolled back after the drill is complete if an exception occurs during the drill or if the execution mode is set to Test Only. The target ECS instance is unavailable during the migration drill, and its data will be lost. Ensure that the target ECS instance does not contain important data.
Execution Method
Select an execution method based on whether Migration Test is enabled:
With migration test
Test Only: Creates only a migration drill job. After the drill is complete, you must manually start the server migration job if you want to migrate the server.
Test and Migrate: After the migration drill is complete, the system automatically starts the server migration job if no drill items have a status of Critical. By default, Test and Migrate is selected.
Without migration test
Migrate Now: Starts the migration immediately after you create the migration job. By default, Migrate Now is selected.
Migrate Later: Schedules the migration job to start automatically at a specified time.
NoteThe earliest you can schedule the job is 10 minutes from the current time.
Create Only: Creates the migration job but does not start it. You must manually start it later by clicking Start Migration Job in the Actions column.
Automatic Incremental Synchronization
Enables automatic, incremental data synchronization from the source server to Alibaba Cloud. By default, this feature is disabled.
If you enable this switch, you must configure the following parameters:
Synchronization Interval: The interval at which the incremental migration job automatically runs.
Maximum Reserved Images: The maximum number of images that the incremental migration job retains.
The migration job runs periodically to synchronize incremental data to Alibaba Cloud. Incremental server migration.
If you disable this switch, the migration job runs only once.
Enable a migration template
This parameter appears only when Destination Type is set to ECS Image.
A migration template presets parameters for a migration job. When you start the migration, the template parameters are automatically filled in. Set up a migration template.
Network Type
Select the network for transferring migration data to the intermediate instance. By default, data is transferred over the public network. The intermediate instance is created in the selected Virtual Private Cloud (VPC) and vSwitch and is assigned a public IP address.
Public Network (Default)
Migration data is transferred to the intermediate instance over the public network. This mode requires the source server to have public internet access. You can choose whether to specify a Virtual Private Cloud (VPC) and vSwitch.
Specify a VPC and vSwitch: The migration job creates an intermediate instance in the VPC and vSwitch that you specify.
Do not specify a VPC and vSwitch: The migration job creates an intermediate instance in a new VPC and vSwitch that are automatically created by the system.
VPC
Migration data is transferred to the intermediate instance over a private connection within a VPC. This mode requires you to connect the source server to the Alibaba Cloud VPC and specify a VPC and vSwitch.
NoteIf you can directly access a VPC in an Alibaba Cloud region from an on-premises data center (IDC), virtual machine (VM) environment, or cloud host, we recommend that you use this method. Private network transfer is faster and more stable than public network transfer, improving migration efficiency. You can connect the source server to the cloud VPC by using a VPN gateway, an Express Connect circuit, or a Smart Access Gateway. For more information, see Connect a VPC to a data center or another cloud.
The private IPv4 address of the destination instance
If you need to change the private IP address of the destination instance, you can manually specify a private IP address. This parameter appears only when Destination Type is set to ECS Instance.
Remain unchanged.: The private IP address of the Destination Instance remains unchanged.
Manual: Allows you to enter an IP address from the available CIDR block of the vSwitch to which the Destination Instance belongs. If the source IP address is within the vSwitch's CIDR block, you can change the destination instance's IP address to match the source IP address.
If the destination instance and the migration source are in the same CIDR block, enter the private IP address of the migration source.
If the destination instance and the migration source are in different CIDR blocks, you must first change the VPC of the destination instance to match the CIDR block of the migration source, and then enter the private IP address of the migration source.
You can also adjust the disk partition structure. Parameters are described in the following table.
Parameter
Description
Modify Disk Partition
Select whether to adjust the disk partition structure based on your requirements. Only SMC client versions 2.8.0 and later support this feature. SMC Client User Guide.
Disabled: The disk information of the source instance is not shown. SMC automatically reads the source disk information and generates a disk layout. After migration, the destination disk partition structure matches the automatically generated layout by default.
Enabled: The disk information of the source instance is displayed. SMC automatically reads the source disk information to generate a disk layout. You can adjust the destination disk partition structure, including the partition size and order, transfer method, and whether to enable LVM.
-
-
In the dialog box that appears, read the notes and click Got It.
-
On the Cross-account/Same-account Migration page, view the real-time migration status.
If you enabled the migration drill, SMC runs the drill first. Data transfer duration depends on data volume and network bandwidth. Wait for the task to complete.
Note-
Speed: Uncompressed data transferred per second. If Compression Ratio is greater than 0, the displayed speed exceeds the actual network transfer speed.
-
Remaining Sync Time: Remaining Sync Time = (Total Data Volume - Transferred Data Volume) / Speed.
-
If the transfer speed is too low, temporarily increase the bandwidth of the source and destination servers. Estimate the migration time and test the transfer speed.
-
(Optional) View migration details.
To view details, click a migration source ID in the Migration Source ID/Name column.
Verify the migration result
Clean up resources
Migrate to an image
During the 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. The migration result determines whether you need to manually release the instance:
Successful migration: SMC automatically releases the intermediate instance. No manual cleanup is required.
Migration error: The intermediate instance is not released and continues to incur charges. To avoid unnecessary charges, you can release the instance in one of the following ways:
If you no longer need the migration task, click the migration source ID. In the Actions column for the migration task, click Cancel Migration Job to delete the migration task and automatically clean up the intermediate instance.
Manually release the intermediate instance.
Migrate to a destination instance
During the 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. The migration result determines whether you need to manually release the intermediate disk:
Successful migration: SMC automatically releases the intermediate disk. No manual cleanup is required.
Migration error: The intermediate disk is not released and continues to incur charges. To avoid unnecessary charges, you can release the disk in one of the following ways:
If you no longer need the migration task, click the migration source ID. In the Actions column for the migration task, click Cancel Migration Job to delete the migration task and automatically clean up the intermediate disk.
Manually release the intermediate disk.
References
To migrate incremental data repeatedly, run incremental migrations at custom intervals after the initial full migration is complete. This process synchronizes incremental data from the source server to Alibaba Cloud, reducing business downtime and the final cutover time. For more information, see Incremental server migration.

icon next to the mount target.

