You've mentioned that you have done quite a bit of testing however you have not mentioned from WHERE you have tested. let me know what happens when you:
- PING the host via IP from the vCenter.
- PING the host via DNS from the vCenter.
- Check port 443, 80 open from the vCenter to the host.
- Move the vCenter to another host and then try to connect again.
- Run the command "ssh root@<Host_IP>". Does the SSH connection connect to the host?
Do your hosts have separate PHYSICAL uplinks for each switch/dvSwitch? For example, I've seen the issue where the Standard and dvSwitches on a host were using the same PHYSICAL uplink connection to the upstream switch and what happens here is vCenter was on the Standard switch and the host was on the dvSwitch but both on the same PHYSICAL uplink and in this situation the upstream switch will not forward packets between the two and thus you get packet drop and thus disconnection.
Put the vCenter on another vlan/subnet and try again. Put the vCenter on the same vLAN/subnet and try again.
Ensure that the /etc/hosts file is using 127.0.0.1 pointing to localhost.localdomain localhost. Check the hosts file on both to make sure either no entries exist (because you are using DNS) or the correct IPs & names appear for both vCenter and ESXi host if not using DNS. Adding the vCenter and ESXI host names and IPs to your DNS server will help.
I assume your hosts can PING the vCenter (via CLI)? The hosts can PING each other? Also try restarting the management agents on the host and retry.
Is the version/build of vCenter equal to or greater then the hosts? Ensure your vCenter is patched to the latest version/build.
Change the IP of the vCenter and see what happens in case there is a duplicate IP on the network.
Check in DNS server that you have a reverse DNS/IP record for the host. You can test this with:
NSLOOKUP <Host_IP> and if you get an error of some sort then you need a reverse DNS record setup.
One of the logs will have the issue recorded, it's a matter of which one. When you try to add the host, do you see anything in these logs:
/var/log/vmware/vpx/vpxa.log
/var/log/vmware/hostd.log
vpxd.log
And this happens for ALL your hosts?
Original Message:
Sent: Aug 15, 2024 02:41 AM
From: Yaniv Dinar
Subject: Cannot add host to vCenter
Sounds like networking mismatch.
look at the DNS configuration of your ESXI under Networking\Default TCP/IP stack and make sure you can ping your DNS server from your ESXI host.
also try and do the same with your vCenter Appliance.
login as root and check your networking configuration from the management: "vcenter address"\"host name":5480 and make sure you can ping your DNS server.
Original Message:
Sent: Sep 24, 2023 03:33 AM
From: pabloleiva
Subject: Cannot add host to vCenter
hello! I know this same question has been asked multiple times; I've already read like 50 post and went over all google search pages.
I just installed vCenter VCSA 6.7 and trying to add some ESXi hosts we have (version 6.0). Getting this error:
Cannot contact the specified host (<server>). The host may not be available on the network, a network configuration problem may exist, or the management services on this host may not be responding.
I've tried:
* Tested using both hostname and IP
* Verified DNS (I can ping hosts from vCenter using IP and hostname)
* Verified port 902 is not blocked on FW
* Verified hosts certs are valid (self-signed)
* Tried certmgmt mode thumbprint and vcsa
* Tried to restart the vpxa service
* Tried to regenerate the self-signed certs
* Installed VCSA 6.5 - same problem
* Installed vCenter on Windows - same problem
* I installed a new ESXi host (VM) to test and that one worked (same ESXi version). I've tried comparing all settings and seem to be the same as the non-working.
* Checked the vpxa logs on the host but seems nothing is written when I try to add them. I believe it could be an SSL or certificate issue but cannot find why the existing hosts cannot be added, but the new one I built yes.
* I cannot reboot hosts at the moment (actually trying to get vCenter to move VMs around and be able to reboot and upgrade ESXi)
Any ideas would be appreciated!