During an upgrade sequence in VMware Cloud Foundation (VCF), one or more ESXi hosts in a cluster are skipped during the vSphere Lifecycle Manager (vLCM) remediation task.
SDDC Manager UI Error: Hosts were skipped during remediation. Check the logs and retry. Skipped host(s) are: <host_id> (Reference Token: 902P01 / SKIP_UNAVAILABLE_HOST).
vSphere Client Status: The host compliance status shows as UNAVAILABLE or fails to return image compliance details.
Host Logs (/var/run/log/lifecycle.log): The host-level Python image management daemon (esximage) crashes with an unhandled MemoryError and fails to free its PID lock file (/var/run/.esximg.pid).
YYYY-MM-DDTHH:MM:SSZ -INFO lifecycle [esx@XXXX] DepotCollection:463 Error parsing http://<vcenter_fqdn>:<port>/vum/repository/hostupdate/vmw/<metadata_filename>.zip:
YYYY-MM-DDTHH:MM:SSZ -ERROR lifecycle [esx@XXXX] Downloader:738 Failed to execute "localcli --plugin-dir /usr/lib/vmware/esxcli/int/ networkinternal firewall firewallRuleset set --ruleset-id esxupdate --service-name esxupdate --enabled false" with status 1, output: Errors: Unable to find a command or namespace with the name 'networkinternal' in namespace
YYYY-MM-DDTHH:MM:SSZ +ERROR lifecycle [esx@XXXX] File "/lib64/python3.11/site-packages/vmware/esximage/DepotCollection.py", line 1634, in _buildCollections
YYYY-MM-DDTHH:MM:SSZ +ERROR lifecycle [esx@XXXX] MemoryError
YYYY-MM-DDTHH:MM:SSZ -ERROR lifecycle [esx@XXXX] imagemanagerctl:125 [LockingError] Unable to free lock /var/run/.esximg.pid:
YYYY-MM-DDTHH:MM:SSZ -ERROR lifecycle 8532715 [esx@4413] imagemanagerctl:125 [LockingError]
YYYY-MM-DDTHH:MM:SSZ +ERROR lifecycle 8532715 [esx@4413] Unable to free lock /var/run/.esximg.pid:
YYYY-MM-DDTHH:MM:SSZ -ERROR lifecycle 8532715 [esx@4413] imagemanagerctl:130 Traceback (most recent call last):
YYYY-MM-DDTHH:MM:SSZ -ERROR lifecycle 8532715 [esx@4413] imagemanagerctl:130 File "/lib64/python3.11/site-packages/vmware/esximage/HostImage.py", line 2107, in _freeLock
YYYY-MM-DDTHH:MM:SSZ -ERROR lifecycle 8532715 [esx@4413] imagemanagerctl:130 File "/lib64/python3.11/site-packages/vmware/esximage/Utils/LockFile.py", line 184, in unlock
YYYY-MM-DDTHH:MM:SSZ -ERROR lifecycle 8532715 [esx@4413] imagemanagerctl:130 File "/lib64/python3.11/site-packages/vmware/esximage/Utils/LockFile.py", line 75, in _readPID
YYYY-MM-DDTHH:MM:SSZ -ERROR lifecycle 8532715 [esx@4413] imagemanagerctl:130 MemoryError
Platform: VMware Cloud Foundation (VCF) 9.1
Component: VMware vSphere Lifecycle Manager (vLCM) / SDDC Manager Lifecycle Management (LCM)
Hypervisor: VMware ESXi 9.1
Host-Side Memory Exception: The ESXi host's internal Python image management daemon (esximage) encounters an unhandled MemoryError in DepotCollection.py (_buildCollections) while downloading and building collections from vCenter micro-depot metadata files.
CLI Namespace Execution Failure: Downloader subroutines fail while executing local firewall commands due to missing or altered CLI namespaces (network / networkinternal).
Orphaned Process Lock: The sudden crash of the esximage process prevents it from releasing its PID lock file (/var/run/.esximg.pid). Subsequent compliance scans or remediation tasks fail immediately because the image manager considers the host locked
Ensure no active VIB installations or host remediations are running on the cluster.
SSH access to the affected ESXi host with root privileges.
Verify and Remove Stale Lock File
Connect to the affected ESXi host via SSH and check for the abandoned lock file:
ls -la /var/run/.esximg.pid
If present, remove the stale PID lock file
rm -f /var/run/.esximg.pid
Restart ESXi Host Management Agents
Restart hostd and vpxa to re-initialize the host management plane and clear hung communication channels:
/etc/init.d/hostd restart
/etc/init.d/vpxa restart
Note: Restarting hostd and vpxa affects only host management agents. Virtual machines residing on the host remain up, fully responsive, and unaffected.
Re-Scan Host Compliance in vSphere Client
Navigate to vSphere Client > Target Cluster > Updates > Overview.
Click Check Compliance.
Confirm that the affected ESXi host transitions out of UNAVAILABLE status to Non-Compliant (or Compliant).
Retry Upgrade in SDDC Manager
Return to the SDDC Manager UI.
Locate the failed upgrade task under the target domain/cluster and click Retry.