VxRail: Using Host Profiles to Reset ESXi Root Password

Shrnutí: Logging into the ESXi host CLI as 'root' fails with the message invalid username/password or forget ESXi root password. For VxRail cluster data nodes, if management is not working to reset the root password and there is no other way of reset this ESXi root password, then consider to use host profiles to reset the root password. ...

Tento článek se vztahuje na Tento článek se nevztahuje na Tento článek není vázán na žádný konkrétní produkt. V tomto článku nejsou uvedeny všechny verze produktu.

Pokyny

Precondition: 

  1. ESXi management accounts not working or missing as well. 
  2. Witness node missing ESXi root password
  3. Consider using host profiles is the only way to reset ESXi root password. 

Environment: 7.x, 8.x

  1. Log in to vCenter using administrator 
  2. Go to Home > Policies and Profiles > Host Profiles

Screenshot of policies and profiles location           Screenshot of host profiles 

3. Click Extract profile from a host, in the Extract Host Profile wizard select the affected host, Name the Host Profile, and click NextFinish

Screenshot of extract host profile button    Screenshot of select host dialogue 

 

4. Right-click the new Host Profile and click Edit Host Profile.

Screenshot of edit host profile selection

 

5. In the Edit Host Profile wizard, keep all boxes checked by default, type "root" in the left panel search box, select "root" from left under User Configuration. 

In the "Password" drop-down list, choose "Fixed password configuration," then manually enter the new root password and click SAVE

Screenshot of password section

6. Highlight the new Host Profile and right click, select Attach Detach Hosts and Clusters and select the host in the wizard then click SAVE.

Screenshot of attach host profile      Screenshot showing host selections 

 

7. Right-click the host profiles, select 'Edit Host Customizations…' to double verify all the customized configurations, such as the management account.  Once this is done, then 'Check Host Profile Compliance'

If your ESXi is a virtual witness ESXi host, make sure to select Edit Host Customizations and follow the wizard to double verify that the configurations are all good then click FINISH

Screenshot of edit host customization   Screenshot of customize selections 

8. Place the host in Maintenance Mode if your host is not yet in MM. (Make sure host in MM before using "Remediate…")

9. Once host in MM, right click the new host profiles, select Remediate In the wizard page, click "PRE-CHECK REMEDIATION" once precheck is done(monitor from recent task), then click REMEDIATE.

. Screenshot of the remediate selection 

 

10. To confirm success, from the Action Menu, select 'Check Host Profile Compliance'. 

11. Place the host out of MM. 

 

Sometimes, clearing the checkbox might remove the component or component element from the host. This action is displayed in the task list after the precheck remediation.

In the VxRail cluster, if clearing all the other checkbox might lead to remove ESXi management account. If so, you must re-create management/local accounts or copy management account settings by copy settings from other host or other host profiles when all the ESXi hosts sharing the same configuration and same management accounts. 

Broadcom KB mentioned the same, see below links:

How Do You Manage Host Profile Policies and Policy ComponentsThis hyperlink is taking you to a website outside of Dell Technologies. (8.0) 

Disable Host Profile Component or SubprofileThis hyperlink is taking you to a website outside of Dell Technologies. (7.0) 

Další informace

For more information see Broadcom article: Reset host root password with Host Profile 

If for some reason after applied this procedure to reset the ESXi root password, the local/management accounts are removed. re-create them or copy settings from other Hosts or host profiles if confirmed the other hosts share the same configuration and same management accounts.  

Screenshot of how to copy the host profile

 

 

Dotčené produkty

VxRail, VxRail Appliance Series, VxRail Software
Vlastnosti článku
Číslo článku: 000287775
Typ článku: How To
Poslední úprava: 19 úno 2026
Verze:  3
Najděte odpovědi na své otázky od ostatních uživatelů společnosti Dell
Služby podpory
Zkontrolujte, zda se na vaše zařízení vztahují služby podpory.