×
Community Blog On-Premises VMware VM Migration to ECS

On-Premises VMware VM Migration to ECS

This article explains how to migrate an on-premises VMware VM to an ECS instance.

By Kenny Lai, Alibaba Cloud Solution Architect

Hybrid Backup Recovery is a PaaS backup solution provided by Alibaba Cloud. When working with the on-premises VMware platform, it is also a seamless migration tool to help on-premises VMware workloads migrate to Alibaba Cloud as an ECS.

Step 1: Principles and Preparation

1.1 Principles: The Component, Concept, and Method for the HBR VM Migration Service

The basic components enable the HBR migration service on Alibaba Cloud as a migration server, the HBR vault on Alibaba Cloud as migrated VM image storage, a migration gateway VM as migration proxy, in vCenter cluster in which the source VM located; a vCenter server connected to HBR migration service for on-prem source VM catalog; source VMs to be migrated; migration plans to define source VM, destination ECS and configuration of migration job

1

The basic migration method is to create and generate an HBR gateway OVA template and a certificate file. Then, create a VM that acts as a migration proxy by a pre-defined OVA template. The proxy VM must register to the HBR migration service with tokens embedded in a specific certificate file. The migration proxy VM will capture and transfer the VM image from the source VM on-prem to the HBR service on Alibaba Cloud. There is no agent installed in the source VM, which is called “non-intrusive” migration. Once the migrate proxy VM and vCenter are connected to the HBR, any VM in the vCenter cluster can be migrated to the HBR.

1.2 Preparation

Make sure the source VMware VM and the application are ready. In this demo, a Win2012 R2 VM with an IIS server enabled is deployed as the source VM.

2

Enable the IIS service. Then, change the iisstart file to point the IIS home page to the customized picture file.

3

The IIS home page will look like this:

4

Step 2: Create and Configure Migration Gateway

Go to HBR-Migration-VMware VM Migration

2.1 Go to Create Migration Gateway

5

2.2 Continue

After the gateway is created, download the migration gateway (proxy) OVA template and certificate to a local device.

The OVA template is shared by all HBR migration gateways, but the certificate file is specific for every HBR migration gateway.

6

7

2.3 Continue

The gateway is Not Activated.

8

Step 3: Choose a Host to Deploy the Migration Proxy VM

Go to VMware vCenter and choose a host to deploy the migration proxy VM.

3.1 Deploy the OVF template as a VM.

9

3.2 Choose the downloaded migration proxy OVA file

10

3.3 Deploy the OVA template as a CentOS VM

11

Step 4: Setting up HBR Proxy Web Server

After the client VM is created, the embedded HBR proxy web server will initialize automatically.

4.1 Login to the web server from a web browser using this address: http://proxy-ip:8011. Then, submit the AK/SK of the Alibaba Cloud account where the HBR migration service runs and the certificate file downloaded to register this client as a gateway (proxy) to the HBR service. The network check will show:

  • HBR service endpoint
  • OSS region for HBR vault service
  • MQTT endpoint for VM migration data transfer

12

13

Step 5: Perform the Migration

The gateway status in the HBR gateway will change to Activated. Now, the HBR gateway (proxy) and the HBR service are ready to communicate.

14

5.1 Go to HBR-Migration-VMware VM Migration-Migration Gateway-View-Add vCenter Server to connect the vCenter to the HBR service so the HBR can get the VM catalog. vCenter public IP is a must.

15

16

5.2 After the vCenter is added, go to the Migrate button to create a migration plan. Choose the source VM to be migrated, and set the target ECS instance configuration.

5.2.1 Under Configure Migration Plan, define the “Right Now migration” or the start time of an “On Schedule migration.” You can also set the incremental sync frequency (if enabled.)

17

5.2.2 Under Select VMs to Migrate, choose one or more VMs as the migration source. In this demo, we chose a single VM where the IIS server is configured.

18

5.2.3 Under the Configure ECS Instance, define the target ECS configuration. If Create System Image is selected, the snapshot and image will be created from the source VM OS.

19

5.3 After the migration plan (job) is submitted, a proxy ECS will be created automatically in the target vswitch. Then, the status of the migration job will update to migrating :arrow_right: pending sync (the incremental migration job status between two sync time points) :arrow_right: completed stages

Proxy ECS

20

Migrating Status

21

Pending Sync Status

22

Sync Result in the Last Sync Time Point

23

5.3.1 Go to Create ECS to create an ECS instance from the migration job and then finish the migration.

24

Completed Status

25

5.4 If you choose Create Custom Image, the snapshot and image created from the source VM by the HBR migration job will be listed under Snapshots and Images-Custom Images.

26

27

Step 6: Verify the Migration

The new ECS generated by migration jobs should be re-assigned to a private and public IP. Then, try to access the IIS server in “migrate-job-generated ECS” to verify if the migration was successful.

28

0 0 0
Share on

Alibaba Clouder

2,599 posts | 762 followers

You may also like

Comments

Alibaba Clouder

2,599 posts | 762 followers

Related Products