The purpose of this KB is to provide the steps to re-create the missing service account on an ESXi host, if it already exists on the SDDC Manager.
Note: If the service account does not exist on the SDDC Manager, use the following KB instead: Missing ESXi service accounts in SDDC Manager after Bringup.
Symptoms:
vSAN LSOM update stage on specific hosts./var/log/vmware/vcf/lcm/lcm.log:Failed to update vSAN LSOM settings on the host esxi_shortname.example.comFailed to connect to esxi_shortname.example.comIf the host has been rebuilt/reconfigured and then re-added to the vCenter without going through the decommission / commission process from the SDDC Manager, the service account may be missing on the ESXi host.
esxcli system account listUser ID Description Shell access-------------- ----------------------------------------- ------------root Administrator truedcui DCUI User truevpxuser VMware Workstation administration account truecloudadmin ESXi User truelldpVim-user ESXi User truemux_user ESXi User trueda-user ESXi User truensx-user ESXi User truesvc-vcf-esxi_shortname account, manual recreation of the service account on the ESXi host is required to restore functionality.Manage > Security & Users > Users.svc-vcf-esxi_shortname) and password (Which was retrieved in step 2).root.esxcli system account add --id svc-vcf-esxi_shortname --password '<password>' --password-confirmation '<password>'esxcli system permission set --id svc-vcf-<esxi_shortname> --role Adminsvc-vcf-<esxi_shortname> account must match the following configuration:[root@esxi_shortname:~] esxcli system permission listPrincipal Is Group Role Role Description---------------------- -------- -------- ----------------svc-vcf-esxi_shortname false Admin Full access rights