Unable to log in as the root user to a newly installed ESXi host via the Web Client, or Command Line Interface (CLI). While the password works correctly for the Direct Console User Interface (DCUI).
Symptoms:
/var/run/log/auth.log, you see entries similar to the following,[YYYY-MM-DDTHH:MM:SS]Er(35) login[2099406]: [module:pam_lsass]pam_do_authent icate: error [login:root ][error code:2][YYYY-MM-DDTHH:MM:SS]Er(35) login[2099406]: [module:pam_lsass ]pam_sm_authent icate: failed [error code:2][YYYY-MM-DDTHH:MM:SS]Wa(36) login[2099406]: pam_authenticate call failed: Authentication failure (7)[YYYY-MM-DDTHH:MM:SS] No(85) login[2099406]: pam_unix(login:auth): authentication failure; logname= uid=0 euid=0 tty=char/tty/1 ruser= rhost= user=root
[YYYY-MM-DDTHH:MM:SS] Er(35) login[2099406]: [module:pam_lsass]pam_do_authent icate: error [login:root ][error code:2][YYYY-MM-DDTHH:MM:SS] Er(35) login[2099406]: [module:pam_lsass ]pam_sm_authenticate: failed [error code:2][YYYY-MM-DDTHH:MM:SS] Wa(36) login[2099406]: pam_authenticate call failed: Authentication failure (7)[YYYY-MM-DDTHH:MM:SS] No(85) login[2099406]: pam_unix(login:auth): authentication failure; logname= uid=0 euid=0 tty=char/tty/1 ruser= rhost= user=root
The Caps Lock is enabled on the physical keyboard attached to the keyboard. This causes the password character casing to be inverted during entry, resulting in an authentication failure.
Verify if there is a physical keyboard attached to the server.
Check the Caps Lock indicator on the physical keyboard and disable it if it is active.
Reset the password through the DCUI. For more information, see Changing an ESXi host root password.
Log in using the root username and password via the Web Client or SSH