How do you reset a lost root VMware ESX 4 server password?

The procedure to reset a lost VMware ESX server password is the same in vSphere and ESX4 as it was in VI3 and ESX 3.x. That procedure is:
· Go to the console and reboot your ESX host (of course, making sure that all VMs are powered off or migrated off)
· When the ESX server reboots, press "A" when you see the ESX GRUB boot loader to modify the kernel arguments.
· The default kernel options will appear. Add the word "single" after those options.
· ESX will boot into single user mode and you will get a # prompt.
· From here, just use the passwd command to change the root user password
· Finally, reboot the server

Comentarios