Configuring vSphere HA fails with error “vSphere HA agent cannot be installed or configured”

Share

Configuring vSphere HA fails with error “vSphere HA agent cannot be installed or configured”

Recently, we did a vCenter upgrade to  7.0.3 for a recent(below) critical security issue and saw the HA for the hosts was not able to load or start the HA agent.

https://www.vmware.com/security/advisories/VMSA-2023-0023.html 

 

Upon checking the esxupdate.log file located in /var/log/run/esxupdate.log, we have found the following error message.

2023-10-28T14:30:14Z esxupdate: 8233765: esxupdate: INFO: — Command: update Args: [‘update’] Options:

2023-10-28T14:30:14Z esxupdate: 8233765: esxupdate: INFO: viburls = [‘file:///tmp/VMware_bootbank_vmware-fdm_7.0.3-22357615.vib’]

2023-10-28T14:30:14Z esxupdate: 8233765: esxupdate: INFO: meta = None

2023-10-28T14:30:14Z esxupdate: 8233765: esxupdate: INFO: hamode = True

2023-10-28T14:30:14Z esxupdate: 8233765: esxupdate: INFO: proxyurl = None

2023-10-28T14:30:14Z esxupdate: 8233765: esxupdate: INFO: timeout = 30.0

2023-10-28T14:30:14Z esxupdate: 8233765: esxupdate: INFO: retry = 5

2023-10-28T14:30:14Z esxupdate: 8233765: esxupdate: INFO: loglevel = None

2023-10-28T14:30:14Z esxupdate: 8233765: esxupdate: INFO: cachesize = None

2023-10-28T14:30:14Z esxupdate: 8233765: esxupdate: INFO: cleancache = None

2023-10-28T14:30:14Z esxupdate: 8233765: esxupdate: INFO: maintenancemode = None

2023-10-28T14:30:14Z esxupdate: 8233765: esxupdate: INFO: nosigcheck = True

2023-10-28T14:30:15Z esxupdate: 8233765: BootBankInstaller.py: WARNING: Ignoring error when loading bootbank: Error in loading boot.cfg from bootbank /altbootbank: [Errno 2] No such file or directory: ‘/altbootbank/boot.cfg’

2023-10-28T14:30:15Z esxupdate: 8233765: HostImage: INFO: Installers initiated are {‘live’: <vmware.esximage.Installer.LiveImageInstaller.LiveImageInstaller object at 0xf04b5de2e0>, ‘boot’: <vmware.esximage.Installer.BootBankInstaller.BootBankInstaller object at 0xf04b5f5e50>, ‘locker’: <vmware.esximage.Installer.LockerInstaller.LockerInstaller object at 0xf04b6ef970>}

2023-10-28T14:30:15Z esxupdate: 8233765: imageprofile: INFO: Adding VIB VMware_locker_tools-light_12.0.0.19345655-20036586 to ImageProfile (Updated) HPE-ESXi-6.5.0-Update1-650.U1.10.2.0.23-customized

2023-10-28T14:30:15Z esxupdate: 8233765: esxupdate: ERROR: An esxupdate error exception was caught:

2023-10-28T14:30:15Z esxupdate: 8233765: esxupdate: ERROR: Traceback (most recent call last):

2023-10-28T14:30:15Z esxupdate: 8233765: esxupdate: ERROR:   File “/usr/sbin/esxupdate”, line 222, in main

2023-10-28T14:30:15Z esxupdate: 8233765: esxupdate: ERROR:     cmd.Run()

2023-10-28T14:30:15Z esxupdate: 8233765: esxupdate: ERROR:   File “/lib64/python3.8/site-packages/vmware/esx5update/Cmdline.py”, line 148, in Run

2023-10-28T14:30:15Z esxupdate: 8233765: esxupdate: ERROR:   File “/lib64/python3.8/site-packages/vmware/esximage/Transaction.py”, line 2292, in InitVibInstall

2023-10-28T14:30:15Z esxupdate: 8233765: esxupdate: ERROR:     curPatcherComp, curPatcherVibs = _findPatcher(curProfile)

2023-10-28T14:30:15Z esxupdate: 8233765: esxupdate: ERROR:   File “/lib64/python3.8/site-packages/vmware/esximage/Transaction.py”, line 2545, in _findPatcher

2023-10-28T14:30:15Z esxupdate: 8233765: esxupdate: ERROR:     return _findPatcherFromCompsVibs(imageProfile.components, imageProfile.vibs,

2023-10-28T14:30:15Z esxupdate: 8233765: esxupdate: ERROR:   File “/lib64/python3.8/site-packages/vmware/esximage/Transaction.py”, line 2605, in _findPatcherFromCompsVibs

2023-10-28T14:30:15Z esxupdate: 8233765: esxupdate: ERROR:     raise Errors.InstallationError(None, None, msg)

2023-10-28T14:30:15Z esxupdate: 8233765: esxupdate: ERROR: vmware.esximage.Errors.InstallationError: Upgrade VIB(s) “loadesx” is required for the transaction. Please use a depot with a complete set of ESXi VIBs.

2023-10-28T14:30:15Z esxupdate: 8233765: esxupdate: DEBUG: <<

Cause :

We found loadesx is missing on the hosts and this usually happens when the ESXi hosts are upgraded to 7.x using esxcli software vib update command, loadesx vib will be skipped during the upgrade and result in this issue.

Resolution :

The ‘esxcli software vib update’ and ‘esxcli software vib install’ commands cannot be used for upgrading purposes.

Note: This solution is applicable to hosts with ESXi versions lower than 7.03P06.

For all ESXi hosts that are impacted by this issue, please follow the procedure below to rerun the upgrade:

  • Put the ESXi host in Maintenance mode
  • Run the upgrade again using the below command to install the missing vibs

esxcli software profile update -d <location of Zip file> -p <profile name> -f

Example:
esxcli software profile update -d /vmfs/volumes/iscsi-2/VMware-ESXi-7.0U2e-19290878-depot.zip -p ESXi-7.0U2e-19290878-standard -f

I think this article could be useful for you. If you find it helpful, please share it with your friends on social media. Also, if you have any ideas or thoughts, feel free to leave a comment for us. Your feedback is valuable to us.

VMware Mastery

Hi, I've been working with Windows, VMware and Cloud technologies for more than 12 years. I love delving into the exciting realm of technology and enjoy sharing my knowledge with others. I write about IT and Technology, covering both technical and non-technical topics.

This Post Has One Comment

  1. Alex

    Thank, it fixed my issue.

Leave a Reply