When you need to migrate on-premises physical servers or virtual machines (VMs) from other public clouds to Huawei Cloud ECS, you can use SMS to achieve a rapid migration. This document primarily introduces the migration scenarios and detailed operational procedures for these environments.
Preparations
Before using SMS, prepare accounts, permissions, and source and target server environments by referring to Table 1.
Table 1 Preparations | Item | Requirement |
| Obtaining the source server account and permissions | Get the login account and password of the source server in advance for installing and starting the migration Agent. Permission requirements: - Windows: Use an account with administrator permissions.
- Linux: Use an account with root permissions.
|
| Registering a Huawei Cloud account with required permissions for the target server | - Sign up for a HUAWEI ID, enable Huawei Cloud services, and complete real-name authentication. If you have already enabled Huawei Cloud services and completed real-name authentication, skip this step.
- Visit Huawei Cloud and click Sign Up.
- Sign up for a HUAWEI ID and enable Huawei Cloud services.
- (Optional) Complete real-name authentication. Real-name authentication is the process of submitting valid identity information (such as a passport or business license) for verification when you use cloud services offered in the Chinese mainland. There are individual real-name authentication and enterprise real-name authentication.
According to relevant laws and regulations, unauthenticated accounts cannot purchase cloud services in the Chinese mainland and your account and rights may not be protected. For more information, see Real-Name Authentication Overview. To complete real-name authentication, refer to: - Create an IAM user and grant permissions to the user. Skip this step if you use a HUAWEI ID (administrator account).
- On the IAM console, create a user group and attach the SMS FullAccess, OBS OperateAccess, ECS FullAccess, VPC FullAccess, EVS FullAccess, and MgC MigrateAccess system policies to the group. EVS KMSAccess must be attached if disk encryption is required. For details about how to grant permissions, see Creating a User Group and Assigning Permissions.
Create custom policies to supplement the system-defined policies. For details about how to configure custom policies, see Creating a Custom Policy. - Create IAM users and add them to the user group. For details, see Creating an IAM User.
- Obtain an AK/SK pair for the account.
The AK/SK of the target account is required for authentication when starting the Agent. For details, see Creating an Access Key. |
| Checking the source server environment and available space | |
| Checking the network environment | The migration network must meet the following requirements: - The source servers should be able to reach Huawei Cloud API Gateway (port 443). For details, see How Do I Set Up a Secure Migration Network for Using SMS?
NOTE: It is recommended that all outbound ports on source servers be opened. - The source servers should be able to connect to the target IP addresses.
- To migrate over the Internet, purchase an EIP in the target region for communicating with the source.
- To migrate over a private network, request a Direct Connect or VPN connection for communicating with the source.
- Port 22 must be enabled for the security groups to which the target servers belong. For more information, see How Do I Configure Security Group Rules for Target Servers?
CAUTION: - For security purposes, you are advised to only allow traffic from the source servers over this port.
- The firewall of the target servers must allow traffic to this port.
|
| Checking the compatibility of the source server | Ensure that the OS of the source server is supported by the system. For the compatible OSs, see: |
| Creating a target server | Use an existing target server (Use existing) or create a new one (Create new). - Use existing: Create a Huawei Cloud ECS and configure its VPC, security group, and EIP in advance. For details, see Purchasing an ECS in Quick Config Mode.
- Create new: Create a new target server while you are creating the migration task.
For details, see How Do I Create a Target Server That Meets the SMS Requirements? |
Creating a Server Migration Task
- Install and start the SMS-Agent on the source server.
Download and install the SMS-Agent that matches the source server OS.
- Create and start a migration task.
After the SMS-Agent is installed and started, go to the SMS console to create and start a migration task by performing the steps below.
- Configure the target server.
- Start a full replication and launch the target server.
After the migration is complete, the target server uses the same login method as the source server.
- Synchronize incremental data from the source server.
After the target server is launched, if there are data changes on your source server, you can synchronize new and modified data from the source server to the target server. For more information, see Synchronizing Incremental Data.