This guide shows how to reset a forgotten VMware ESXi password while keeping your virtual machines.
Attach the ISO of the ESXi version you use to the machine where ESXi is installed. In this example we use ESXi 6.0. Boot the server from the ISO.

Follow the next steps very carefully; a wrong choice can cause irreversible damage to your server.
On the screen that opens, press ENTER.

Press F11 to accept the licence agreement.

Select the disk where ESXi is installed.

Choose the second option, Install ESXi, preserve VMFS datastore.

Select the keyboard layout.

Set your new root password and keep a note of it.

Press F11 to start the installation.

When the installation finishes, the server asks to restart.

Click Reboot.

On the ESXi console, assign the server its previous IP address.



Recovering the virtual machines
Now register your existing virtual machines again. Open the ESXi web interface.

Open the datastore (your storage).

Open the folder of the virtual machine you want to recover.

Right-click the file ending in .vmx, choose Register VM (Add to inventory) and follow the steps in order.



The virtual machine is back in your inventory. Power it on with Start.


Can't find the information you are looking for?