This post is also available in: Italian

Reset the root password with ESX 3.x was quite simple, just because the service console was a partition writable a live CD… With ESX 4.x it was a little more complicated (the service console was basically a vmdk).

But with ESXi things are more complicated, due to the partition layout, that ESXi works in RAM and that all configurations files are stored in the banks it special archive files. The file containing the password hashes is called “shadow” and it is is contained in  a nested structure of archives inside the state.tgz file.

So, in order to change the root password (or other password) you need to work with several compressed tar files, as well explained on this post:

Although you have detailed instructions on the web on how to “reset” to password, I still prefer to simple re-install the host and keep existing VMFS datastores: with ESXi 5.0 you can select “Install ESXi, preserve VMFS datatore” after selecting the installation disk. Also, to be sure to do not “touch” the existing disks, you can install ESXi on a USB keys or flash card (just in case that you need to access to some VMs).

Note that the host reinstallation is also the only supported way, as described in the KB1317898 (Changing a forgotten root password on an ESX/ESXi host).

Andrea MauroAbout Andrea Mauro (2375 Posts)

Virtualization & Cloud Architect. VMUG IT Co-Founder and board member. VMware VMTN Moderator and vExpert (2010, 2011, 2012, 2013, 2014, 2015). PernixPro 2014. Dell TechCenter Rockstar 2014. MVP 2014. Several certifications including: VCDX-DCV, VCP-DCV/DT/Cloud, VCAP-DCA/DCD/CIA/CID/DTA/DTD, MCSA, MCSE, MCITP, CCA, NPP.