Powered-on virtual machines may fail to successfully migrate to a newly added ESXi host within a cluster in vSphere environments with NSX integration. The migration may also initially succeed, but them automatically migrate back to the original host within seconds. This issue specifically affects powered-on VMs, while powered-off VMs can be migrated successfully.
The following symptoms may be observed:
This issue occurs due to one or more of the following conditions:
ESX Agent Manager (EAM) is attempting to deploy NSX Guest Introspection VMs on the new host but fails due to:
DRS enforces a constraint that prevents VMs from running on hosts without the required agent VMs deployed ("InsufficientAgentVmsDeployed" errors)
Follow these steps to resolve the VM migration issue:
Check ESX Agent Manager for errors:
Navigate to vCenter Server > Menu > Administration > vCenter Server Extensions
Select vSphere ESX Agent Manager > Configure
Look for agency errors, particularly related to Guest Introspection
Check for missing datastore errors:
In the ESX Agent Manager, look for errors like "Agent datastore(s) not available on host"
Verify that all datastores referenced in the agent configuration are accessible to the new host
If the NSX Manager is disconnected from vCenter:
Connect to NSX Manager admin interface
Re-register the NSX Manager with vCenter
Verify successful connection between components
For Guest Introspection issues:
If Guest Introspection is no longer needed, consider removing the deployment
If needed, reconfigure Guest Introspection with correct datastore references
Try resolving issues from NSX > NSX Service Deployment > Guest Introspection