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 as well, please use the following KB instead: Missing ESXi service accounts in SDDC Manager after Bringup
vSAN LSOM update stage on certain hosts.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.
Check if the service account is missing. Run the following command in a SSH session on the affected ESXi host:
esxcli system account listSample output:
[root@esxi_shortname:~] esxcli system account list User ID Description Shell access -------------- ----------------------------------------- ------------ root Administrator true dcui DCUI User true vpxuser VMware Workstation administration account true cloudadmin ESXi User true lldpVim-user ESXi User true mux_user ESXi User true da-user ESXi User true nsx-user ESXi User true
Since the svc-vcf-esxi_shortname account is missing, manually re-create the service account on the ESXi host.
NOTE: Confirm if the service account is missing from SDDC. If it is present in the SDDC Manager, use its password credentials in the Step 2 below when recreating the service account:
Retrieve the service accounts credentials from SDDC Manager
svc-vcf-esxi_shortname) and password (See above note and use the password that SDDC Manager has for this account)./etc/passwd and /etc/shadow filesesxcli system account add --id svc-vcf-esxi_shortname --password '<password>' --password-confirmation '<password>'esxcli system permission set --id svc-vcf-<esxi_shortname> --role Admin
svc-vcf-esxi01 should look like this:[root@esxi_shortname:~] esxcli system permission listPrincipal Is Group Role Role Description-------------- -------- -------- ----------------svc-vcf-esxi_shortname false Admin Full access rightssvc-vcf service account user and password you just setsvc-vcf service account for the host in question and REMEDIATE the password, using the password supplied while creating the account above.svc-vcf account to confirm that SDDC Manager is able to interact with the host.
VCF service account management issue is fixed in VCF 5.2.4 and also will be part of future 9.1.x release.
To download VMware Cloud Foundation (VCF) version 5.2.4, log into the Broadcom Support Portal
***** IMPORTANT *****
Post-Recreation Verification and Root Account Sync After re-creating the missing service account and remediating its password in the SDDC Manager Password Manager, it is essential to ensure the root account is also synchronized: