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

Prerequisites

Your source server can access the target Virtual Private Cloud (VPC). If not, you can use VPN gateways or the physical connection feature of Express Connect to access the VPC. For more information, see Establish a connection between a VPC and an on-premises data center or Connect an on-premises data center to a VPC through a physical connection.
Note You need to pay to use Express Connect and VPN Gateway. For more information, see Billing of physical connections and Pay-As-You-Go.

Background information

This topic offers three solutions for migrating your services to the cloud by using Alibaba Cloud VPC. You can select the method that is most suitable to 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 information 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 parameter 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 any modification may affect normal cloud migration and running processes.
The following table details the specific parameters in the client_data file.
Parameter Type Required Description
extra.net.net_mode Integer No The data transmission mode. Valid values:
  • 0: default value. Data is transmitted over the Internet. The source server must be able to access the Internet.
  • 1: Data is transmitted by using Alibaba Cloud VPC. The source server must be able to access the target VPC.
  • 2: Data is transmitted by using Alibaba Cloud VPC. The source server must be able to access both the Internet and target VPC.
To achieve cloud migration by using a VPC, you must set 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 net_mode=1 or 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 net_mode=1 or 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 format IP:Port, for 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 format User:Password, for example, admin:123456.

Migrating a source server that cannot access the Internet

The following procedure is for cases in which 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, whereas data transmission at Stage 2 is completed on the source server.

  1. Log on to the backup server 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.
      Specifically, set net_mode=1, set vpc_id to the ID of the VPC that is configured with Express Connect or VPN Gateway, and set vswitch_id.
    3. Optional: Configure the security_group_id parameter in the client_data file. Note that the security group must be configured to allow inbound traffic through ports 8080 and 8703. For more information, see Add security group rules.
    4. Run the Cloud Migration tool on the backup server as described in Migrate your server to Alibaba Cloud by using the Cloud Migration tool until the output Stage 1 Is Done! is displayed.
      Stage 1
  2. Log on to the source server and complete the following steps:
    1. Copy the user_config.json, Rsync (for Windows) or Check (for Linux), and client_data configuration files of the Cloud Migration tool from the backup server to the source server.
    2. Run the Cloud Migration tool on the source server as described in Migrate your server to Alibaba Cloud by using the Cloud Migration tool until the output Stage 2 Is Done! is displayed.
      Stage 2
  3. Log on to the backup server and complete the following steps:
    1. Copy the user_config.json, Rsync (for Windows) or Check (for Linux), and client_data configuration files of the Cloud Migration tool from the source server to the backup server.
    2. Run the Cloud Migration tool on the source server as described in Migrate your server to Alibaba Cloud by using the Cloud Migration tool.
      Stage 3
      The output Stage 3 Is Done! indicates that the migration procedure is completed.

Migrating a source server that can access the Internet

The following procedure is for cases in which net_mode=2 and the steps are the same as cloud migration over the Internet (in which net_mode=0). For cases in which net_mode=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.
    Specifically, set net_mode=2, set vpc_id to the ID of the VPC that is configured with Express Connect or VPN Gateway, and set vswitch_id.
  4. Optional: Configure the security_group_id parameter in the client_data file. Note that the security group must be configured to allow inbound traffic through proxy ports 8080 and 8703. For more information, see Add security group rules.
  5. Run the Cloud Migration tool as described in Migrate your server to Alibaba Cloud by using the Cloud Migration tool.

Migrating a source server that can access the proxy

The following procedure is for cases in which net_mode=2 and the steps are the same as cloud migration over the Internet (in which net_mode=0). For cases in which net_mode=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. Edit the client_data file of the Cloud Migration tool as follows:
    1. Set net_mode=2, set vpc_id to the ID of the VPC that is configured with Express Connect or VPN Gateway, and set 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 in extra.net.proxy.ip_port.
      2. Enter the username and password (if they are configured) in extra.net.proxy.user_pwd.
      Note For more information about extra.net.proxy.ip_port and extra.net.proxy.user_pwd, see parameter description in the client_data file.
  4. Optional: Configure the parameter security_group_id in the client_data file. Note that the security group must be configured to allow inbound traffic through proxy ports 8080 and 8703. For more information, see Add security group rules.
  5. Run the Cloud Migration tool as described in Migrate your server to Alibaba Cloud by using the Cloud Migration tool.

Troubleshooting

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