This document describes how to migrate a source server to Tencent Cloud CVM through quick migration in the Console.
Overview
Quick migration is an agile version of online migration. It eliminates complex operations such as login to the source server and tool download, allowing you to create a batch migration task to migrate data such as the operating system and applications on the source server to Tencent Cloud.
Quick migration supports both the Linux and Windows operating systems. You can query the migration progress on the Online migration page of the CVM console. Limits
Quick migration has certain requirements for the source server environment. Specifically, you need to install the cloud assistant (such as Alibaba Cloud ECS Cloud Assistant), configure the public IP, and use the VPC (classic networks are not supported) on the source server.
Currently, quick migration allows you to migrate only Alibaba Cloud servers to Tencent Cloud.
Migration Workflow
The procedure of quick migration in the console is shown below:
Migration Directions
Step 1. Prepare for migration
Note:
If you want to migrate the source server by using a sub-account, ask the root account owner to associate the QcloudCSMFullAccess and QcloudCVMFullAccess policies with the sub-account in the CAM console. Get the access key on the source cloud platform
Get the AccessKeyID
and AccessKeySecret
of Alibaba Cloud in the following steps:
1.1 Log in to the RAM console and select Identities > Users. 1.2 Click Create User and select OpenAPI Access for Access Mode. (Do not select Console Access, which does not apply to this scenario.) Then, save the AccessKeyID
and AccessKeySecret
. For detailed directions, see Create a RAM user. 1.3 In the user list, find the target user and click Add Permissions to add the ECS read-only permission (AliyunECSReadOnlyAccess
) and ECS cloud assistant management permission (AliyunECSAssistantFullAccess
). For detailed directions, see Grant permissions to the RAM user. (Optional) Stop applications on the source server
We recommend you stop all applications on the source server to prevent them from being affected by the migration.
(Optional) Back up data on the source server and destination CVM
We recommend you back up data in the following ways before the migration:
Source server: You can use the snapshot feature or other methods to back up data on the source server.
Destination CVM: Create a snapshot of the instance (See Creating Snapshots) to back up the data. Check the destination CVM
If the migration destination is a CVM instance, you need to check the destination CVM.
Destination CVM | 1. Storage space: The cloud disks (including the system disk and data disks) of the destination CVM must offer sufficient storage space for saving data from the source server. 2. Security group: Port 80, port 443 and port 3389 are opened. 3. Bandwidth: Set the bandwidth cap on both the two ends to the highest possible value. During the process, the traffic consumed is approximately the amount of data migrated. Adjust the billing mode beforehand if necessary. |
Go to the quick migration page
i. Log in to the CVM console and choose Server Migration > Online Migration in the left sidebar. Click Import migration source to go to the Import migration source page.
ii. Select Quick migration to batch create migration tasks. Step 2. Create a migration task
1. Configure the task
Enter the task name and description.
2. Configure the migration source
The source ISP is set to Alibaba Cloud ECS by default, and you need to enter the AccessKey
and SecretKey
of your Alibaba Cloud account (they can be obtained as instructed here). Then, verify that you have the permission to access the source server information as shown below: Note:
Keep your access key confidential. We recommend you delete or disable the access key after the migration.
3. Configure the migration destination
The destination ISP is set to CVM by default, and you need to enter the SecretId
and SecretKey
of your TencentCloud API (they can be obtained as instructed here) to get the permissions to use CVM. You can copy the key information on the Manage API Key page. Make sure that the API key is correct. Otherwise, the migration fails. Note:
Keep your access key confidential. We recommend you delete or disable the access key after the migration.
4. Configure the migration information
4.1 After the migration source information is verified, click Add migration source to select the target instance in the pop-up window.
4.2 Select the region in the top-left corner of the pop-up window to get the instance list in the region. The number after the region indicates the number of instances.
4.3 Select the target instance to add it to the Selected list on the right.
Note:
You can batch migrate instances from different regions and add migration sources multiple times.
Currently, you can batch migrate up to five instances.
4.4 Click OK. Then, the information of the target instance is displayed in the migration source list. You can click Add destination information in the Operation column to configure the migration destination information.
4.5 In the Add migration destination pop-up window, select the region and migration destination type:
|
Destination region | Yes | Tencent Cloud region to which the source server is to be migrated. For more information on regions, see Regions and AZs. |
Destination type | Yes | The type of the Tencent Cloud destination to which the migration source is to be migrated. CVM image: The Tencent Cloud destination image to be generated for the migration source after the migration task is completed.Image name: The name of the Tencent Cloud destination image generated for the migration source. If the image name already exists in the target region, the migration task will automatically add the task ID in the image name. CVM instance: The CVM instance in the target region to be used as the migration destination.Destination instance: We recommend you select a destination CVM instance with the same operating system as the source server. For example, to migrate a CentOS 7 source server, select a CentOS 7 CVM instance as the destination. In addition, the system disk and data disk capacity of the destination CVM instance must be larger than those of the source server. |
5. Click Create and start the migration task. The Reminder window will pop up. Note the following:
You need to wait a minute before the progress can be viewed in the console, as it takes some time to execute the task on the migration source.
If the migration source fails to be imported due to an abnormal source server environment or incorrect information, the failure cause may not be indicated in the Tencent Cloud console. In this case, recreate the task or use online migration instead. Step 3. Check after migration
1. View the migration status and progress
A successfully created migration task will run automatically. You can view the migration source information on the migration source page and the task progress on the migration task page. If the migration destination is a CVM instance, the destination CVM enters migration mode after the migration starts. Do not reinstall the system, shut down, terminate, or reset passwords of the destination CVM until the migration ends and the destination CVM exits the migration mode.
If the migration destination is a CVM image, a relay instance named do_not_delete_csm_instance
will be created under your account after the migration starts. Do not reinstall, shut down, or terminate the relay instance or reset its password. It will be automatically terminated by the system after the migration ends.
2. Wait for the migration task to end
After the migration task status becomes Successful, the migration is completed successfully, as shown below:
Note:
The time required for data transfer depends on the size of the data on the source server, network bandwidth, etc. Please wait for the migration process to complete.
After the migration task starts, you can click Pause on the row of the task to stop it.
The migration tool supports checkpoint restart. After a task is paused, you can click Start/Retry again to resume migration from where you paused.
A migration task can be paused during data transfer. After you click Pause for it in the console, the migration tool will pause the data transfer in progress.
If the migration process is time-consuming and you need to stop it, you can pause the migration task first and click Delete to delete it.
3. Check after migration
Failed migration:
Check the error information in log files (under the migration tool directory by default), operation guides, or FAQs about Server Migration for troubleshooting. After troubleshooting, click Start/Retry under the operation column to restart the migration task. Successful migration:
Migrating to a CVM: The destination CVM starts up normally. Data on the CVM is consistent with that on the source server. The network and other system services are normal.
Migrating to a CVM image: Click the CVM image ID on the row of the migration task to enter the CVM image page and view the image information. You can use this image to create CVM instances.
Was this page helpful?