This topic describes how to migrate your UCloud host to Alibaba Cloud ECS.

Migrate your UCloud Windows host to Alibaba Cloud

Preparations

  1. Create a snapshot to back up your data.
  2. Verify that your UCloud host can access the following websites and ports:
    1. ECS: https://ecs.aliyuncs.com:443.
      Note For information about ECS API endpoints of other regions, see Endpoints.
    2. VPC: https://vpc.aliyuncs.com:443.
    3. STS: https://sts.aliyuncs.com:443.
    4. Intermediate instance: port 8080 and port 8703.
      Note An intermediate instance is a temporary instance that is automatically created during the running of the Cloud Migration tool. If a network connection error occurs during the migration, you need to verify that the UCloud host to be migrated has access to port 8080 and port 8703 of the intermediate instance by running the following commands:
      telnet xxx.xx.xxx.xx 8080  # where, xxx.xx.xxx.xx is the Internet IP address of the intermediate instance. When you perform the migration through VPC, xxx.xx.xxx.xx is the private IP address of the intermediate instance.
      telnet xxx.xx.xxx.xx 8703  # where, xxx.xx.xxx.xx is the Internet IP address of the intermediate instance. When you perform the migration through VPC, xxx.xx.xxx.xx is the private IP address of the intermediate instance.
  3. Verify that the Windows VSS service is enabled.
  4. Check whether you have installed the qemu-agent tool. If so, uninstall it. For more information, see Cloud Migration tool FAQ.
  5. Check the validity of your application licenses.
    Note After your UCloud host is migrated to Alibaba Cloud, the underlying hardware devices of the system will change, which may result in the associated application licenses becoming invalid.
  6. We recommend that you use a test machine to conduct migration tests before completing the actual procedure to ensure the migration is successful.

Procedure

  1. Download and install the Cloud Migration tool onto the server to be migrated.
  2. Configure the user_config.json file.

    The user_config.json file contains the following configuration items:

    • The AccessKey information of your Alibaba Cloud account
    • The target zone of migration and the name of the target image
    • (Optional) The size of the target system disk and the configuration of the target data disks
    • The platform and architecture of the source system to be migrated

    For the configuration methods of these items, see Configure the user_config.json file.

  3. (Optional) Configure the directories or files that do not need to be migrated. For more information, see Exclude files or directories from migration.
  4. Run the main program of the Cloud Migration tool.

    Run go2aliyun_client.exe or go2aliyun_gui.exe as the administrator. If the main program is a GUI version, click the Start button to start the migration.

Migrate your UCloud Linux host to Alibaba Cloud

Preparations

  1. Create a snapshot to back up your data.
  2. Verify that your UCloud host can access the following websites and ports:
    1. ECS: https://ecs.aliyuncs.com:443.
      Note For information about ECS API endpoints of other regions, see Endpoints.
    2. VPC: https://vpc.aliyuncs.com:443.
    3. STS: https://sts.aliyuncs.com:443.
    4. Intermediate instance: port 8080 and port 8703.
      Note An intermediate instance is a temporary instance that is automatically created during the running of the Cloud Migration tool. If a network connection error occurs during the migration, you need to verify that the UCloud host to be migrated has access to port 8080 and port 8703 of the intermediate instance by running the following commands:
      telnet xxx.xx.xxx.xx 8080  # where, xxx.xx.xxx.xx is the Internet IP address of the intermediate instance. When you perform the migration through VPC, xxx.xx.xxx.xx is the private IP address of the intermediate instance.
      telnet xxx.xx.xxx.xx 8703  # where, xxx.xx.xxx.xx is the Internet IP address of the intermediate instance. When you perform the migration through VPC, xxx.xx.xxx.xx is the private IP address of the intermediate instance.
  3. Check the validity of your application licenses.
    Note After your UCloud host is migrated to Alibaba Cloud, the underlying hardware devices of the system will change, which may result in failure of some application licenses associated to the hardware.
  4. We recommend that you use a test machine to conduct migration tests before completing the actual procedure to ensure the migration is successful.

Procedure

  1. Download and decompress the Cloud Migration tool.
  2. Run the client_check script of the tool to check whether the UCloud host to be migrated meets the migration conditions.
    1. Run the following command to download the Cloud Migration tool to the server to be migrated:
      wget http://p2v-tools.oss-cn-hangzhou.aliyuncs.com/Alibaba_Cloud_Migration_Tool.zip
    2. Run the following command to decompress the Cloud Migration tool:
      unzip Alibaba_Cloud_Migration_Tool.zip


    3. Run the following command to view the hardware architecture of the Linux server to be migrated and decompress the Cloud Migration tool package that applies to this hardware architecture:
      uname -a 
      unzip <the Cloud Migration tool package that applies to the hardware architecture of the Linux system to be migrated>

      In this example, the Linux hardware architecture is x86_64. Therefore, the Cloud Migration tool package that applies to this hardware architecture is go2aliyun_client1.3.2.3_linux_x86_64.zip.



    4. Run the following command to access the directory where the decompressed Cloud Migration tool is located:
      cd <the directory where the decompressed Cloud Migration tool is located>

      In this example, the command is cd go2aliyun_client1.3.2.3_linux_x86_64.

    5. Run the following command to check whether the Linux server meets the migration conditions:
      chmod +x ./Check/client_check
      ./Check/client_check --check

      If all check items are OK, it means that the Linux server meets the migration conditions and you can start the migration.

  3. Set the migration parameters as needed, and then run the Cloud Migration tool.
    1. Configure the user_config.json file.

      The user_config.json file contains the following configuration items:

      • The AccessKey information of your Alibaba Cloud account
      • The target zone of migration and the name of the target image
      • (Optional) The size of the target system disk and the configuration of the target data disks
      • The platform and architecture of the source system to be migrated

      For the configuration methods of these items, see Configure the user_config.json file.

    2. (Optional) Configure the directories or files that do not need to be migrated. For more information, see Exclude files or directories from migration.
    3. Run the following command as the root user to grant the execution permission to the main program, and then run this program.
      chmod +x go2aliyun_client
      ./go2aliyun_client
    4. Wait until the main program of the Cloud Migration tool has been completely executed. When the message Go to Aliyun Finished! is displayed, the migration is successfully completed.

FAQ

Why am I unable to start or stop the newly migrated Linux instance in the Alibaba Cloud ECS console?

Because some Linux system kernels are customized on the UCloud platform, the customized kernels may be incompatible with Alibaba Cloud ECS. To resolve this issue, you can replace the Linux system kernels. For example, you can replace a customized CentOS kernel with an official CentOS kernel. Alternatively, you can contact Alibaba Cloud technical support.