This topic describes how to migrate data from a local VMware virtual machine on a host or in a storage location to an Alibaba Cloud Elastic Compute Service (ECS) instance by using the Hybrid Backup Recovery (HBR) console.

Prerequisites

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

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

Background

HBR provides non-intrusive, agentless, and full-copy migration for data that is stored on VMware virtual machines. The migration is based on VMware snapshots and disk-level data access. These technologies allow you to migrate all data that is stored on disks of VMware virtual machines to disks of ECS instances.

  • Supported regions

    You can use HBR to migrate data from VMware virtual machines in the following regions: China (Beijing), China (Shanghai), China (Shenzhen), China (Hangzhou), China (Zhangjiakou), China (Hong Kong), Singapore, US (Silicon Valley), Indonesia (Jakarta), Australia (Sydney), and Germany (Frankfurt). This migration service will be available in more regions soon.

  • Supported operating systems

    You can use HBR to migrate data from VMware virtual machines that run the following operating systems: CentOS, Ubuntu, CoreOS, Aliyun Linux, Debian, Gentoo, SUSE Linux, openSUSE, FreeBSD, Red Hat, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows Server 2016, Windows 7, customized Linux, Mars, and NeoKylin.

Step 1: Create a migration gateway

  1. Log on to the HBR console.
  2. In the left-side navigation pane, choose Data Migration > VMware VM Migration.
  3. On the Migration Gateway tab, click Create Migration Gateway in the upper-right corner.
    Note You can only create one migration gateway in each region.
  4. In the Create Migration Gateway pane, set parameters as required and click Create.
    The following table describes the parameters.
    Parameter Description
    Gateway Name The name of the migration gateway. The gateway name can be a maximum of 64 characters in length.
    Software Platform The software platform of the virtual machine from which you want to migrate data. You can only select vSphere.
    Network Type
    • Virtual Private Cloud (VPC): Select this option if the migration gateway transmits data by using a VPC.
    • Public Network: Select this option when VPCs are unavailable.
    Transmit Data On HTTPS Specifies whether to enable HTTPS-encrypted transmission. Your data will be encrypted and stored in a backup vault. You can choose whether to use HTTPS to encrypt the data during transmission. Note that using HTTPS will degrade the data transmission performance. If you modify this configuration, the modification takes effect when the next migration job starts.
  5. Click Download Gateway and Download Certificate.
    Note You can install a client and activate the client with the downloaded certificate so that you can migrate data from a virtual machine to HBR. After you create a client, you can also find the target migration gateway on the Migration Gateway tab and download the client file and certificate at any time.

Step 2: Install the client

After you download the client file and certificate, install the client on a virtual machine. You can use the client to run migration jobs after the client is installed. 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 target virtual machine and select Deploy OVF Template.
    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 downloaded client file, and then click Next.
  4. Enter the name of the open virtual format (OVF) or open virtual appliance (OVA) template, select a location where you want to deploy the template, and then click Next.
  5. Select a 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 required virtual disk format, select a data store to store files for the deployed template, and then click Next.
  8. Select a 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 deployment tasks in the Recent Tasks section.
  12. After deployment tasks are completed, start the virtual machine on which the OVF or OVA template is deployed.
  13. Open a browser and enter http://hostname:8011 in the address bar.
    Note Replace hostname with the IP address of the virtual machine on which the OVF or OVA template is deployed.
  14. On the Register page, set parameters as required and click Register to log on to the HBR gateway. The following table describes the parameters.
    Parameter Description
    AccessKey ID The AccessKey ID and AccessKey secret of the Resource Access Management (RAM) user that you use to access HBR. You can obtain the AccessKey ID and AccessKey secret of a RAM user under 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 is downloaded from the HBR console. If a virtual machine is shut down for more than five days after you use the certificate to activate the client on the virtual machine, the certificate expires. In this case, you must download a new certificate and reactivate the client.

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

Step 3: Add a vCenter Server instance

  1. On the Migration Gateway tab, find the target migration gateway and click View in the Actions column.
  2. On the Managed vCenter page, click Add vCenter in the upper-right corner.
  3. In the Add vCenter pane, set Server Network Address, Username, and Password, and then click Create.

    If the password contains the following special characters, the vCenter Server instance may fail to be added:

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

    Note We recommend that you create a vCenter Server account with the administrator permission as a dedicated account for data backup. We also recommend that you use periods (.) as special characters in the password.

Step 4: Migrate data from a VMware virtual machine

  1. On the Managed vCenter page, find the target vCenter Server instance and click Migrate in the Actions column.
  2. In the Create Migration Plan pane, set parameters in the Migration Plan step as described in the following table and click Next.
    plan
    Parameter Description
    Migration Plan Name The name of the migration plan. If you do not specify this parameter, a random name is generated by default.
    Migration Plan The plan for migrating data. Valid values: Migration Now and Scheduled a Time.

    If you select Scheduled a Time, you must set Migration Start Time. The time is accurate to seconds.

    Force silent snapshots
    • Specifies whether to forcibly use quiesced snapshots. If you select this check box, HBR uses quiesced snapshots to migrate data. If quiesced snapshots are unavailable, the migration fails.
    • By default, this check box is cleared. If you do not select this check box, HBR first uses quiesced snapshots to migrate data. If quiesced snapshots are unavailable, HBR uses common snapshots to migrate data.
    Use Incremental Migration Specifies whether to enable incremental migration.

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

    Note
    • If Change Block Tracking (CBT) is disabled for a virtual machine, HBR migrates full data instead.
    • In the incremental migration mode, HBR automatically creates an image of the destination ECS instance to test whether the source virtual machine works properly. This incurs an image fee, which is charged by ECS. For more information, see Billing overview.
  3. In the VM to Migration step, select the source virtual machine and click Next.
  4. In the ECS Configuration step, set VPC, Switch, Instance Type, Instance Family, Storage Type, Security Group, IP Address Type, Assign Public IP, Reboot After Restore, and Create System Image. Then, click Copy Configuration to All VM or Save Configuration to Current VM.
    Note When you select a security group, make sure that the security group has outbound traffic allowed on TCP port 80, TCP port 443, and UDP port 53.
  5. Click Create to start the migration job. On the Job Status tab, you can view the progress of the migration job.
    syn
    If you enable incremental migration, you can perform the following operations after the migration process is complete:
    • Find the migration job and click Sync Record in the Actions column to view the size of migrated incremental data and the migration status.syn
    • Find the migration job and click Create ECS in the Actions column. 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 incremental migration to the ECS instance, for example, the data migrated until 20:21:31, February 21, 2020. This checks whether the source virtual machine works properly. You can run the test on each virtual machine up to three times. During the test, incremental migration in progress is not interrupted. Click OK to start the test. After the ECS instance is created, you can find the migration job and click Resume in the Actions column. Then, HBR deletes the created ECS instance and resumes the migration job.continue
      • If you select Complete Migration, HBR creates an ECS instance and migrates data after the last incremental migration to the ECS instance, for example, the data migrated until 20:21:31, February 21, 2020. Also, HBR stops the migration job. You can select Do the Last Incremental Sync to migrate data generated after the last incremental migration to the created ECS instance.
      Note
      • Migrating data generated after the last incremental migration prolongs the total migration duration.
      • HBR charges you a fee for migrating data from a virtual machine after the migration job is tested or completed for the first time. HBR does not charge you more fees if you test or complete the migration job again on the same virtual machine. For more information about the fees, see Pricing details.
    • Find the migration job and click Cancel in the Actions column to cancel migration.