ESXi host root password does not work from SSH or console due to locked account or expired password. This article will help to reset new root password for ESXi host root account using Host profile without reinstalling the host.
Resolution
- Extract Host profile from the same host where we have the password issue.
- Edit the newly created Host profile.
- Go to Security and Services > Security Settings > Security > User configuration > Root.
- Select Fixed password configuration, set the new password and click on Finish.
- Attach the profile to ESXi host and Check Host Profile Compliance.
- You will see that the Host is Not Compliant with password difference.
- Remediate the Host against newly created Host Profile. Right click on host > Host profile > Remediate. Uncheck the reboot option.
- Try to access the Host with the new root password, you should be able to login to host.