Symptom:
 
1. Host fails to download vmware-hbr-agent.vib
2. Host constantly attempts to install vmware-hbr-agent.vib
You see the below tasks getting logged in ESXi - 
Installesxi01.###.comAn error occurred during host configuration.com.vmware.vr-sa-######-########-########-########@vsphere.localdd/mm/yyyy, hh:mm:ssdd/mm/yyyy, hh:mm:ssTask Name: InstallStatus : An error occurred during host configuration: /usr/sbin/esxupdate returned with exit status: 7.Initiator: com.vmware.vr-######-########-########-#########@vsphere.localTarget : Host 192.#.#.#Server : vCenter vcsa.###.com
Validation:
"/var/log/vpxa.log", to see below events -yyyy-mm-ddThh:mm:ssZ info vpxa[2100734] [Originator@6876 sub=Default opID=######-########-########-########-HMSINT-29-72-65] [VpxLRO] -- ERROR task-41013 -- patchManager -- vim.host.PatchManager.InstallV2: vim.fault.PlatformConfigFault:--> Result:--> (vim.fault.PlatformConfigFault) {--> faultCause = (vmodl.MethodFault) null,--> faultMessage = <unset>,--> text = "/usr/sbin/esxupdate returned with exit status: 7"--> msg = "An error occurred during host configuration."--> }--> Args:-->--> Arg metaUrls:--> (string) []--> Arg bundleUrls:--> (string) []--> Arg vibUrls:--> (string) [--> "https://vSphere-replication.###.com:8043/vib/vmware-hbr-agent.vib"--> ]--> Arg spec:--> (vim.host.PatchManager.PatchManagerOperationSpec) {--> proxy = "http://vcenter.###.com",--> port = 80,--> userName = <unset>,--> password = <unset>,--> cmdOption = <unset>--> }
"/var/log/vmware/vpxd.log", to see below events -yyyy-mm-ddThh:mm:ssZ info vpxd[07995] [Originator@6876 sub=Default opID=######-########-########-########HMSINT-46-18] [VpxLRO] -- ERROR task-23603 -- patchManager-10 -- vim.host.PatchManager.InstallV2: vim.fault.PlatformConfigFault:--> Result:--> (vim.fault.PlatformConfigFault) {--> faultCause = (vmodl.MethodFault) null,--> faultMessage = <unset>,--> text = "/usr/sbin/esxupdate returned with exit status: 7"--> msg = "An error occurred during host configuration."--> }--> Args:-->--> Arg metaUrls:--> (string) []--> Arg bundleUrls:--> (string) []--> Arg vibUrls:--> (string) [--> "https://replication.###.com:8043/vib/vmware-hbr-agent.vib"--> ]--> Arg spec:--> (vim.host.PatchManager.PatchManagerOperationSpec) {--> proxy = "http://vCenter.###.com",--> port = 80,--> userName = <unset>,--> password = <unset>,--> cmdOption = <unset>--> }
"/var/log/esxupdate.log", to see below events -An error occurred during host configuration: /usr/sbin/esxupdate returned with exit status: 7.
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: esximage.Downloader.DownloaderError: ('https://192.###.###.:x8043/vib/vmware-hbr-agent.vib', '', '<urlopen error [Errno -3] Temporary failure in name resolution>')yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: During handling of the above exception, another exception occurred:yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: Traceback (most recent call last):yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: File "/usr/sbin/esxupdate", line 378, in mainyyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: cmd.Run()yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: File "/lib64/python3.8/site-packages/vmware/esx5update/Cmdline.py", line 161, in Runyyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: res = t.InstallVibsFromSources(viburls, metaurls, None,yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: File "/lib64/python3.8/site-packages/vmware/esximage/Transaction.py", line 834, in InstallVibsFromSourcesyyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: self.GetVibsAndMetaFromSources(vibUrls, metaUrls, vibspecs,yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: vibsToInstall = Transaction._getVibsFromUrls(vibUrls)yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: raise Errors.VibDownloadError(url, None, str(e))yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: esximage.Errors.VibDownloadError: ('https://192.###.###.###:8043/vib/vmware-hbr-agent.vib', None, "('https://192.###.###.###:8043/vib/vmware-hbr-agent.vib', '', '<urlopen error [Errno -3] Temporary failure in name resolutionyyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: esxupdate: INFO: --- Command: update Args: ['update'] Options:yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: esxupdate: INFO: viburls = ['https://replication.###.com:8043/vib/vmware-hbr-agent.vib']yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: INFO: Opening https://replication.###.com:8043/vib/vmware-hbr-agent.vib for downloadyyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: INFO: Proxies configured: {'http': 'http://vCenter.###.com:80', 'https': 'http://vCenter.###.com:80', 'ftp': 'http://vCenter.###.com:80'}yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: Proxy: ERROR: Proxy server cannot connect to the endpoint: HTTP/1.1 404 Not Found Connection: close Content-Type: text/html Content-Length: 48yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: WARNING: Download failed: Proxy server vCenter.###.com:80 returned status 404, 4 retry left... yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: INFO: Proxies configured: {'http': 'http://vCenter.###.com:80', 'https': 'http://vCenter.###.com:80', 'ftp': 'http://vCenter.###.com:80'}yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: Proxy: ERROR: Proxy server cannot connect to the endpoint: HTTP/1.1 404 Not Found Date: Connection: close Content-Type: text/html Content-Length: 48yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: WARNING: Download failed: Proxy server vCenter.###.com:80 returned status 404, 3 retry left... yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: INFO: Proxies configured: {'http': 'http://vCenter..com:80', 'https': 'http://vCenter.######.com:80', 'ftp': 'http://vCenter.###.com:80'}
[root@ESXihost:~] esxcli software vib list | grep -i hbrvmware-hbr-agent 8.0.2-0.0.22517424 VMware VMwareCertified 2024-03-21
[root@ESXihost:~] esxcli software vib remove -n vmware-hbr-agentRemoval ResultMessage: Operation finished successfully.Reboot Required: falseVIBs Installed:VIBs Removed: VMware_bootbank_vmware-hbr-agent_8.0.2-0.0.22517424VIBs Skipped:
esxcli network firewall set --enabled falseesxcli network firewall set --enabled true (Set it back to true after downloading the file)
[root@ESXihost:~] esxcli software vib install --proxy=http://vCenter.###.com:80 -v http://replication.###.com:8043/vib/vmware-hbr-agent.vib[VibDownloadError]('https://replication.###.com:8043/vib/vmware-hbr-agent.vib', '', 'Proxy server vCenter.###.com:80 returned status 404')url = //http://replication.###.com:8043/vib/vmware-hbr-agent.vibPlease refer to the log file for more details. (Refer to esxupdate.log)
Incase the above steps don't work then follow below steps -
Upload the vib file to the local datastore of the host.
OR
root [ /home/admin ]# find / -iname *hbr*vib*
/opt/vmware/hbr/vib/vmware-hbr-agent-8.0.3-0.0.24299508.i386.vib
/opt/vmware/hbr/vib/vmware-hbr-agent.vib
                  root [ /home/admin ]# scp /opt/vmware/hbr/vib/vmware-hbr-agent-8.0.3-0.0.24299508.i386.vib root@Target ESXi Host IP address:/tmp
                 The authenticity of host '10.#.#.# (10.#.#.# )' can't be established.
                 ECDSA key fingerprint is SHA256:
                This key is not known by any other names
                 Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
                 Warning: Permanently added '10.#.#.# ' (ECDSA) to the list of known hosts.
                 (root@10.#.#.# ) Password:
                  vmware-hbr-agent-8.0.3-0.0.24299508.i386.vib                        100%   26MB 154.8MB/s   00:00
Post which install the vib file by running "esxcli software vib install -v <path to vib file>".
                 esxcli software vib install -v /tmp/vmware-hbr-agent-8.0.3-0.0.24299508.i386.vib
                 Installation Result
                 Message: Operation finished successfully.
                 VIBs Installed: VMware_bootbank_vmware-hbr-agent_8.0.3-0.0.24299508
                 VIBs Removed:
                 VIBs Skipped:
                 Reboot Required: false
                 DPU Results:
Note:
Bad Example:[root@vCenter:~] hostnamevCenter.###.com[root@Atlanta:~] hostname -i172.#.#.#root@ESXihost [ ~ ]# hostnamevCenter.###.comroot@ESXihost [ ~ ]# hostname -i127.#.#.#
- The host and vCenter have the same hostnames - vCenter.x.com
[root@localhost:~] hostnamelocalhost.localdomain[root@localhost:~] hostname -i127.#.#.#
- Here, there is no DNS record created for this host.
1. Make sure vCenter, vSphere Replication, SRM and ESXi hosts are using the correct DNS server. (Decommissioned DNS must not be used)
2. Create forward and reverse lookup records in DNS for vCenter, vSphere Replication, SRM and ESXi hosts, if it does not exist.
3. If step 1 & 2 are not working, update the "hosts" file of vCenter, vSphere Replication and/or SRM.
 - Update the hosts file at "/etc/hosts" file in the format of "IP FQDN Hostname"; Example: "192.#.#.#  SRM01."###.local SRM01
1. Verify the DNS record for the host is correctly configured in DNS manager (forward/reverse lookup must be configured)
2. Verify the hostname in DCUI matches the DNS record 
3. Verify the Primary & alternate DNS servers are correct & working from the host.
4. Verify the custom DNS suffix is set