Help Center> Migration Center> Best Practices> Migrating On-premises Servers to Huawei Cloud
Updated on 2024-03-18 GMT+08:00

Migrating On-premises Servers to Huawei Cloud

Scenario

This section describes how to use MgC to migrate on-premises servers and cloud servers from other platforms to Huawei Cloud.

Preparations

  • Prepare a Windows server for installing Edge in the source intranet environment. The Windows server must:
    • Be able to access the Internet.
    • Use PowerShell 4.0 or later.
    • Have at least 100 MB of available space on drive D. If there is no drive D on the server, split a drive D with at least 100 MB of space from the existing drive C.
  • Open the required ports on source servers to the server where Edge is installed.
    • Windows: port 5985
    • Linux: port 22
  • Disable any antivirus and protection software on the Windows server where Edge is installed. This type of software may stop Edge from executing migration commands, resulting in migration failures.
  • Enable WinRM on, if any, Windows source servers. You can run the following command and enter y to enable WinRM:
    winrm quickconfig
  • Prepare a Huawei account or an IAM user that can access MgC. For details, see Preparations.
  • Create a migration project on the MgC console.

Step 1: Download and Install Edge

Install Edge and connect it to MgC. For details, see Installing Edge.

Step 2: Add Servers to MgC

  1. Log in to the MgC console.
  2. In the navigation pane on the left, choose Research > Application Discovery. Select a migration project in the upper left corner of the page.
  3. Click the Resources tab, click Server in the Category column or the number in the Total Resources column.
  4. Click Add.
  5. In the displayed dialog box, configure parameters listed in Table 1 and click Confirm. The system automatically checks the credential status and starts collecting resource details.

    Table 1 Parameters for adding a server

    Parameter

    Description

    Name

    Enter a name.

    Edge Device

    Select the Edge device installed in the source environment.

    Type

    Select the OS type of the source server.

    IP Address

    Enter the IP address of the source server.

    If the source server is in the same VPC as the Edge device, you can enter the private IP address of the server. Otherwise, you have to enter its public IP address.

    Port

    Enter the port on the source server opened to the Edge device.

    • By default, port 5985 on Windows source servers must be opened to the Edge device. The port cannot be changed.
    • By default, port 22 on Linux source servers must be opened to the Edge device. You can specify another port if needed.

    Credential

    Select the server credential. If the credential has not been added to MgC, go to the Edge console and add the server credential to the Edge device and synchronize it to MgC.

  6. View the added server on the Servers tab page.

Step 3: Group Servers as an Application

You can group the added servers as an application for subsequent resource evaluation and migration.

  1. In the Servers list of the Resources page, select the servers to be added to the same application and choose Resource Management > Manage Application Association in the upper left corner.
  2. Select the application from the drop-down list. If no applications are available, click Create Application. In the displayed dialog box, enter an application name and description, select the business scenario, environment, and region, and click OK. For details, see Creating an Application
  3. Click OK. You can view the application name in the Application column of these servers.

(Optional) Step 4: Bind the Source Servers to Existing Target Servers

If you have created a target server, you can bind a source server to the target server. Then you skip step 5 and go to Step 6: Create a Migration Workflow.

If you choose to skip the target binding step, go to Step 5: Getting Target Recommendations.

A target server must meet the following requirements:

  • Disks on the target server can be formatted. During the migration, disks on the target server are formatted and re-partitioned based on the source disk settings for receiving data migrated from the source server.
  • To migrate over the Internet, the target server must be able to access the Internet.
  • The target server must be in the same region as the application to which the source server is added.
  1. In the navigation tree on the left, choose Design > Migration Solutions.
  2. Click View Resources in the Target Configuration card.
  3. On the displayed Servers tab page, locate a source server and click Associate in the Target Association column.
  4. In the displayed dialog box, select the region of the application and select a project. Then, select the target server and click Confirm.

    After the association is complete, Associated is displayed in the Target Association column. You can click Details to view the specifications of the associated target server.

Step 5: Getting Target Recommendations

Assessing an application can get recommendations for most suitable Huawei Cloud resources based on the specifications, performance, and business purpose data of the source resources added to the application, as well as your selected recommendation references, such as, cost or performance reference and ECS type references.

If your source servers have been associated with existing servers on Huawei Cloud, you can skip this section and directly create a migration workflow to migrate them.

  1. On the Migration Solutions page, click Assess in the Target Configuration card.
  2. In the Select Application drop-down list, select the application into which the source servers have been grouped.
  3. In the Select Resources area, select the resources to be assessed in the application.
  4. Configure the assessment policy based on Table 2.

    Table 2 Parameters for configuring an assessment policy

    Parameter

    Description

    Target Region

    Select the region where you want to purchase resources on Huawei Cloud. You are advised to select a region close to your target users for lower network latency and quick access.

    Sizing Criterion

    • Source specifications-based

      MgC recommends the most appropriate Huawei Cloud resources based on source resource specifications.

    • Business scenario-based

      MgC recommends appropriate Huawei Cloud resources based on the business scenarios of source resources and Huawei Cloud best practices.

    • Cross-AZ migration

      This policy applies only to migration of ECSs between AZs on Huawei Cloud, and MgC only assesses servers in the application. You need to select the target AZ you want to migrate to.

    Preference

    • Performance-first

      MgC recommends target resources based on your performance requirements.

    • Price-first

      MgC recommends target resources based on your cost requirements.

    (Optional) Advanced Options

    Advanced options are only applied to recommendations for server resources. You can select ECS types, CPU types, and disk types you prefer. The configured advanced options have the highest priority during the resource assessment.

  5. Click OK.
  6. In the application list on the Migration Solutions page, locate the applications and click View Target Configurations in the Operation column.

    In the Target Configurations area, you can view the specifications of Huawei Cloud resources recommended based on the source resource specifications and your selected preferences. It also gives you the ability to estimate the cost of running on Huawei Cloud. In addition, you can modify the recommended target configurations.

Step 6: Create a Migration Workflow

Create a workflow to migrate the source servers to Huawei Cloud by referring to Creating a Server Migration Workflow.