ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

How to reset ESXi 6.x root password and under which conditions

By Vladan SEGET | Last Updated: March 13, 2017

Shares

I had this question recently through an e-mail and was sure that I already wrote about it. After some research, I figured out that a blog post would clear my doubts. VMware says that it's not possible to reset ESXi password on ESXi 6.x (and 5.x) systems. However, under certain circumstances, there is a possibility to change (to reset) the root password.

There are two conditions to reset ESXi 6.x root password:

1. The ESXi host is visible and accessible through vCenter.
2. VMware vSphere Host Profiles – The organization uses vSphere Enterprise Plus licensing.

The is a VMware KB which mentions root password recovery is this one and it clearly states that it's not supported to reset passwords on ESXi 6.x and ESXi in general as there is no longer the Linux console where you would use the single-user mode for the job:

Reinstalling the ESXi host is the only supported way to reset a password on ESXi.  Any other method may lead to a host failure or an unsupported configuration due to the complex nature of the ESXi architecture. ESXi does not have a service console and as such traditional Linux methods of resetting a password, such as single-user mode do not apply. 

But using host profiles to change the root password on ESXi host is supported and if you got the appropriate licensing then you should be able to change the root password.

So How to reset ESXi 6.x root password?

1. Create a Host profile from your host – first, go and click the Host profiles icon.

How to reset root password ESXi

Click the Plus sign and select the radio button Extract profile from a host.

How to reset ESXi root pasword

2. Then select the host from which you want to extract the profile. It's the host from which you'll copy all the values.

How to reset ESXi root pasword

3. The next step in the assistant invites you to name the host profile. You can also put some comment in order to explain what the profile does. Quite handy.

How to reset ESXi root pasword

4. The recap screen…. Click Finish to close the assistant.

How to reset ESXi root pasword

 5.  Select the profile and click Actions > Edit settings

How to reset ESXi root pasword

6. This starts the assistant again. Click next. You'll be at the screen below. Deselect all parts of the host profile except the Security configuration. There, you have the option from the drop down menu (2) to select Configure a fixed administrator password. Enter the new password and click next and finish the wizard.

How to reset ESXi root pasword

7.  While selecting the host profile, click on Actions > Attach/Detach hosts and clusters. This allows you to specify the host to which you want to attach this host profile.

How to reset ESXi root pasword

This is showing the next screen…

How to reset ESXi root pasword

8.  Once attached, we need to check the host profile compliance. 

How to reset ESXi root pasword

9. As you can see, our host is not compliant because the root password is not the same as we entered into the host profile.

How to reset ESXi root pasword

10. Put your host into maintenance mode and do a right click > All vCenter actions > Host profiles > remediate

How to reset ESXi root pasword

11. That's it. You can exit maintenance mode and login to your host.

Enjoy… -:)

Check more articles from ESX Virtualization:

  • VMware VCSA 6.5 Backup and Restore How-To
  • Free Tools
  • Prepare the DHCP Server for vSphere Auto Deploy Provisioning – VMware vSphere 6.5
  • Patch VMware vCenter Server Appliance (VCSA) from Offline Depot ZIP file
  • Upgrade Windows Server 2012R2 AD to Server 2016

Stay tuned through RSS, and social media channels (Twitter, FB, YouTube)

Shares
5/5 - (3 votes)

| Filed Under: How To Tagged With: How to reset ESXi 6.x root password

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Josue Maldonado says

    April 5, 2014 at 4:10 pm

    Great article! Thanks for sharing.

  2. Ashish says

    May 23, 2014 at 6:00 pm

    Bloody genius. Thanks for sharing.

  3. Mark Ragnar says

    May 28, 2014 at 10:01 pm

    I was not able to use this method, as we did not have enterprise licensing. However, as I had VCenter access and the environment had an Active Directory domain, I was able to use the vSphere Client via vCenter to configure AD authentication, then to log in to the ESXi host , create an ESX Admins AD group, add Administrator to it, and then login to the host as the AD administrator and change the root password. Hope this helps someone else without Enterprise licensing.

    • Vladan SEGET says

      May 29, 2014 at 8:57 am

      Yeah, good point. The “ESX Admins” does the trick too…

      The host will periodically check the domain controller for the group and will assign the role when the group exists. http://www.vladan.fr/ad-integration-for-esxi-4-1/

      Another option would possibly be also to get 60 days trial of vSphere where the key should unlock the Enterprise licensing.

      Thanks for the experience Mark!

    • Jeff Sullivan says

      October 9, 2014 at 8:47 pm

      This AD one helped me thanks!!!

  4. Karthikeyan says

    June 30, 2014 at 3:17 pm

    Thanks for the article, had the enterprise licensing in our environment , so followed the article and was able to reset the password. thanks again

  5. Marcus says

    September 9, 2014 at 8:47 am

    The other docs indicate that reinstalling is the ‘right’ way to go.

    Will this preserve the datastore?

    I do actually have to schedule an outage to do a firmware and ESXi update in any case.
    If i can do the password reset at that time, i may save myself some headaches

    • Vladan SEGET says

      November 9, 2014 at 4:30 am

      When doing a clean install, you have the option to preserve the datastores…

  6. Herwono W Wijaya says

    March 31, 2015 at 12:31 pm

    I make another solution
    https://www.youtube.com/watch?v=IEVLBFR8V_I

  7. pey c says

    April 20, 2015 at 1:02 pm

    1.We are currently having a production ESXi server’s with root password changed/lost and cannot recover password.
    2. We are setting up a test environment using ESXi 5.1 and VCenter both hosted in a same physical machine.
    3.After following the steps to reset the password above, we are seeing a COMPLIANT host, does this mean we cannot proceed with changing the lost password.
    4. Perhaps we can give it a try on the production server to see if we can change the password.

    Any clues or advise..

    • Vladan SEGET says

      April 20, 2015 at 1:45 pm

      If the host is marked as compliant than the password is the same in the host profile AND on the host. Try change the password in the host profile and check again the compliance. The host should be seen as non-compliant…

  8. bessza01 says

    June 25, 2015 at 7:41 pm

    thank

  9. Josh says

    August 5, 2015 at 1:08 am

    Is there any way to make this work without going into Maintenance mode? I have only one host, and this is where vCenter runs.

    • Richard says

      December 18, 2015 at 7:38 pm

      Why would you only have 1 host and run VCenter???

  10. Mario says

    June 29, 2016 at 9:02 pm

    How about if I have an existing profile attached to the host. Did the current settings will stay on the host?

  11. mamad says

    September 18, 2016 at 8:49 pm

    Hi ,thanks for this helpful tutorial.
    My vCenter is running on host that i forgot that’s password.
    is there any way to reset without Maintenance mode?
    Thanks

  12. wowow says

    May 10, 2017 at 7:28 am

    Hi, thanks for this great article. I just want to add, if using vcenter 6.x web client no need to set host in maintenance mode, just choose remediate
    Thanks

  13. me says

    September 18, 2017 at 12:51 pm

    Wow, thank you man, you saved my life 🙂

  14. me says

    September 18, 2017 at 12:54 pm

    Btw, after exiting from the maintenance mode I still couldn’t login, I realized the username was locked 120 sec due to multiple incorrect login, so I disabled the SSH service, waited for 2 minutes and bang, I could login using the chosen password at the profile edit step.

    This might help others as well.

  15. Sam says

    April 25, 2018 at 1:41 pm

    Brilliant article Vladan.

    Worth noting that lockdown mode needs to be disabled on the ESXi host prior to doing this.

  16. Shakeel Ahmed says

    January 13, 2019 at 12:58 pm

    Dear Vladan SEGET,

    Your post to reset password of ESXi hosts (vSphere 6.0) through the “Host Profiles” method helped me a lot.

    Thanks and Have great time!

    Regards,
    Shakeel

  17. Andreas Flach says

    July 25, 2019 at 3:51 pm

    you have to reboot after aplying the profile. At least for Vsphere 6.0.x 😉

  18. Mario says

    October 17, 2019 at 5:23 pm

    Thank you

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in