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
- Log in to the MgC console.
- In the navigation pane on the left, choose Research > Application Discovery. Select a migration project in the upper left corner of the page.
- Click the Resources tab, click Server in the Category column or the number in the Total Resources column.
- Click Add.
- 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.
- 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.
- 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.
- 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
- 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.
- In the navigation tree on the left, choose Design > Migration Solutions.
- Click View Resources in the Target Configuration card.
- On the displayed Servers tab page, locate a source server and click Associate in the Target Association column.
- 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.
- On the Migration Solutions page, click Assess in the Target Configuration card.
- In the Select Application drop-down list, select the application into which the source servers have been grouped.
- In the Select Resources area, select the resources to be assessed in the application.
- Configure the assessment policy based on Table 2.
- Click OK.
- 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.
Feedback
Was this page helpful?
Provide feedbackThank 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