Just like any other Administrator or Root password, if you forget or lose the Root password of an ESX server, it could be a difficult situation. This section describes how to reset your ESX root password.
Reboot ESX Server and Interrupt GRUB Boot

In order to reset your root password for an ESX server, you will need to reboot the ESX server and then interrupt the boot up during the GRUB screen. Once you boot up and reach the GRUB screen, Type in: a
This will temporarily modify the boot up parameters.
Interrupted GRUB Screen

Once you press the “a” button in the previous step, you will see a screen like the one shown in the screenshot.
Entering Single User Mode

Now type in: single and press enter. This will boot up the ESX service console into “Single User” mode which has the full Service Console functionality but does not load the VMKernel.
Root Prompt When In Single User Mode

The service console will boot into single user mode and then will show a root shell prompt.
Entering New Root Password

At the root shell prompt, type in: passwd
This will change the root password to whatever you type in next under “New Unix Password”.
Verify New Root Password

Verify the new password by typing it again. If you get the message “Bad Password: it is based on a dictionary word”, you can either ignore it or select a more complicated root password.
New Root Password Sucessful

You have now changed the root password.
Reboot ESX Server

Now, reboot the ESX server so that it will go through a normal startup and start the VMKernel. You can do this by typing in: shutdown -r now and press enter.
Reboot Will Begin

Once you issue the previous command, ESX will now begin the reboot cycle. Once it is rebooted, you can use your new root password for administration.
January 8, 2009 at 8:26 pm
[...] You can find this post here: http://lewaness.wordpress.com/2009/01/06/esx-35-server-lost-root-password-reset/ [...]
February 19, 2009 at 9:44 am
It’s a good practice to use a password on your Grub bootloader. In case of unwanted (physical) console access, one can login to your esx server and even worse, create an account with root privileges and compromise your system at a later time.
February 19, 2009 at 3:26 pm
Thanks for the post. I agree that might be a good practice, however if you have unwanted physical access to your datacenter, perhaps you have other issues!