This topic describes how to achieve seamless migration of your services to the cloud by using Virtual Private Cloud (VPC). In this topic, the source server refers to your on-premises server, virtual machine (VM), or cloud host.

Prerequisites

Your source server is able to access the target VPC. If not, you can use VPN Gateway or the physical connection feature of Express Connect to access the VPC. For more information, see Process of creating a dedicated physical connection or Establish a connection between a VPC and an on-premises data center. You will be charged for using Express Connect and VPN Gateway. For more information, see Billing of physical connections and Pay-As-You-Go.
Note The Cloud Migration tool is upgraded to Server Migration Center (SMC). Alibaba Cloud no longer provides version updates and technical support for the Cloud Migration tool. We recommend that you use SMC for a better cloud migration experience. SMC provides a variety of features such as full migration, incremental migration, batch migration, and VPC-connected migration. It also provides a web-based SMC console for interactive operations. For more information, see What is SMC?

Background information

This topic offers three solutions to migrate your services to the cloud by using Alibaba Cloud VPC. You can select the most suitable method based on your network conditions:
If you want to use Alibaba Cloud VPC to migrate your services to the cloud, you must modify the client_data file. The client_data file records specific information that is involved in the migration procedure.
  • Source system: system platform and architecture.
  • VPC: VPC ID, VSwitch ID, and security group ID.
  • Intermediate instance: instance ID, instance type, IP address, and intermediate disk.
  • Target image: target image ID.
  • Configuration of the Cloud Migration tool: data transfer configuration, network configuration, and API service configuration.
Notice We recommend that you modify the client_data file only if you want to migrate services by using Alibaba Cloud VPC. Otherwise, do not modify the file because modifications may affect cloud migration and running processes.
The following table describes parameters in the client_data file.
Parameter Type Required Description
extra.net.net_mode Integer No The data transmission mode. Valid values:
  • 0: Data is transmitted over the Internet. The source server must be able to access the Internet. This is the default value.
  • 1: Data is transmitted by using a VPC. The source server must be able to access the target VPC.
  • 2: Data is transmitted by using a VPC. The source server must be able to access both the Internet and the target VPC.
To achieve cloud migration by using a VPC, you must set extra.net.net_mode to 1 or 2.
transition.vpc.vpc_id String No The ID of the VPC that is configured with Express Connect or VPN Gateway. This parameter is required in the case of extra.net.net_mode=1 or extra.net.net_mode=2.
transition.vswitch.vswitch_id String No The ID of the VSwitch in the VPC. This parameter is required in the case of extra.net.net_mode=1 or extra.net.net_mode=2.
transition.security_group.security_group_id String No The ID of the security group in the VPC.
extra.net.proxy.ip_port String No The IP address and port of the proxy. The value is in the IP:Port format. Example: 10.0.0.100:1080.
extra.net.proxy.user_pwd String No The username and password of the proxy. The value is in the User:Password format. Example: admin:123456.

Migrate a source server that cannot access the Internet

The following procedure is suitable for cases in which extra.net.net_mode=1. The procedure is divided into three stages. Stage 1 and Stage 3 are completed on a backup server that must be able to access the Internet. However, data transmission at Stage 2 is completed on the source server.

  1. Log on to the backup server that can be used to access the Internet and complete the following steps:
    1. Download and install the Cloud Migration tool. For more information, see Step 1: Download and install the Cloud Migration tool.
    2. Edit the client_data file of the Cloud Migration tool.
      Set extra.net.net_mode to 1, set transition.vpc.vpc_id to the ID of the VPC that is configured with Express Connect or VPN Gateway, and then set transition.vswitch.vswitch_id.
    3. Optional:Configure the transition.security_group.security_group_id parameter in the client_data file. Note that the security group must be configured to allow inbound traffic on ports 8080 and 8703. For more information, see Add security group rules.
    4. Run the Cloud Migration tool on the backup server until the output Stage 1 Is Done! appears. For more information, see Migrate your server to Alibaba Cloud by using the Cloud Migration tool.
      stage1
  2. Log on to the source server and complete the following steps:
    1. Copy the Cloud Migration tool configurations of the backup server.
      The configurations to copy include the user_config.json file, client_data file, and Rsync directory (for Windows) or Check directory (for Linux).
    2. Run the Cloud Migration tool on the source server until the output Stage 2 Is Done! appears. For more information, see Migrate your server to Alibaba Cloud by using the Cloud Migration tool.
      stage2
  3. Log on to the backup server again and complete the following steps:
    1. Copy the Cloud Migration tool configurations of the source server.
      The configurations to copy include the user_config.json file, client_data file, and Rsync directory (for Windows) or Check directory (for Linux).
    2. Run the Cloud Migration tool on the backup server again. For more information, see Migrate your server to Alibaba Cloud by using the Cloud Migration tool.
      stage3
      The output Stage 3 Is Done! indicates that the migration procedure is complete.

Migrate a source server that can access the Internet

The following procedure is for cases in which extra.net.net_mode=2 and the steps are the same as cloud migration over the Internet (in which extra.net.net_mode=0). When extra.net.net_mode is set to 2, data is automatically migrated to Alibaba Cloud by using a VPC and the rest of the process is completed over the Internet.

  1. Log on to the source server.
  2. Download and install the Cloud Migration tool. For more information, see Step 1: Download and install the Cloud Migration tool.
  3. Edit the client_data file of the Cloud Migration tool.
    Set extra.net.net_mode to 2, set transition.vpc.vpc_id to the ID of the VPC that is configured with Express Connect or VPN Gateway, and set transition.vswitch.vswitch_id.
  4. Optional:Configure the transition.security_group.security_group_id parameter in the client_data file. Note that the security group must be configured to allow inbound traffic on proxy ports 8080 and 8703. For more information, see Add security group rules.
  5. Run the Cloud Migration tool. For more information, see Migrate your server to Alibaba Cloud by using the Cloud Migration tool.

Migrate a source server that can access the proxy

The following procedure is for cases in which extra.net.net_mode=2 and the steps are the same as cloud migration over the Internet (in which extra.net.net_mode=0). When extra.net.net_mode is set to 2, data is automatically migrated to Alibaba Cloud by using a VPC and the rest of the process is completed by accessing the Internet through the LAN proxy.

  1. Log on to the source server.
  2. Download and install the Cloud Migration tool. For more information, see Step 1: Download and install the Cloud Migration tool.
  3. To edit the client_data file of the Cloud Migration tool, perform the following operations:
    1. Set extra.net.net_mode to 2, set transition.vpc.vpc_id to the ID of the VPC that is configured with Express Connect or VPN Gateway, and set transition.vswitch.vswitch_id.
    2. Configure the network proxy. Prepare the network proxy server in the LAN of the source server and configure parameters as follows:
      1. Enter the IP address and port of the network proxy server as the extra.net.proxy.ip_port parameter value.
      2. Enter the username and password (if specified) as the extra.net.proxy.user_pwd parameter value.
      Note For more information about extra.net.proxy.ip_port and extra.net.proxy.user_pwd, see the parameter description in the client_data file section.
  4. Optional:Configure the transition.security_group.security_group_id parameter in the client_data file. Note that the security group must be configured to allow inbound traffic on proxy ports 8080 and 8703. For more information, see Add security group rules.
  5. Run the Cloud Migration tool. For more information, see Migrate your server to Alibaba Cloud by using the Cloud Migration tool.

Contact us

If an issue occurs during cloud migration, check Cloud Migration tool FAQ for troubleshooting advice, or join the Cloud Migration tool DingTalk group for technical support. For additional contact information, see Feedback and support.