/VCF error commission hosts: Failed to connect to the host – Certificate Error

VCF error commission hosts: Failed to connect to the host – Certificate Error

In this second blog post about VCF and errors, I discuss this error, VCF error commission hosts: Failed to connect to the host – Certificate Error.

When we try to add hosts to VCF with commission hosts, I get the error: Failed to connect to the host. Ensure that the host is reachable, it has a valid certificate with a fully qualified domain name in its Common name, and credentials are valid.

I know that it’s reachable, and the credentials are ok, so the only thing that could have a problem is the certificate.

I remember that I needed to change the Hostname for this ESXi, but I did not double-check the domain. So I need to check the Domain name, Fully Qualified Domain Name, and Hostname.

This can be done with a simple command in the ESXi shell: esxcli system hostname get

vcf-error-commission-hosts-failed-to-connect-to-the-host-certificate-error

As we can see above, I had an extra domain-subdomain from my router(which was set by DHCP in the ESXi install first boot), and the initial certificate was using the DHCP domain.

So I need to set the proper domain with: esxcli system hostname set –domain vmwarehome.lab, generate new certificates with /sbin/generate-certificates, reboot, and try again.

After rebooting ESXi, try again to validate the ESXi host, and all is green. This means that VCF did not find any configuration errors in the VCF commission checklist criterion.

vcf-error-commission-hosts-failed-to-connect-to-the-host-certificate-error

ESXi host is validated and now ready to be added to VCF.

Again, this simple blog post shows another example: sometimes, a simple solution is enough to fix a problem that can take many hours to troubleshoot.

Other VCF errors blog posts:

Share this article if you think it is worth sharing. If you have any questions or comments, comment here, or contact me on Twitter.

©2022 ProVirtualzone. All Rights Reserved
By | 2022-05-30T22:41:24+02:00 May 30th, 2022|VCF, VMware Posts|0 Comments

About the Author:

I have over 20 years of experience in the IT industry. I have been working with Virtualization for more than 15 years (mainly VMware). I recently obtained certifications, including VCP DCV 2022, VCAP DCV Design 2023, and VCP Cloud 2023. Additionally, I have VCP6.5-DCV, VMware vSAN Specialist, vExpert vSAN, vExpert NSX, vExpert Cloud Provider for the last two years, and vExpert for the last 7 years and a old MCP. My specialties are Virtualization, Storage, and Virtual Backup. I am a Solutions Architect in the area VMware, Cloud and Backup / Storage. I am employed by ITQ, a VMware partner as a Senior Consultant. I am also a blogger and owner of the blog ProVirtualzone.com and recently book author.

Leave A Comment