Upgrading VMware ESXi 7.0 U2 from A05 to Patch 7.0 U2c with ESXCLI fails when you run the following command:
esxcli software profile update -p ESXi-7.0U2c-18426014-standard -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xmlSample log entries:
. . .
. . .
2021-10-27T14:01:11Z esxupdate: 2193582: root: ERROR: Traceback (most recent call last):
2021-10-27T14:01:11Z esxupdate: 2193582: root: ERROR: File "/usr/lib/vmware/esxcli-software", line 794, in <module>
2021-10-27T14:01:11Z esxupdate: 2193582: root: ERROR: main()
2021-10-27T14:01:11Z esxupdate: 2193582: root: ERROR: File "/usr/lib/vmware/esxcli-software", line 785, in main
2021-10-27T14:01:11Z esxupdate: 2193582: root: ERROR: ret = CMDTABLE[command](options)
2021-10-27T14:01:11Z esxupdate: 2193582: root: ERROR: File "/usr/lib/vmware/esxcli-software", line 252, in ProfileUpdateCmd
2021-10-27T14:01:11Z esxupdate: 2193582: root: ERROR: res = t.UpdateProfileFromDepot([], opts.profile, depotUrls=depoturls,
2021-10-27T14:01:11Z esxupdate: 2193582: root: ERROR: File "/lib64/python3.8/site-packages/vmware/esximage/Transaction.py", line 353, in UpdateProfileFromDepot
2021-10-27T14:01:11Z esxupdate: 2193582: root: ERROR: patcherVibs = _getPatcherForProfileCmd(profileName,
2021-10-27T14:01:11Z esxupdate: 2193582: root: ERROR: File "/lib64/python3.8/site-packages/vmware/esximage/Transaction.py", line 2550, in _getPatcherForProfileCmd
2021-10-27T14:01:11Z esxupdate: 2193582: root: ERROR: newProfile, _ = Transaction.GetProfileAndCompsFromSources(
2021-10-27T14:01:11Z esxupdate: 2193582: root: ERROR: File "/lib64/python3.8/site-packages/vmware/esximage/Transaction.py", line 1437, in GetProfileAndCompsFromSources
2021-10-27T14:01:11Z esxupdate: 2193582: root: ERROR: raise Errors.NoMatchError(profilename,
2021-10-27T14:01:11Z esxupdate: 2193582: root: ERROR: vmware.esximage.Errors.NoMatchError: ('VMware-ESXi-7.0U2c-18426014', "No image profile found with name 'VMware-ESXi-7.0U2c-18426014'")
Resolution
Run the following command:
esxcli software profile update -p ESXi-7.0U2c-18426014-standard -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xmlAlternatively, upgrade ESXi with another method, such as vLCM.