Updated on 2025-02-17 GMT+08:00

Connecting the MgC Agent to MgC

You need to connect the MgC Agent (formerly Edge) to MgC, so that the MgC Agent can receive commands from MgC for discovering resources and executing migration tasks.

After the connection is set up, you can perform the following operations on the MgC console:

  • Create resource discovery tasks to discover multiple types of source resources over the Internet. You can also perform deep collection for the discovered resources, such as servers, containers, object storage, and databases.
  • Create server migration workflows using the template provided by MgC. Before that, you can get target server recommendations based on the collected performance data of the source servers.
  • Create big data migration tasks. Currently, migrating data from Alibaba Cloud MaxCompute to Huawei Cloud DLI is supported.
  • Create big data verification tasks to verify data consistency.

Notes and Constraints

  • A maximum of 100 MgC Agents can be online in an account.
  • In a single MgC project, a maximum of five MgC Agents (regardless of the status) can be registered.

Prerequisites

You have installed the MgC Agent and registered an account.

Procedure

  1. Use the registered account to log in to the MgC Agent console.
  2. On the Overview page, click Connect in the upper right corner. The Connect to MgC page is displayed on the right.

    Figure 1 Connecting the MgC Agent to MgC

  3. In Step 1: Enter Cloud Credential, select the region where your MgC migration project is located, enter the AK/SK of your Huawei Cloud account, and click Query Project. After the MgC Agent is authenticated using the entered AK/SK pair, you can go to the next step. If the system displays a message indicating that the AK/SK pair is incorrect, try to rectify the fault by following the instructions in What Can I Do If the AK/SK Verification Fails?

    If your source servers need to be migrated, the entered AK/SK pair must have permissions to use SMS. For details, see SMS Custom Policies.

    Determine whether to save the entered AK/SK pair as the target credential which will be used for migrating your workloads to Huawei Cloud.

    • If you select No, the entered AK/SK pair will be deleted after the MgC Agent is connected to MgC.
    • If you select Yes, the entered AK/SK pair will be encrypted and saved locally after the connection to MgC is established. When you migrate workloads to Huawei Cloud, the AK/SK pair will be delivered to SMS-Agent on the source servers for executing the migration.

  4. In Step 2: Select MgC Migration Project, select a migration project from the project drop-down list. The MgC Agent will report the collected information about your source resources to this project.
  5. In Step 3: Preset MgC Agent Name, specify a name for the MgC Agent, which will be displayed on the MgC console, and click Next. Confirm the connection to MgC, and click OK.

    After the MgC Agent is connected to MgC, the name you specified here cannot be modified.

  6. If Connected shows up on the overview page, the connection to MgC is successful.