This KB provides the way to recover access to a vCenter Appliance for the root account.
VMware vCenter 9.x
VMware vCenter Server 8.x
By default, the vCenter Appliance root password expires every 90 days
Note: Resetting the vCSA password can be done without a reboot as long as the SSO administrator account is known, refer Reset vCenter Server Appliance root password without reboot (6.7u1 / 7.x / 8.x)
Change the vCenter root password for the vCenter Appliance, using the steps here: Change the Password and Password Expiration Settings of the Root User
Reset the vCenter root password for the vCenter Appliance using GRUB:
Note:
Before proceeding with the steps below, take a backup and a snapshot of the vCenter Appliance. If the vCenter is part of a Enhanced Linked Mode (ELM) replication setup, also take a backup or offline (powered off) snapshot of all replicating vCenter ELM nodes.
If the vCenter Appliance is on an ESXi hosts it manages, connect directly to the ESXi host that it is located on to perform these steps.
rw init=/bin/bash
The line should look like the following screenshot:
mount -o remount,rw /
pam_tally2 --user=root --reset/usr/sbin/faillock --user root --resetpasswd
umount /
reboot -fOptional:
chage -I -1 -m 0 -M 99999 -E -1 rootchage -l rootchage -l rootLast password change : [example date]Password expires : [example date]Password inactive : neverAccount expires : neverMinimum number of days between password change : 0Maximum number of days between password change : 90Number of days of warning before password expires : 7
Additionally, to check the password details for the [email protected] (default SSO) account, run the following command from the vCenter SSH session:
chage -l sso-user
example:chage -l sso-user
Last password change : [example date] Password expires : [example date] Password inactive : [example date] Account expires : never Minimum number of days between password change : 1 Maximum number of days between password change : 90 Number of days of warning before password expires : 7