Server Migration Center (SMC) allows you to migrate data from servers in data centers, on-premises VMs, and third-party cloud platforms to Alibaba Cloud without service downtime. Data in a server includes data in the system disk and data disks. Supported VMs include VMware, Xen, KVM, and Hyper-V. Third-party cloud platforms can be Amazon Web Services (AWS), Microsoft Azure, Google Cloud Platform (GCP), and Tencent Cloud. This topic mainly introduces how to quick migrate servers to Alibaba Cloud.
Migration scenarios
Migrate your source servers to Alibaba Cloud ECS (ECS images and ECS instances).
Migrate your source servers to Alibaba Cloud simple application servers.
Migrate x86-based Linux servers to Alibaba Cloud container images.
Prerequisites
If you want to use the general-quick migration feature for a server, the source server must be accessible over the Internet.
If your source server is not accessible over the Internet, try other migration methods. For more information, see Server migration operations.
If you need to migrate servers to container images, other requirements must be met. For more information, see Prerequisites.
Procedure
Step 1: Import the migration source
Generate an activation code and a command in the SMC console as needed. Then, run the command on the migration source as an administrator to import the information about the source server.
Log on to the SMC console.
In the left-side navigation pane, choose
.In the upper left corner of the Server Migration page, click General Quick Migration.
On the General Quick Migration page, click Generate.
Based on the source server operating system, click the Linux Shell or Windows Powershell tab, then click Copy to copy the activation code command.
Log on to the source server and paste and run the copied command as an administrator to import the information about the migration source.
Linux server
Log on to the Linux server.
Paste and run the copied command as an administrator to import the information about the migration source.
After the command is run, if a message similar to
Import Source Server [s-bp18x8751kgz2oyh****] Successfully!
is returned, the information about the migration source is imported.
Windows server
Log on to the Windows server.
Open Windows PowerShell as an administrator.
Run the copied command to import the information about the migration source.
After the command is run, if a message similar to
Import Source Server [s-bp19rlidl3mwuptc****] Successfully!
is returned, the information about the migration source is imported.
Click Next Step.
NoteThe system will automatically check whether the migration source is imported. If the migration source is not imported, you cannot proceed to the next step.
Step 2: Configure migration parameters
After importing the migration source, you can configure migration parameters as needed and start the migration.
Configure basic information and advanced parameters based on the following information:
The following table describes the parameters.
Basic Information Configuration
Parameter
Description
Migration Job Name
Optional. The name of the migration job.
Job Description
Optional. The description of the migration job.
Destination Type
Required. The type of the destination on Alibaba Cloud to which you want to migrate the source server.
ECS Image
You can migrate the source server to an ECS image and then create an ECS instance by using the image.
If you set the Destination Type parameter to ECS Image, you must also configure the following parameters:
Destination Region: the Alibaba Cloud region to which you want to migrate the Tencent Cloud Lighthouse instance.
For more information about regions, see Regions and zones.
Image Name: the name of the destination ECS image to be generated by SMC for the migration source.
ECS Instance
You can migrate the source server to an ECS instance that you have purchased. The storage system and operating system of the destination ECS instance must be compatible with those of the source server.
Storage space: The storage space of the disks on the destination ECS instance must be larger than or equal to that on the source server. The disks include the system and data disks.
ImportantIf the disk size of the destination instance is smaller than that of the migration source, we recommend that you increase the disk size of the destination instance before you create the migration job. For information about how to resize disks online, see topics under Resize cloud disks.
If the number of data disks on the destination instance is less than that on the migration source, only some data disks on the migration source are migrated to the destination instance.
Security group: The ports enabled for the security group to which the destination ECS instance belongs must be the same as those of the source server. For more information, see Add a security group rule.
Bandwidth: We recommend that you increase the bandwidths of the source server and destination instance as much as possible to facilitate migration. For more information, see Estimate the time required for migration and test the data transfer speed.
If you set the Destination Type parameter to ECS Instance, you must also configure the following parameters:
Destination Region: the Alibaba Cloud region to which you want to migrate the source server.
For more information about regions, see Regions and zones.
Destination Instance: the destination ECS instance to which you want to migrate the source server.
ImportantDuring the migration, do not stop, start, restart, or release the destination instance. Otherwise, the migration fails.
Simple Application Server
You can migrate the Tencent Cloud Lighthouse instance to an Alibaba Cloud simple application server that you have purchased. The storage system and operating system of the Alibaba Cloud simple application server must be compatible with those of the Tencent Cloud Lighthouse instance.
Storage space: The storage space of the disks on the Alibaba Cloud simple application server must be larger than or equal to that on the Tencent Cloud Lighthouse instance. The disks include the system and data disks.
ImportantIf the disk size of the destination instance is smaller than that of the migration source, we recommend that you increase the disk size of the destination instance before you create the migration job. For more information, see Upgrade a simple application server and Extend a data disk.
If the number of data disks on the destination instance is less than that on the migration source, only some data disks on the migration source are migrated to the destination instance.
Security group: The ports enabled for the security group to which the Alibaba Cloud simple application server belongs must be the same as those of the Tencent Cloud Lighthouse instance. For more information, see the "Manage a firewall" section of the Manage the firewall of a simple application server topic.
Bandwidth: We recommend that you increase the bandwidths of the source server and destination instance as much as possible to facilitate migration. For more information, see Estimate the time required for migration and test the data transfer speed.
If you set the Destination Type parameter to Simple Application Server, you must also configure the following parameters:
Destination Region: the Alibaba Cloud region to which you want to migrate the Tencent Cloud Lighthouse instance.
For more information about regions, see Regions and network connectivity.
Destination Instance: the Alibaba Cloud simple application server to which you want to migrate the source server.
ImportantDuring the migration, do not stop, start, restart, or release the destination instance. Otherwise, the migration fails.
Container Image
Servers running only on x86-architecture Linux operating systems support migration to container images. If you set the Destination Type parameter to Container Image, you must also configure the following parameters:
Destination Region: Refers to the Alibaba Cloud region where your source server will be migrated to. For more information about regions, see Regions and zones.
Namespace: Select the namespace for storing the container image repository generated by the migration. For more information about creating a namespace, see Manage namespaces and resource quotas.
Repository: Select the name of the repository where the container image generated by the migration will be stored. For more information about creating an image repository, see Create a repository and build images.
Version: Enter the version information for the container image generated by the migration.
RAM Role: Select the instance role bound to the intermediate instance. For more information about creating a RAM role, see Create a RAM role for a trusted Alibaba Cloud service.
Modify Disk Partition
Determine whether to enable Modify Disk Partition based on your needs. This feature is only supported in SMC client 2.8.0 or above. For more information, see Use the SMC client.
Not enabled: By default, the disk partition structure of the destination system are the same as those of the migration source.
Enabled: You can adjust the destination disk partition structure, including partition size and order, transfer method, whether to enable LVM, and other configurations.
Migration Test
This parameter is displayed only when the Destination Type parameter is set to either ECS Image or ECS Instance.
Specifies whether to enable the migration test feature. This feature helps you understand the feasibility and risks of a migration job before the migration job starts and provides solutions to identified issues. You can also obtain information such as the amount of data to be migrated, migration speed, and total duration of the migration. This helps reduce the issues and losses that may occur during the actual migration. During the test, you are charged for pay-as-you-go resources. By default, Migration Test is enabled.
WarningIf you set the Destination Type parameter to ECS Instance, snapshots are created for all disks of the destination ECS instance. If the migration test is abnormal or the Execution Method parameter is set to Test Only, the disk snapshots are automatically rolled back. During the migration test, the destination ECS instance is unavailable and all data is lost. Make sure that the destination ECS instance does not contain important data.
For more information, see Configure a migration test.
Execution Method
Select an execution method based on whether Migration Test is turned on.
When Migration Test is turned on
Test Only: The system performs only the migration test. After the migration test is complete, you must manually start the server migration job.
Test and Migrate: The system performs the migration test. After the migration test is complete, if no test items are in the Critical state, the system automatically starts the server migration job. This is the default value.
When Migration Test is turned off
Migrate Now: The migration job starts immediately after it is created. This is the default value.
Migrate Later: The migration job automatically starts at the specified time after it is created.
NoteThe earliest time that you can specify to run a migration job is 10 minutes after the job is created.
Create Only: After the migration job is created, you must click Start Migration Job in the Actions column to manually start the migration job.
Automatic Incremental Synchronization
This parameter is displayed only when the Destination Type parameter is set to either ECS Image or ECS Instance.
Specifies whether SMC automatically synchronizes incremental data of the migration source to Alibaba Cloud. By default, this feature is disabled.
If you enable this feature, you must configure the following parameters:
Synchronization Interval: the interval at which SMC automatically synchronizes incremental data to Alibaba Cloud.
Maximum Reserved Images: the maximum number of images that can be retained during incremental data synchronization.
SMC automatically synchronizes
incremental data to Alibaba Cloud at the specified interval. For more information about the best practices for incremental data synchronization, see Migrate incremental data from a server.
If you disable this feature, incremental data is not synchronized.
Enable Migration Template
This parameter is displayed only when the Destination Type parameter is set to ECS Image.
The migration template is used to preset parameters for migration jobs, and the template parameters are automatically filled in when the migration starts. For more information about setting the migration template, see Configure the migration template.
Advanced Settings
If you need to set parameters such as network type and transmission speed limit, click Advanced Settings to configure advanced parameters.
Parameter
Description
Network Type
The type of network that is used to migrate data from the source server to the intermediate instance. By default, data is migrated over the Internet. During the migration, SMC creates an intermediate instance that connects to a vSwitch in a VPC. If you select Public Network, a public IP address is assigned to the intermediate instance.
Public Network (default value)
SMC migrates data to the intermediate instance over the Internet. If you select Public Network, make sure that the source server can access the Internet. You can determine whether to specify a VPC and a vSwitch based on your business requirements.
If you specify a VPC and a vSwitch, SMC creates an intermediate instance that connects to the specified VPC and vSwitch.
If you do not specify a VPC or vSwitch, SMC creates an intermediate instance that connects to the VPC and vSwitch automatically created by the system.
VPC
SMC migrates data to the intermediate instance over a VPC. If you select VPC, you must specify a VPC and a vSwitch and make sure that the source server can connect to the VPC.
NoteIf your server in a data center, your VM, or your third-party cloud server can connect to a VPC, we recommend that you select this network type to migrate data. Compared with migration over the Internet, migration over a VPC is more efficient and stable. You can use VPN Gateway, Express Connect, or SAG to connect a migration source to a VPC. For more information, see Connect a data center to a VPC.
Transmission Speed Limit
The maximum network transfer speed during the migration. Unit: Mbit/s. If you set the Compression Ratio parameter to a value greater than 0, the actual network transfer speed, which is the transfer speed of compressed data, is lower than the speed displayed in the Real-time Migration Status column.
Compression Ratio
The compression ratio of the data to be migrated. Set the compression ratio based on your business requirements.
If the bandwidth is limited, a high compression ratio improves the transmission efficiency.
If a high bandwidth is available, we recommend that you do not compress data. Data compression consumes CPU resources of the migration source.
Valid values: 0 to 10. Default value: 7. A value of 0 indicates that data is not compressed.
Checksum Verification
Specifies whether to verify data integrity by using a checksum. By default, this feature is disabled. If you enable this feature, data integrity is ensured, but transmission speed may be reduced.
License Type
This parameter is displayed only when the Destination Type parameter is set to either ECS Image or ECS Instance.
The license type. Valid values:
Alibaba Cloud: the Microsoft license provided by Alibaba Cloud. For more information, see the What Windows Server licenses does Alibaba Cloud support? section of the "FAQ" topic. This is the default value.
BYOL: SMC allows you to bring your own license (BYOL). You can bring your own Microsoft license or register with Red Hat Cloud Access. For more information, see the Is BYOL supported when I migrate servers by using SMC? section of the "FAQ" topic.
Image Check
This parameter is displayed only when the Destination Type parameter is set to ECS Image.
Specifies whether to enable the image check feature. The image check feature checks whether an image is valid and whether the image can be used to create full-featured ECS instances. You can use the image check feature when you create a server migration job or an agentless migration job for a VMware VM.
This feature helps you identify potential issues in images or ECS instances after the migration job is complete, and provides solutions to the identified issues. This helps you improve the success rate of starting ECS instances.
For more information, see Configure image check.
Tag
The tags that you specify for the migration job. Each tag contains a key and a value. You can use tags to query and manage migration jobs.
Intermediate Instance Type
The type of the intermediate instance. Select an intermediate instance type based on your business requirements. This parameter is available only if you set the Destination Type parameter to ECS Image or Container Image.
If you specify an instance type, SMC creates an intermediate instance of the specified type. If the specified instance type is unavailable, the migration job fails to be created.
If you do not specify an instance type, SMC automatically creates an intermediate instance.
ImportantDo not stop, start, restart, or release the intermediate instance during the migration to prevent migration failures.
Click Start.
In the message that appears, read the migration notes and click Got It.
In the General Quick Migration dialog box, click View Now to view the real-time migration status.
If you enable a migration test, SMC will first perform the test and proceed with the migration operation after the migration test is passed.
If the migration test fails, you need to review the test report, fix the test items that are in the Critical state, and retry the migration test. For more information, see Configure a migration test.
The amount of time required for data transmission is subject to factors such as the data size of the migration source and network bandwidth. Wait until the migration job is complete.
When the migration job is in the Synchronizing state, you can perform the following operations as needed:
Modify the migration job: In the Actions column, click Modify Migration Job to modify the Transmission Speed Limit, Compression Ratio, and Checksum Verification parameters.
Pause the migration job: In the Actions column, click Pause Migration Job.
Verify the migration result
Clear resources
What to do next
If you need to migrate incremental data multiple times, you can initiate incremental data migration multiple times at custom intervals after the first full migration is complete. This synchronizes the incremental data generated by the source server to Alibaba Cloud and reduces the suspension time and delivery time of the services provided by the source server. For more information, see Migrate incremental data from a server.