Unable to login ESXi host as password is unknown.
Note: This will only change the password per what is configured in the host profile and cannot use this process to find an unkown password.
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
Follow the below steps to reset the ESXi host password.
Login to the vCenter UI
Go to 'Home' > 'Policies and Profiles' > 'Host Profiles'
Click 'Extract profile from a host'
In the 'Extract Host Profile' wizard select the affected host
Name the Host Profile and click 'Next' > 'Finish'
Right click the new Host Profile and click 'Edit Host Profile'
In the 'Edit Host Profile' wizard uncheck all boxes
Using the search filter, search for 'root'
Check the box for 'root'
In the 'Password' drop-down, choose 'Fixed password configuration'
Security and services > Security setting > Security > User configuration > root >
Password > Fixed password configuration > set the new root password
Enter the new password and click 'Save'
Right-click the new Host Profile to open the 'Actions' menu. Choose 'Attach/Detach Hosts and Clusters...' and then select the host in the wizard.
Right-click the new Host Profile to open the 'Actions' menu. Choose ' Edit Host customization..
Select the host which stats Customization required, check the configurations and Finish [ no changes need]
Click the hamburger button in the upper left of the screen and select inventory.
Right-click the ESXi host in the inventory. The select Host Profiles > Remediate...
**Caution** : Un-Select the "Automatically reboot hosts that require remediation" else this will reboot the ESXi host.
Note: There are no tools or methods to recover the original root password of an ESXi host.
For Host Profile feature you must have Enterprise Plus License.