Reset forgotten vsphere root /esxi password: Difference between revisions

From roonics
Jump to navigation Jump to search
No edit summary
No edit summary
Line 21: Line 21:
cd etc
cd etc
</pre>
</pre>
4.  Now we need to edit the shadow file and remote the password.  Use vi or nano to open shadow:
<pre>vi shadow</pre>
or
<pre> nano shadow</pre>





Revision as of 13:29, 6 July 2020

Testing using vSphere version 5.5.

1. Download Gparted and create a bootable usb or mount the ISO file via the iLO/iDrac.

2. Once in Gparted you need to look for two 250MB paritions, shown below:

3. Open a terminal window and type the following commands:

sudo su
mkdir /boot /temp
mount /dev/sda5 /boot
cd /boot
cp state.tgz /temp
cd /temp
tar -xf state.tgz
tar -xf local.tgz
rm *.tgz
cd etc

4. Now we need to edit the shadow file and remote the password. Use vi or nano to open shadow:

vi shadow

or

 nano shadow