Preparations Before Migration

This section describes how to prepare accounts, permissions, and source server and target ECS environments.

  1. Registering an account HUAWEI CLOUD and completing real-name authentication
  2. Obtaining Required Permissions
  3. Obtaining the AK/SK Pair for Your Account
  4. Ensuring that the Account Balance Is at Least ¥100 CNY
  5. Meeting OS Requirements
  6. Meeting Migration Network Requirements
  7. Meeting Requirements about Source Server Remaining Space and Environment

Obtaining Required Permissions

If you use an account for migration, you have the permissions required by default. However, if you use an IAM user for migration, follow the instructions provided in Creating a User Group and Assigning Permissions.

Obtaining the AK/SK Pair for Your Account

The AK/SK pair is used for authentication during the migration. For details about how to obtain the AK/SK pair of your HUAWEI CLOUD account, see How Do I Create an AK/SK Pair for an Account? or How Do I Create an AK/SK Pair for an IAM User?

Ensuring that the Account Balance Is at Least ¥100 CNY

To avoid migration failure, ensure that the account balance is greater than ¥100 CNY (top-up or cash coupons included).

SMS is free, but the use of other related services will generate some fees during the migration. For details about the fees, see Pricing Details.

Meeting Migration Network Requirements

  1. The source server can connect to HUAWEI CLOUD API Gateway (port 443). For details, see Connecting Source Servers to HUAWEI CLOUD API Gateway.

    It is recommended that all outbound ports on the source server be allowed.

  2. The source server can connect to the target ECS. For details, see Connecting Source Servers to Target ECSs.
    • If you want to use EIP for migration, you need to purchase and configure an EIP for the target ECS in advance.
    • If you want to use Direct Connect or VPN for migration, you need to purchase and configure Direct Connect or VPN connections in advance.
  3. The required ports are enabled in the security groups to which the target ECS belongs.
    • Windows: TCP ports 8899, 8900, and 22
    • Linux: TCP port 22 for block-level migration, and ports 8900 and 22 for file-level migration

    Open the same ports on the firewall of the target server.

    For details, see Ports to Be Enabled in the Security Groups of Target ECSs.

Meeting Requirements about Source Server Remaining Space and Environment

Source Server Remaining Space

  • Windows
    • At least 320 MB of available space on a partition larger than 600 MB
    • At least 40 MB of available space on a partition smaller than 600 MB
  • Linux

    At least of 200 MB of available space on the root partition

Source Server Environment

  • The system time of the source server must be consistent with the standard time to prevent the Agent registration failure on the source server.
  • For Linux servers, run the rsync -v command to check whether rsync is installed.
    If it is not installed on your servers, you can install it as follows:
    • CentOS: Run the yum –y install rsync command.
    • Ubuntu: Run the apt-get -y install rsync command.
    • Debian: Run the apt-get -y install rsync command.
    • SUSE: Run the zypper install rsync command.
    • For other distributions, refer to the official website documentation.

      rsync usually comes pre-installed on most distributions by default.

  • For Windows servers, install one of the following Agents:
    • Windows Agent (Python 3): Windows Server 2019/2016/2012 and Windows 10/8.1
    • Windows Agent (Python 2): Windows Server 2008 and Windows 7