Symptoms:
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 -
Install
esxi01.example.com
An error occurred during host configuration.
com.vmware.vr-sa-030a9a90-6b44-4572-8ec2-d9bb12068284@vsphere.local
dd/mm/yyyy, hh:mm:ss
dd/mm/yyyy, hh:mm:ss
Task Name: Install
Status : An error occurred during host configuration: /usr/sbin/esxupdate returned with exit status: 7.
Initiator: com.vmware.vr-sa-0a440f82-9c5b-45a8-9730-aca4ff53646c@vsphere.local
Target : Host 192.X.X.X
Server : vCenter vcsa.example.com
vpxa.log :
yyyy-mm-ddThh:mm:ssZ info vpxa[2100734] [Originator@6876 sub=Default opID=71ab0cc4-ba6d-4222-a2a8-24c3c9002a57-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.example.com:8043/vib/vmware-hbr-agent.vib"
--> ]
--> Arg spec:
--> (vim.host.PatchManager.PatchManagerOperationSpec) {
--> proxy = "http://vcenter.example.com",
--> port = 80,
--> userName = <unset>,
--> password = <unset>,
--> cmdOption = <unset>
--> }
vpxd.log :
yyyy-mm-ddThh:mm:ssZ info vpxd[07995] [Originator@6876 sub=Default opID=c2fb10d3-695c-466c-ab47-d1f67ae7c8a2-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.example.com:8043/vib/vmware-hbr-agent.vib"
--> ]
--> Arg spec:
--> (vim.host.PatchManager.PatchManagerOperationSpec) {
--> proxy = "http://vCenter.example.com",
--> port = 80,
--> userName = <unset>,
--> password = <unset>,
--> cmdOption = <unset>
--> }
esxupdate.log :
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.168.1.2:8043/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 main
yyyy-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 Run
yyyy-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 InstallVibsFromSources
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: self.GetVibsAndMetaFromSources(vibUrls, metaUrls, vibspecs,
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: File "/lib64/python3.8/site-packages/vmware/esximage/Transaction.py", line 269, in GetVibsAndMetaFromSources
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: vibsToInstall = Transaction._getVibsFromUrls(vibUrls)
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: File "/lib64/python3.8/site-packages/vmware/esximage/Transaction.py", line 928, in _getVibsFromUrls
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.X.X.X:8043/vib/vmware-hbr-agent.vib', None, "('https://192.X.X.X:8043/vib/vmware-hbr-agent.vib', '', '<urlopen error [Errno -3] Temporary failure in name resolution
yyyy-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.example.com:8043/vib/vmware-hbr-agent.vib']
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: esxupdate: INFO: meta = None
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: esxupdate: INFO: hamode = True
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: esxupdate: INFO: proxyurl = http://vCenter.example.com:80
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: esxupdate: INFO: timeout = 30.0
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: esxupdate: INFO: retry = 5
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: esxupdate: INFO: loglevel = None
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: esxupdate: INFO: cachesize = None
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: esxupdate: INFO: cleancache = None
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: esxupdate: INFO: maintenancemode = None
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: esxupdate: INFO: nosigcheck = None
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: HostImage: INFO: Installers initiated are {'live': <vmware.esximage.Installer.LiveImageInstaller.LiveImageInstaller object at 0xcacbf863a0>, 'boot': <vmware.esximage.Installer.BootBankInstaller.BootBankInstaller object at 0xcacc0af370>, 'locker': <vmware.esximage.Installer.LockerInstaller.LockerInstaller object at 0xcacbf866d0>}
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: imageprofile: INFO: Adding VIB VMware_locker_tools-light_12.1.5.20735119-21422485 to ImageProfile ESXi-7.0U3n-21930508-standard
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: imageprofile: DEBUG: Adding Component VMware-VM-Tools_12.1.5.20735119-21422485 to ImageProfile ESXi-7.0U3n-21930508-standard
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: imageprofile: DEBUG: Removing reserved Component VMware-VM-Tools_12.1.5.20735119-21422485 in ImageProfile ESXi-7.0U3n-21930508-standard
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: INFO: Opening https://replication.example.com:8043/vib/vmware-hbr-agent.vib for download
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: INFO: Proxies configured: {'http': 'http://vCenter.example.com:80', 'https': 'http://vCenter.example.com:80', 'ftp': 'http://vCenter.example.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: 48
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: WARNING: Download failed: Proxy server vCenter.example.com:80 returned status 404, 4 retry left... yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: INFO: Proxies configured: {'http': 'http://vCenter.example.com:80', 'https': 'http://vCenter.example.com:80', 'ftp': 'http://vCenter.example.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: 48
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: WARNING: Download failed: Proxy server vCenter.example.com:80 returned status 404, 3 retry left... yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: INFO: Proxies configured: {'http': 'http://vCenter.example.com:80', 'https': 'http://vCenter.example.com:80', 'ftp': 'http://vCenter.example.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: 48
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: esxupdate: ERROR: vmware.esximage.Errors.VibDownloadError: ('https://replication.example.com:8043/vib/vmware-hbr-agent.vib', None, "('https://replication.example.com:8043/vib/vmware-hbr-agent.vib', '', 'Proxy server vCenter.example.com:80 returned status 404')")
yyyy-mm-ddThh:mm:ssZ In(14) esxupdate[2370112]: Opening https://replication.example.com:8043/vib/vmware-hbr-agent.vib for download
yyyy-mm-ddThh:mm:ssZ In(14) esxupdate[2370112]: Proxies configured: {'http': 'http://vCenter.example.com:80', 'https': 'http://vCenter.example.com:80', 'ftp': 'http://vCenter.example.com:80'}
yyyy-mm-ddThh:mm:ssZ Wa(12) esxupdate[2370112]: Download failed: <urlopen error [Errno -2] Name or service not known>, 4 retry left...
yyyy-mm-ddThh:mm:ssZ In(14) esxupdate[2370112]: Proxies configured: {'http': 'http://vCenter.example.com:80', 'https': 'http://vCenter.example.com:80', 'ftp': 'http://vCenter.example.com:80'}
yyyy-mm-ddThh:mm:ssZ Wa(12) esxupdate[2370112]: Download failed: <urlopen error [Errno -2] Name or service not known>, 3 retry left...
yyyy-mm-ddThh:mm:ssZ In(14) esxupdate[2370112]: Proxies configured: {'http': 'http://vCenter.example.com:80', 'https': 'http://vCenter.example.com:80', 'ftp': 'http://vCenter.example.com:80'}
yyyy-mm-ddThh:mm:ssZ Wa(12) esxupdate[2370112]: Download failed: <urlopen error [Errno -2] Name or service not known>, 2 retry left...
yyyy-mm-ddThh:mm:ssZ In(14) esxupdate[2370112]: Proxies configured: {'http': 'http://vCenter.example.com:80', 'https': 'http://vCenter.example.com:80', 'ftp': 'http://vCenter.example.com:80'}
yyyy-mm-ddThh:mm:ssZ Wa(12) esxupdate[2370112]: Download failed: <urlopen error [Errno -2] Name or service not known>, 1 retry left...
yyyy-mm-ddThh:mm:ssZ In(14) esxupdate[2370112]: Proxies configured: {'http': 'http://vCenter.example.com:80', 'https': 'http://vCenter.example.com:80', 'ftp': 'http://vCenter.example.com:80'}
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[2370112]: An esxupdate error exception was caught:
ho
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[2370112]: raise Errors.VibDownloadError(url, None, str(e))
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[2370112]: esximage.Errors.VibDownloadError: ('https://replication.example.com:8043/vib/vmware-hbr-agent.vib', None, "('https://replication.example.com:8043/vib/vmware-hbr-agent.vib', '', '<urlopen error [Errno -2] Name or service not known>')")
DNS configuration is incorrect or not configured at all. Network ports are blocked on the firewall.
[root@ESXihost:~] esxcli software vib list | grep -i hbr
vmware-hbr-agent 8.0.2-0.0.22517424 VMware VMwareCertified 2024-03-21
[root@ESXihost:~] esxcli software vib remove -n vmware-hbr-agent
Removal Result
Message: Operation finished successfully.
Reboot Required: false
VIBs Installed:
VIBs Removed: VMware_bootbank_vmware-hbr-agent_8.0.2-0.0.22517424
VIBs Skipped:
Disable the firewall before performing the this step and enable it after its complete.
esxcli network firewall set --enabled false
esxcli network firewall set --enabled true (Set it back to true after downloading the file)
[root@ESXihost:~] esxcli software vib install --proxy=http://vCenter.example.com:80 -v https://replication.example.com:8043/vib/vmware-hbr-agent.vib
[VibDownloadError]
('https://replication.example.com:8043/vib/vmware-hbr-agent.vib', '', 'Proxy server vCenter.example.com:80 returned status 404')
url = https://replication.example.com:8043/vib/vmware-hbr-agent.vib
Please refer to the log file for more details. (Refer to esxupdate.log)
Check to see if the VIB can be downloaded without any errors - https://replication.example.com/vib/vmware-hbr-agent.vib
Bad Example:
[root@vCenter:~] hostname
vCenter.example.com
[root@Atlanta:~] hostname -i
172.X.X.X
root@ESXihost [ ~ ]# hostname
vCenter.example.com
root@ESXihost [ ~ ]# hostname -i
127.0.0.1
The host and vCenter have the same hostnames - vCenter.example.com
[root@localhost:~] hostname
localhost.localdomain
[root@localhost:~] hostname -i
127.0.0.1
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 is not working, update the hosts file of vCenter, vSphere Replication and/or SRM in the way mentioned below.
Update the hosts file at "/etc/hosts" file in the format of "IP FQDN Hostname"; Example: "192.X.X.X SRM01.example.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