Updated on 2024-08-22 GMT+08:00

Preparing for Migration

Before using SMS, make the following preparations:

  1. Register a HUAWEI ID and enable Huawei Cloud services.

    Real-name authentication is required for migrating servers to regions within the Chinese mainland.

  2. Obtain the required permissions.

    If you use an account for migration, you have the required permissions by default. If you use an IAM user for migration, you need to obtain the required permissions. For more information, see Creating a User Group and Assigning Permissions.

  3. Obtain an AK/SK pair for your target account.

    The AK/SK pair is used for authentication during the migration. To learn how to obtain an AK/SK pair, 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?

    SMS does not support AK/SK-based authentication for federated users (virtual users).

  4. Ensure that the source server OS is supported by SMS.

    See Supported Windows OSs or Supported Linux OSs.

  5. Ensure that the following network requirements are met:
    1. The source server can connect to the Huawei Cloud API Gateway over TCP port 443. For more information, see Connecting Source Servers to Huawei Cloud API Gateway.

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

    2. If you want to migrate over an IPv6 network, the source environment must support IPv4/IPv6 dual-stack networks.
    3. The source server can connect to the target server. For more information, see Connecting Source Servers to Target Servers.
      • For a migration over the Internet, purchase EIPs in the region you are migrating to.
      • For a migration over a private network, request a Direct Connect or VPN connection.
    4. The following ports are enabled in the security group associated with the target server to allow traffic to these ports:
      • Windows: TCP ports 8899, 8900, and 22
      • Linux: TCP port 22 for file-level migration, and ports 8900 and 22 for block-level migration
        • For security purposes, you are advised to open these ports only to the source server.
        • The firewall of the target server must allow traffic to these ports.

      To learn how to open the ports, see How Do I Configure Security Group Rules for Target Servers?

  6. Ensure that the following source server requirements are met:

    Available Space

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

      At least 200 MB of available space on the root partition

    Source Environment

    • The system time of the source server must be consistent with the local standard time to avoid Agent registration failures.
    • If the source server runs Linux, rsync must be installed on it. You can run the rsync -v command to check whether rsync is installed.
      If it is not, install it by running the following command:
      • CentOS: yum -y install rsync
      • Ubuntu: apt-get -y install rsync
      • Debian: apt-get -y install rsync
      • SUSE: zypper install rsync
      • For other distributions, refer to the official website documentation.

        rsync comes preinstalled on most distributions by default.