This topic describes how to migrate a VMware virtual machine (VM) on an on-premises host or storage to Alibaba Cloud by using the Hybrid Backup Recovery (HBR) console.

Prerequisites

The system disk of each migration source has at least 1 GB of available space before migration. Grand Unified Bootloader (GRUB) 1.99 or later is used for VMs that run the Linux operating system.

Note
  • For earlier operating system versions such as CentOS 5, Red Hat 5, and Debian 7, you must use GRUB 1.99 or later.
  • For some operating systems such as Amazon Linux, you must use GRUB 2.02 or later.

Background information

HBR provides non-intrusive, agentless, and full-copy migration of data that is stored on VMware VMs. HBR migrates data by using VMware snapshots and reading data from disks. These features allow you to migrate all the data from the disks of VMware VMs to the disks of ECS instances.

  • Regions

    HBR allows you to migrate VMware VMs to Alibaba Cloud in multiple regions. You can log on to the HBR console to view the supported regions.

  • Operating systems

    You can use HBR to migrate VMware VMs that run the following operating systems: CentOS, Ubuntu, CoreOS, Aliyun Linux, Debian, Gentoo, SUSE Linux, openSUSE, FreeBSD, Red Hat Enterprise Linux (RHEL), Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows Server 2016, Windows 7, custom Linux distribution, Mars, and NeoKylin.

Step 1: Create a migration gateway

  1. Log on to the HBR console.
  2. In the left-side navigation pane, choose Migration > VMware VM Migration.
  3. In the upper-right corner of the Migration Gateways tab, click Create Migration Gateway.
    Note You can create only one migration gateway in one region.
  4. In the Create Gateway panel, set the parameters and click Create.
    The following table describes the required parameters.
    Parameters Description
    Gateway Name The name of the migration gateway. The name must be 1 to 64 characters in length.
    Software Platform The software platform of the VMware VM from which you want to migrate data. You can set the value to vSphere.
    Network Type
    • Virtual Private Cloud (VPC): Select this option if you want the migration gateway to transmit data over a VPC.
    • Public Network: Select this option if no VPCs are available.
    Use HTTPS Specifies whether to use HTTPS to transmit encrypted data that is stored in the backup vault. If HTTPS is used, the performance of data transmission is compromised. If you modify the setting of this parameter, the modification takes effect on the next backup or restoration job.
  5. Click Download Client and Download Certificate.
    Note After the installation is complete, the backup client is used to connect your server or VM to HBR. In this case, the certificate is used to activate the client. You can also download the client template and the certificate from the client list.

Step 2: Install the backup client

After you download the client and the certificate, install the client on a VM. After the client is installed, you can use the client to run migration jobs. To install the client, perform the following steps:

  1. Log on to the vSphere Web Client.
    Note HBR supports only vCenter Server 5.5, 6.0, and 6.5.
  2. In the left-side navigation pane, right-click the VM, and select Deploy OVF Template from the shortcut menu.
    Note For more information, see Deploying OVF and OVA Templates.
  3. In the Deploy OVF Template dialog box, select Local file. Click Browse, select the client template that you downloaded, and then click Next.
  4. Enter the name of the open virtual format (OVF) or open virtual appliance (OVA) template, select the location where you want to deploy the template, and then click Next.
  5. Select the location where you want to run the deployed template and click Next.
  6. Verify the details of the template and click Next.
  7. Select the format of the virtual disk as needed, select a storage to store files for the deployed template, and then click Next.
  8. Select the destination network for each source network and click Next.
  9. Configure the required deployment properties for the software solution and click Next.
  10. Verify the configurations and click Finish.
  11. View the progress of the deployment task in the Recent Tasks section.
  12. After the deployment task is complete, start the VM on which the OVF or OVA template is deployed.
  13. Open a browser, and enter http://hostname:8011 in the address bar.
    Note The value of hostname is the IP address of the VM. This is the VM on which the OVF or OVA template is deployed.
  14. On the Register page, set the parameters and click Register to log on to the HBR gateway. The following table describes the required parameters.
    Parameters Description
    AccessKey ID The AccessKey ID and AccessKey secret of the Resource Access Management (RAM) user that is used to access HBR. You can obtain the AccessKey ID and AccessKey secret of a RAM user from your Alibaba Cloud account for which HBR is activated. For more information, see Create an AccessKey for a RAM user.
    AccessKey Secret
    Certificate The certificate that you download from the HBR console. If a VM is shut down for more than five days after you use the certificate to activate the client on the VM, the certificate expires. In this case, you must download a new certificate to reactivate the client.

    After the client is activated, click OK to go to the HBR console.

Step 3: Add a vCenter Server

  1. On the Migration Gateways tab, find the migration gateway, and click View in the Actions column.
  2. In the upper-right corner of the Backend vCenter Servers page, click Add vCenter Server.
  3. In the Add vCenter Server pane, set the Server IP Address, Username, and Password parameters. Then, click Create.

    You may fail to add a vCenter Server if the password contains the following special characters:

    ` ^ ~ = ; ! / ( [ ] { } @ $ \ & # % +

    Note We recommend that you create a vCenter Server account that is dedicated for backup. We recommend that you use periods (.) but not other special characters in the password of the account.

Step 4: Migrate data from a VMware VM

  1. On the vCenter Servers page, find the vCenter Server, and click Migrate in the Actions column.
  2. In the Create Migration Plan dialog box, set parameters in the Migration Plan step and click Next. The following table describes the parameters.
    plan
    Parameter Description
    Plan Name The name of the migration plan. If you do not specify this parameter, a random name is generated by default.
    Configure Migration Plan The migration policy. Valid values: Right Now and On Schedule.

    If you select On Schedule, you must set the Start Time parameter. The value is accurate to seconds.

    Force Quiesced Snapshot
    • If you select this check box, HBR uses quiesced snapshots to migrate data. If quiesced snapshots are unavailable, the backup fails.
    • If you do not select this check box, HBR attempts to use quiesced snapshots to migrate data. If quiesced snapshots are unavailable, HBR switches to common snapshots to migrate data. By default, this check box is not selected.
    Enable Incremental Migration Specifies whether to enable incremental migration.

    If you enable incremental migration, you must set the Incremental Sync Frequency parameter. Valid units: hours, days, and weeks.

    Note
    • If Changed Block Tracking (CBT) is disabled for the VM, a full migration task is run instead of an incremental migration.
    • If incremental migration is enabled, HBR automatically creates an image to test whether workloads can be switched to the destination. The cost of the image is included in the billing for ECS instead of HBR. For more information, see Billing overview.
  3. In the Select VMs to Migrate step, select the source VMs and click Next.
  4. In the ECS Configuration step, set the following parameters: VPC, Switch, Instance Type, Instance Family, Storage Type, Security Group, IP Address Type, Assign Public IP, Reboot After Restoration, and Create System Image. Then, click Apply to All VMs or Apply to Current VM.
    Note Make sure that the security group allows outbound data transfer over TCP port 80, TCP port 443, and UDP port 53.
  5. Click Create to start the migration job. On the Migration Status tab, you can view the progress of the migration job.
    syn
    If incremental migration is enabled, you can perform the following operations after the migration is complete:
    • Click Sync Record in the Actions column of the migration job to view the size of the migrated incremental data and the migration status.syn
    • Click Create ECS in the Actions column of the migration job. In the dialog box that appears, select Test Migration or Complete Migration.verification
      • If you select Test Migration, HBR creates an ECS instance and migrates data after the last migration (for example, 20:21:31, February 21, 2020) to the ECS instance. This way, you can check whether the source VM works as expected. You can perform a maximum of three migration verifications. During migration verifications, incremental migration is performed as planned. After you click OK, HBR creates an ECS instance. If you click Resume Migration in the Actions column, HBR deletes the ECS instance and resumes the migration.continue
      • If you select Finish Migration, HBR creates an ECS instance and migrates data after the last migration (for example, 20:21:31, February 21, 2020) to the ECS instance. HBR also stops the migration job. If you select Run an incremental migration task before finishing the migration job, HBR migrates data that is generated after the last incremental migration to the created ECS instance.
      Note
      • If you select Run an incremental synchronization task before finishing the migration job, a longer time is required to finish the migration job.
      • You are charged for the migration of the VM only the first time you verify the migration or finish the migration job. If you repeatedly perform verifications or if you finish the migration job after a verification, you are not charged. For more information, see Pricing.
    • Click Cancel in the Actions column to cancel the migration job.