This one came at me from left field recently. The task at hand was to cold migrate one of a Virtual Machineâ€™s disks from itâ€™s old LUN, to a new one with some more breathing room. Simple enough, no? Weâ€™ve all done it a million times. What happened however, was that I received a â€œError: Failed to Connect to Hostâ€ message.
To triage this, I first logged into the host, and verified that networking was sane:
ping gateway, ping service console gateway, etc.
After verifying this was all good, I tried to reconfigure the host for VMware HA (to update the FT_HOSTS file, etc). No good, so I turned to Google (who wouldnâ€™t) and came across this post written by Duncan Epping @ Yellow-Bricks. While I didnâ€™t use the solution as posted on the site, some of the comments led me in the right direction, bringing me to:
- Put the host into maintenance mode
- Disconnect the host (Right click, disconnect)
- Remove the host from vCenter (Right click, Remove)
- Move /etc/opt/vmware/vpxa/vpxa.cfg to vpxa.old
- Connect the host to vCenter
- Add to Cluster
- Exit Maintenance mode
Hope this helps. Let me know in the comments.