Module 2 Task 13
(Optional) Confirm HCX Health
You may perform some VMware HCX appliance basic health checks using HCX Central CLI (CCLI) commands before initiating migrations. The HCX Manager Central CLI is used for diagnostic information collection and secure connections to the Service Mesh. You may refer to these articles for additional information: Troubleshooting VMware HCX and Getting started with the HCX CCLI.Migrate a VM using HCX vMotion
Now that your Service Mesh has deployed the additional appliances HCX will utilize successfully, you can now migrate VMs from your on-premises environment to AVS. In this module, you will migrate a test VM called Workload-X-Y-1 that has been pre-created for you in your simulated on-premises environment using HCX vMotion.
Exercise 1: Migrate VM to AVS
Step 1: Examine VM to be migrated
- Click the VMs and Templates icon in your on-premises vCenter Server.
- You will find the VM named Workload-X-Y-1, select it.
- Notice the IP address assigned to the VM, this should be consistent with the network you stretched using HCX in a previous exercise.
- Notice the name of the Network this VM is connected to: OnPrem-workload-X-Y.
- (Optional) You can start a ping sequence to check the connectivity from your workstation to the VM’s IP address.
Step 2: Access HCX Interface
- From the vCenter Server interface, click Menu.
- Click HCX.
You can also access the HCX interface by using its standalone interface (outside vCenter Server interface) by opening a browser tab to: https://10.X.Y.9, where X is your group number and Y is your participant number.
Step 3: Initiate VM Migration
- From the HCX interface click Migration in the left pane.
- Click MIGRATE.
Step 4: Select VMs for Migration
- Search for the location of your VM.
- Click the checkbox to select your VM named Workload-X-Y-1.
- Click ADD.
Step 5: Transfer and Placement of VM on Destination Site
Transfer and Placement options can be entered in 2 different ways:
- If you’ve selected multiple VMs to be migrated and all VMs will be placed/migrated with the same options, setting the options in the area with the green background will set the options for all VMs.
- To set the options individually per VM can be set and they can be different from each other.
- Click either GO or VALIDATE button. Clicking VALIDATE will validate that the VM can be migrated (This will not migrate the VM). Clicking GO will both validate and migrate the VM.
Use the following values for these options:
Option | Value |
---|---|
Compute Container | Cluster-1 |
Destination Folder | Discovered virtual machine |
Storage | vsanDatastore |
Format | Same format as source |
Migration Profile | vMotion |
Switchover Schedule | N/A |
Step 6: Monitor VM Migration
As you monitor the migration of your VM, keep an eye on the following areas:
- Percentage status of VM migration.
- Sequence of events as the migration occurs.
- Cancel Migration button (do not use).
Step 7: Verify Completion of VM Migration
Ensure your VM was successfully migrated. You can also check for the VM in your AVS vCenter to Ensure it was migrated.
Exercice 2: Migration rollback
Step 1: Reverse Migration
VMware HCX also supports Reverse Migration, migrating from AVS back to on-premises.
Important
All migrations, including reverse migrations must be initiated from the on-premises site.- Click Reverse Migration checkbox.
- Select the Discovered virtual machine folder.
- Select your same virtual machine to migrate back to on-premises.
- Click ADD.
Use the following values for these options:
Option | Value |
---|---|
Compute Container | OnPrem-SDDC-Cluster-X-Y |
Destination Folder | OnPrem-SDDC-Datacenter-X-Y |
Storage | LabDatastore |
Format | Same format as source |
Migration Profile | vMotion |
Switchover Schedule | N/A |
The rest of the steps are similar to what you did on Step 5.
Step 2: Verify Completion of VM Migration
Verify that the VM is back running on the On-Premises vCenter.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.