When migrating ESXi hosts from an old vCenter to a new vCenter instance, the hosts may intermittently disconnect or fail to stay connected. This typically occurs when the networking environment changes (e.g., from Layer 2 to Layer 3 connectivity) between the host and the new vCenter Server. The following behaviors may be seen:
The issue is caused by network configuration mismatches between the source and destination environments. Specifically, if the host was previously on a Layer 2 segment with the old vCenter but is now communicating across a Layer 3 boundary with the new vCenter, firewall rules or routing may block essential traffic on TCP/UDP Port 902 (NFC/Heartbeats).
To resolve the intermittent disconnection, verify and open the required network ports between the ESXi host and the new vCenter Server.
nc -zv <vCenter_IP_Address> 902
For more information on migration requirements, see Cross vCenter Migration and Clone requirements in VMware vSphere 6.x and later