Updated on 2026-10-28 GMT+08:00

Batch Server Migration

Introduction

This function enables you to efficiently migrate a large number of servers at a time. MgC is a one-stop migration platform. It automatically discovers and collects server resources, evaluates and provisions resources, and creates and orchestrates migration tasks, covering the following scenarios:

  • Server migration across cloud platforms, including AWS, Azure, Google Cloud, Alibaba Cloud, and Tencent Cloud.
  • VMware VM migration to Huawei Cloud ECS.
  • IDC server migration to the public cloud.

Process Flow

Install the MgC Agent in the network environment of the source servers. After the MgC Agent is connected to MgC, it collects and evaluates resources, and then creates a batch server migration task to migrate source servers to Huawei Cloud ECSs. Figure 1 shows the migration process.

Figure 1 Batch server migration process

Constraints

This function requires the MgC Agent, resource collection, batch server migration, and SMS services. Make sure that you have understood the following constraints:

Precautions

  • A task can contain a maximum of 100 servers.
  • Source servers in tasks created by the same user must have unique MAC addresses. Duplicate MAC addresses may cause network conflicts or task execution errors.
  • You can migrate up to 200 resources at the same time. Any additional resources beyond this limit will have their migration tasks paused at the first step and stay in a pending state. Once other migrations complete, these tasks will automatically resume in the order they were created.
  • If this is your first time creating a batch server migration task, assign the required permissions to your Huawei Cloud account. For more information about the required permissions, see Agency Permissions.
  • When the server migration task is in the Migrate and Complete cutover stages (that is, after the StartMigration step), do not perform operations on the migration task on the SMS console. Doing so may cause inconsistencies between task migration status and SMS task progress, affecting the normal running of the task.

Billing

MgC and SMS are free of charge, but you will be billed for the services used during data migration, such as ECS, Elastic Volume Service (EVS), and Elastic IP (EIP). For details, see SMS Billing.

Procedure

Table 1 introduces the complete process of batch server migration.

Table 1 Batch server migration process

Step

Description

Preparations

  • Obtain the access keys of the source cloud platforms, the accounts for logging in to the source servers, and the accounts and permissions of the target Huawei Cloud servers.
  • Check the source server configurations to ensure that they meet migration requirements.
  • Set up a Windows server within the source network environment for installing the MgC Agent.
    NOTE:

    If the source server data is collected using SMS Server Synchronization, the migration of such servers does not require the MgC Agent. Therefore, you do not need to prepare a server for installing the MgC Agent.

  • Create a batch server migration project on the MgC console.
  • Ensure that the OS and version of the source server are compatible with the system.
  • (Optional) Purchase target Huawei Cloud ECSs that match the source server specifications.

Step 1: Install the MgC Agent

Install the MgC Agent on the prepared Windows server in the source network, connect it to the MgC console, and add the source server credentials for migration.

NOTE:

If the source server data is collected using SMS Server Sync, you can skip this step.

Step 2: Collect Source Server Resources

Obtain the list of source servers to be migrated. Adopt a proper collection method based on the environment of source servers.

Step 3: Create a Migration Task

Create a batch server migration task. At this step, you will create a task template for configuration later.

Step 4: Configure the Migration Task

Select source resources, check migration readiness, configure target servers, set parameters, and confirm settings.

Step 5: Track the Migration Task

Start the migration task and check the migration status, stages, and steps.

Step 6: Verify Services

Verify that data on the target server is consistent with that on the source server and that applications and services are running properly.

Step 7: Perform a Service Cutover

Switch services from the source servers to the Huawei Cloud target servers and use the target servers to handle services.

Preparations

Prepare resources by referring to Table 2 before creating a batch server migration task.

Table 2 Preparations

Item

Requirement

Obtaining the source server credentials

These are essential for collecting server resources and recommending matching target server specifications. Permission requirements:

  • Windows: Use an account with administrator permissions.
  • Linux: Use an account with root permissions.

Obtaining the credentials of the environments where the source servers are located

Registering a Huawei Cloud account with required permissions for the target server

  1. Sign up for a Huawei Cloud account and complete real-name authentication. If you have already signed up for a Huawei Cloud account and completed real-name authentication, skip this step.
    1. Visit Huawei Cloud and click Sign Up.
    2. Sign up for a Huawei Cloud account.
    3. (Optional) Complete real-name authentication. Real-name authentication is the process of submitting valid identity information (such as a passport or business license) for verification when you use cloud services offered in the Chinese mainland. There are individual real-name authentication and enterprise real-name authentication.

      According to relevant laws and regulations, unauthenticated accounts cannot purchase cloud services in the Chinese mainland and your account and rights may not be protected. For more information, see Real-Name Authentication Overview.

      To complete real-name authentication, refer to:
  2. Create an IAM user and grant permissions to the user. Skip this step if you use a Huawei Cloud account (administrator account).
    1. Create an IAM user. For details, see Creating an IAM User or Creating an IAM User (New Version).
    2. Create a custom policy and grant permissions to the IAM user. For details, see Using Roles or Policies to Assign Custom Permissions to IAM Users or Using Identity Policies to Assign Custom Permissions to IAM Users (New Version). For details about how to grant permissions, see Assigning Permissions to an IAM User or Assigning Permissions to an IAM User (New Version).
  3. Obtain an AK/SK pair for the account.

    The Agent uses the AK/SK of the target account for authentication when connecting to the MgC console. For details, see Creating an Access Key.

Checking the source server configurations

Source servers must meet specific requirements for the MgC Agent to perform collection and migration tasks. For details about the requirements for source servers, see Requirements for Source Servers.

Preparing a server for installing the Agent

NOTE:

If the source server data is collected using SMS Server Synchronization, the migration of such servers does not require the MgC Agent. Therefore, you do not need to prepare a server for installing the MgC Agent.

Prepare a Windows server for installing the MgC Agent in the source environment. The server should:

  • Run Windows Server 2016, Windows Server 2019, Windows Server 2022, Windows 10, or Windows 11.
  • Use PowerShell 3.0 or later.
  • Have at least 4 CPUs and 8 GB of memory.
  • Have at least 20 GB of available space on the drive (drive C by default) for installing the MgC Agent.
  • Be able to access the Internet and the domain names of MgC, IoTDA, and other cloud services. For details about the domain names to be accessed, see Domain Names.
  • Allow the ports required by the MgC Agent. For details about the required ports, see Communication Matrix.
  • Allow outbound traffic on port 8883 if the server is in a security group.
  • Not have any antivirus or protection software enabled. This type of software may stop the MgC Agent from executing migration commands, resulting in migration failures.
CAUTION:

Do not install the MgC Agent on a source server to be migrated.

  • High resource consumption: The MgC Agent consumes CPU and memory resources during collection and migration. If a large number of migration tasks are performed by the MgC Agent, services on the source server may be affected.
  • Port occupation: The MgC Agent occupies some ports on the server, which may affect services running on it.

Creating an application migration project

Create a project to separate and manage migration resources for different scenarios, to streamline organization management and resource allocation. For details, see Creating an Application Migration Project.

Checking the compatibility of the source server

Ensure that the OSs of the source servers are supported by the system. For details about the OSs supported by the batch server migration task, see:

(Optional) Purchasing target servers

Use existing target servers (Use existing) or create new ones (Create new).

  • Use existing: Purchase Huawei Cloud ECSs and configure their VPCs, security groups, and EIPs in advance. For details, see Purchasing an ECS in Custom Config Mode.
  • Create new: Purchase new target servers while you are creating the migration task.

Step 1: Install the MgC Agent

Install the MgC Agent on the prepared Windows server in the source network, connect it to the MgC console, and add the source server credentials for migration. The procedure is as follows.

Step 2: Collect Source Server Resources

Select a collection method as required.
  • Online discovery: recommended for servers on cloud platforms, including Alibaba Cloud, Huawei Cloud, AWS, Tencent Cloud, Google Cloud, and Azure. For more information, see Online Discovery.
  • Intranet discovery: recommended for servers in an on-premises IDC or vCenter. MgC scans for servers by network range or VMware vCenter Server. For more information, see Intranet Discovery.
  • If the source server does not support SSH connections or cannot provide key credentials, collect the resources by referring to Online Discovery - SMS Server Synchronization.

Alternatively, import the server list manually. For details, see Importing RVTools Data, Importing Cloud Resource Details, and Importing a Template.

Step 3: Create a Migration Task

  1. Sign in to the MgC console. In the navigation pane, under Project, select your application migration project from the drop-down list.
  2. In the navigation pane, choose Server Migration > Bulk Servers.
  3. Click Create Migration Task.
  4. Use the default task name or create one. Enter the task description (optional).
  5. Click OK to complete the task creation.

Step 4: Configure the Migration Task

This step includes five phases.

Step 5: Track the Migration Task

In the migration task list, click the task name to go to the Task Details page. Check the task progress and perform the following operations on it.
Table 9 Operations related to resources

Scenario

Operation

Checking migration details

Click a resource name. On the Resource Details page displayed on the right, check the basic information, migration status, and migration progress.

Checking a target server

After the step CreateTargetServer is completed for a resource, choose More > View Target Resource in the Operation column to review details about the target server.

Checking an SMS task

After the step StartUpAgent is completed for a resource, a migration task is automatically created on the SMS console. To check the details on the SMS task, click View Migration Task in the Operation column.

Resizing disks and partitions

When the workflow on a resource reaches the ResizeDiskPartition step, the system identifies whether the target server's disk capacity has been reduced.
  • If yes, go to the SMS console and resize disks and partitions for the target server. For details, see the Resize Disks and Partitions parameter in Configuring a Target Server. After the adjustment is complete, return to the task details page and choose More > Confirm in the Operation column to continue the migration.
  • If no, choose More > Skip in the Operation column to skip this step and proceed with the subsequent migration steps.

Pausing a resource migration

You can pause the migration of a single resource in a migration task.

During the migration, when the resource reaches the full or incremental replication step, you can click Pause in the Operation column to pause the migration of the resource.

To resume the migration, click Run in the Operation column.

NOTICE:

After the migration of a resource is paused, do not perform any operations on the corresponding migration task on the SMS console.

Repeating incremental synchronization

The StartSynchronization step can be repeated. When a resource reaches the BusinessValidation step and the resource status is Not confirmed, select the resource and click Run Previous Step above the resource list. Alternatively, choose More > Run Previous Step in the Operation column of the resource to repeat incremental synchronization.

CAUTION:

You are not advised to perform incremental synchronization on the SMS console. Otherwise, the migration task status on the MgC console may differ from that on the SMS console, causing abnormal task running.

Verifying services

When the workflow on a resource reaches the BusinessValidation step and there is no more incremental synchronization, verify services on the target server. After services pass the verification, click Confirm in the Operation column of the corresponding resource to enter the Complete cutover stage.

Switching traffic

The workflow moving to the Cutover step means that the target server has been verified and you can transfer services to the target server. After the switchover is complete, return to the task details page and click Confirm in the Operation column. The system automatically performs the subsequent SourceClear and MigrationTaskClear steps.

Step 6: Verify Services

When the migration task reaches the service verification step for a server resource, log in to the target server to verify data consistency with the source server and start services to ensure proper operation. After completing verification, click Confirm in the Operation column of the server resource to proceed to the migration cutover phase.

  1. Log in to the target server using Virtual Network Computing (VNC). References:

    The username and password for logging in to the target server are the same as those of the source server.

  2. Check whether the file list of the source server is the same as that of the target server.
  3. Start the applications or services on the target server and check whether they are running properly.

Step 7: Perform a Service Cutover

MgC does not provide the service cutover function.

When the migration reaches the service cutover step, services on the target server have been verified. At this point, you can redirect the service access layer to the target server to resume user services. The cutover mode varies with the application scope:

  • One-off cutover: for small and medium-sized services
  • Batch cutover: for large-scale services. Different from one-off cutover, this mode groups servers based on their complexity, and then migrates each batch at a time.

Related Operations

You can perform the following operations on a migration task: