Thursday, May 30, 2024

automate HCX VM migration using Powershell

To automate HCX VM migration using PowerShell, you can use VMware PowerCLI cmdlets. 


Install VMware PowerCLI: Ensure you have VMware PowerCLI installed on your machine. 

You can download and install it from the official VMware website.


Connect to HCX: Use the following command to connect to your HCX server:


Connect-HCXServer -Server <HCX_Server_Name> -User <Username> -Password <Password>



Define Variables: Define the necessary variables for the source and destination sites, VMs, and networks:


New-HCXMigration -SourceSite $HCXSRC -DestinationSite $HCXDEST -Folder $HCXCTR -TargetComputeContainer $COMPCTR -NetworkMapping $TargetNW -TargetDatastore $TargetDS -VM $VM -ScheduleStartTime '03/08/2019 06:36:00 AM' -ScheduleEndTime '03/18/2019 07:36:00' -MigrationType Bulk

Monday, May 13, 2024

HCX Service Mesh deployment fails with Could not find an OVERLAY transport zone

 



ISSUE:

The affected environment has the following configuration:
- NSX is deployed in On-Premises and no Overlay-TZ is configured in the HCX Network Profile
- The WANOPT is selected during the Service Mesh deployment


Cause
When using an WAN Optimization appliance, an Overlay Transport Zone is required for communication with the IX appliance. This issue can occur if there is NSX on-premises and no overlay segment is configured in the HCX network profile.


Resolution
- Create a new overlay transport zone for the WANOPT.
Or 
- Deploy the service mesh without WANOPT



RAV migration cutover was failing after sync

 Issue: HCX RAV migration was failing after base sync and while cutover the VM. Noticed below error in hcx connector app logs. TxId: 4cda256...