Help Center/ Migration Center/ Best Practices/ Server Migration/ Migrating On-premises Servers to Huawei Cloud
Updated on 2024-10-21 GMT+08:00

Migrating On-premises Servers to Huawei Cloud

Scenario

This section describes how to use MgC to migrate on-premises servers 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 and the domain names of MgC and IoTDA. For details about the domain names to be accessed, see How Do I Configure WinRM on a Windows Source Server and Troubleshoot WinRM Connection Problems?
    • Use PowerShell 3.0 or later.
    • Have at least 4 CPUs and 8 GB of memory.
    • Allow outbound traffic on 8883 if the server is in a security group.
    • Disable any antivirus and protection software on the server. This type of software may stop Edge from executing migration commands, resulting in migration failures.

    Do not install Edge on a source server to be migrated.

    • High resource consumption: Edge consumes CPU and memory resources during collection and migration. If a large number of migration tasks are performed by Edge, services on the source server may be affected.
    • Port occupation: Edge occupies some ports on the source server, which may affect services on the server.
  • The Windows server where Edge is installed must be able to access source servers you want to migrate over the following ports:
    • Windows: port 5985
    • Linux: port 22
  • WinRM must be enabled on Windows source servers, and these source servers must be able to access the server where Edge is installed. For more information, see How Do I Configure WinRM on a Windows Source Server and Troubleshoot WinRM Connection Problems?
  • Prepare a Huawei account or an IAM user that can access MgC. For details, see Preparations.
  • Create a migration project on the MgC console.

Precautions

Before creating a server migration workflow, read and understand the following precautions.

Item

Precaution

Source download bandwidth

Used to download the migration Agent to source servers.

  • If each source server uses a dedicated bandwidth, the bandwidth must be at least 30 Mbit/s.
  • If source servers share a bandwidth, the average bandwidth must be at least 50 Mbit/s.

Migration bandwidth

  • Used to migrate data. It affects the migration speed and duration.
  • For details about how to estimate the migration duration, see How Long Does a Migration Take?

CPU and memory

  • At least 520 MB of available memory
  • At least 0.3 CPUs available in Linux and at least 1 CPU available in Windows

OS compatibility

For details about what OSs are supported, see Supported OSs.

Server migration statements

For details about the important statements you need to understand before the migration, see What Are the Important Statements of SMS?

Notes and constraints

For details about the notes and constraints for server migration, see Notes and Constraints.

Billing

For details about the fees that may be incurred during the migration, see Billing.

Permissions configuration

For details about the permissions the target account must have, see Permissions Management.

Migration network and ports

For details about the requirements for the migration network and ports, see How Do I Set Up a Secure Migration Network for Using SMS?

Step 1: Download and Install Edge

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

Step 2: Add Servers to MgC

  1. Sign in to the MgC console.
  2. In the navigation pane on the left, choose Research > Application Discovery. Select the prepared migration project in the upper left corner of the page.
  3. Click the Resources tab, and 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 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 that allows access from the Edge device.

    • By default, port 5985 on Windows source servers must allow access from the Edge device. This port cannot be changed.
    • By default, port 22 on Linux source servers must be opened to the Edge device. You can specify a different 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 to get sizing recommendations for target resources and execute the migration.

  1. On the Resources page, in the Servers list, select the servers to be grouped as an application and click Group as Application above the list.
  2. Select an 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 a business scenario, environment, and target region; and click Create. For more information, see Creating an Application
  3. Click OK. You can view the application name in the Application column of these servers.

(Optional) Step 4: Associate Source Servers with Existing Servers on Huawei Cloud

If you have servers on Huawei Cloud, you can associate source servers with these existing Huawei Cloud servers. These Huawei Cloud servers will be used to receive data migrated from their paired source servers. Then you can skip step 5 and go to Step 6: Create a Migration Workflow.

If you do not want to migrate data to these existing Huawei Cloud servers, skip the current step and go to Step 5: Create an Application Assessment.

Before associating an existing server on Huawei Cloud with a source server, make sure that the existing server meets the following requirements:

  • Disks on the existing server can be formatted. During the migration, disks on the existing server will be formatted and re-partitioned based on the source disk settings for receiving data migrated from the source server.
  • To migrate over the Internet, the existing server must be able to access the Internet.
  • The existing server must be in the same region as the application that the source server is added to.
  1. In the navigation pane on the left, choose Design > Migration Solutions.
  2. Click View Resources in the Target Configuration card.
  3. On the displayed Server 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 an existing Huawei Cloud 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: Create an Application Assessment

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 step and 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 that contains the source servers to be assessed.
  3. In the Select Resources area, select the servers to be assessed.
  4. Configure an assessment policy based on Table 2.

    Table 2 Settings used for computing target recommendations

    Parameter

    Option

    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.

    Assessment Policy

    Match source configuration

    MgC will recommend Huawei Cloud resources in the same or similar size as source resources.

    For details about how MgC recommends appropriate target resources for you, see How Does MgC Generate Target Recommendations?

    Match business scenario

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

    For details about how MgC recommends appropriate target resources for you, see How Does MgC Generate Target Recommendations?

    Priority

    High performance

    MgC recommends target resources with optimal performance.

    Low cost

    MgC recommends the most cost-effective target resources that meet your demands.

    Preferences

    ECS Types

    Select the expected ECS types.

    System Disk

    Select the system disk type you prefer.

    Data Disk

    Select the data disk type you prefer.

    Sizing Criteria

    Select the criteria that the system will follow for generating server recommendations.

    For details about how MgC recommends appropriate target resources for you, see How Does MgC Generate Target Recommendations?

  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. For details, see Creating a Server Migration Workflow.