Cannot complete the configuration of the vSphere HA agent on the host. "Setting desired image spec for cluster failed." Cannot complete the configuration of the vSphere HA agent on the host. "Applying HA VIBs on the cluster encountered a failure."/var/log/vmware/vmware-updatemgr/vum-server/vmware-vum-server.log of vCenter which also indicates there's a vsphere-fdm of legacy version 8.0.3-24322831 present in the image as a component while adding the newer version of 8.0.3-24674346 as a solution:vmware-vum-server[159915] [Originator@6876 sub=ServiceProvider] [EmbeddedPyServiceProvider 2263] The software spec string: {--> "add_on": null,--> "alternative_images": null,--> "base_image": {--> "version": "<ESXi base version>"--> },--> "components": {--> "vsphere-fdm": "8.0.3-24322831"--> },--> "hardware_support": null,--> "removed_components": null,--> "solutions": {--> "com.vmware.vsphere-ha": {--> "components": [--> {--> "component": "vsphere-fdm"--> }--> ],--> "version": "8.0.3-24674346"--> }--> }--> }vCenter Server 8.0
There's a legacy version of vsphere-fdm present as component in lifecycle manager image which caused issue when adding vsphere-fdm of newer version as a solution.
The legacy version of vsphere-fdm component needs to be removed from the image to solve the issue.
If the component cannot be removed from vCenter UI, an alternative way to get the component removed is:
vSphere HA can be successfully enabled post removing legacy vsphere-fdm component.
To verify the old FDM from the images on the cluster follow below steps :
In the vSphere Client, go to Hosts and Clusters and select cluster.
Click the Updates tab, then select Image.