Configuring vSphere HA on an image-based cluster fails.
book
Article ID: 384913
calendar_today
Updated On:
Products
VMware vCenter ServerVMware vSphere ESXi
Issue/Introduction
Enabling vSphere HA on the cluster fails with the below errors
"A general system error occurred: Installing HA Components failed on the cluster: domain-cxx".
Cannot complete the configuration of the vSphere agent on the host. "Applying HA VIBs on the cluster encountered a failure". Failed installing HA component on the host: host-xxxx.
Error in /storage/log/vmware/vmware-updatemgr/vum-server/imageservice.log
INFO imageService[140135426922048] [SoftwareSpecMgr 1368] Image validation result: {'info': [], 'warnings': [], 'errors': [{'id': 'com.vmware.vcIntegrity.lifecycle.EsxImage.ComponentNotFoundError', 'message': {'id': 'com.vmware.vcIntegrity.lifecycle.EsxImage.ComponentNotFoundError', 'default_message': 'Component vsphere-fdm cannot be found in depot.', 'args': ['vsphere-fdm']}, 'resolution': None, 'time': 'yyyy-mm-dd'}]} vmware.esximage.Errors.ComponentNotFoundError: ('vsphere-fdm', '8.0.3-24022515', 'Could not find the component with name = vsphere-fdm, version = 8.0.3-24022515 in the depot.')
Environment
VMware vCenter Server 8.x
VMware vSphere ESXi 8.x
VMware vCenter Server 7.x
VMware vSphere ESXi 7.x
Resolution
Take snapshot of vCenter VM (Powered off snapshot of all vCenter Servers if in ELM)
SSH to vCenter Server with root credentials
Enter the shell with below command
shell
Stop the update manager service
service-control --stop updatemgr
Access the postgres DB
su updatemgr -s /bin/bash
psql -U vumuser -d VCDB
View the below two tables before deleting the required entries
table pm_software_desired_states;
table pm_software_compliances;
Delete the entries from the same two tables
DELETE FROM pm_software_compliances;
DELETE FROM pm_software_desired_states;
Quit and exit from the DB:
\q
Start the update manager service
service-control --start updatemgr
Rebuild the cluster image from UI and enable the vSphere HA.