Installing the MgC Agent
You need to 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.
Prerequisites
- You have prepared a qualified Windows server in the source network environment. (Reference: Preparing a Server to Install the MgC Agent)
- You have obtained the AK/SK of the Huawei Cloud migration account. (Reference: Target Servers (Huawei Cloud))
- You have created an application migration project on the MgC console. (Reference: Creating a Migration Project)
Downloading and Installing the MgC Agent
- Sign in to the MgC console from the Windows server you prepared in the source environment. In the navigation pane, under Project, select your application migration project from the drop-down list.
- In the navigation pane, choose MgC Agent.
- In the Application Migration (Manual Installation) area, choose Download > Download Windows Version to download the MgC Agent installation program to the Windows server.
- Decompress the downloaded MgC Agent installation package and double-click the installation program to start the installation. If the installation program cannot be launched, try to run it in compatibility mode. For details, see How Do I Run the MgC Agent in Compatibility Mode? The default installation directory is C:\ and cannot be changed.
- Click Finish to complete the installation and open the MgC Agent console.
Logging In to the MgC Agent
MgC Agent supports three login methods. The following describes how to log in using Huawei Cloud access key.
- On the login page, select Huawei Cloud Access Key.
- Enter an AK/SK pair of your Huawei Cloud account, and select the region where you create migration projects on MgC from the drop-down list.
- Click Privacy Policy, read the policy carefully, and select I have read and agree to the Privacy Policy.
- Click Log In to access the Overview page of the MgC Agent console.
Connecting to MgC
- On the Overview page, click Connect to MgC in the upper right corner.
- In the Step 1: Select Connection Method area, select Huawei Cloud Access Key.
- Select the region where the project is created on MgC, enter the AK/SK of the Huawei Cloud migration 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?
- In Step 2: Select MgC Migration Project, select an application migration project from the project drop-down list. The MgC Agent will report the collected information about your source resources to this project.
- In Step 3: Preset MgC Agent Name, specify a name for the MgC Agent, which will be displayed on the MgC console, and click Connect. Confirm the connection to MgC, and click OK.
After the MgC Agent is connected to MgC, the name you specified here cannot be modified.
- If Connected shows up on the overview page, the connection to MgC is successful.

Adding Credentials of the Source Servers
This section describes how to add credentials of a single source server. For multiple servers, you are advised to add credentials in batches during the migration readiness check phase of the migration plan. For details, see Check Migration Readiness.
- In the navigation pane, choose Credentials.
- Click Add Credential above the list. Figure 1 Adding a credential
- Configure credential parameters based on Table 1.
Table 1 Parameters for creating server credentials Parameter
Description
Resource Type
Select Server.
Resource Subtype
Select the OS type of the server.
Credential Name
Enter a custom credential name.
Authentication Method
Select Username/Password.
Username
Enter the username and password for logging in to the server. The credential you provided must have sufficient permissions, so the MgC Agent can collect necessary server details. The requirements for server credentials are as follows:
- Linux: root and its password
- Windows: administrator and its password
Password
IP Addresses
Set it to a single IP address or an IP address segment based on the source network configuration.
- Set a credential validity period. The options for setting the validity period include:
- Custom: Set the validity period of the credential, in days. The validity period starts when you click OK to save the credential. After this period ends, the credential becomes invalid. The default period is 60 days. You can specify an integer ranging from 1 to 365. If needed, you can extend the validity period for the credential when it is in the Unexpired, Expire soon, or Expired state.
- Unlimited: The credential remains valid permanently. You can manually delete the credential when it is no longer needed.
- Click OK to save the credential. If the MgC Agent is connected to MgC, the added credential will be automatically synchronized to MgC.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot