Jump to content


0

VMware: How do I change a forgotten root password on my ESX Server Host


2 replies to this topic

#1 t-zwck

t-zwck

    .::GhostInTheShell::.

  • Super Moderators
  • 759 posts
  • 9772 thanks

Posted 16 December 2009 - 03:04 PM

VMware: How do I change a forgotten root password on my ESX Server Host?


Occasionally, an administrator will ask about recovering the password to an ESX Server host:

I do not know the root userís password on my ESX Server host. How can I reset the password?
I have lost the root password to my ESX host, how can I recover it? This article provides a solution to the problem of having a lost password for the root account on an ESX Server host.
Note: In some cases a defective keyboard can cause problems logging into ESX. You might want to test with a different physical keyboard if you are having difficulties with known login credentials.

If you have forgotten or donít know the password for the root user on an ESX Server host, you can change it without reinstalling ESX Server.  

Warning: This can be used maliciously and should be safeguarded against through proper physical access to the host, authenticated remote console access, monitoring and protection against reboot procedures (e.g. grub password) and limited access to the management network.

See http://www.vmware.com/resources/techresources/726 for more information on security best practices.

Note: The procedure below performs a password reset, it "blindly" replaces the existing root password with a new one. This is not password recovery, it does not allow you to learn the original root password. VMware does not provide tools or methods to recover the original root password of an ESX host.

To change the password for the root user, you must reboot the ESX Server host into service console only in single-user mode. To do this, follow the steps below appropriate for your version of ESX:


ESX Server 3.x:

Reboot the ESX Server host

Attached File  1.png   16.46K   69 downloads

When the GRUB screen appears, press the space bar to stop the server from automatically booting into VMware ESX Server

Attached File  2.png   15.27K   69 downloads

Use the arrow keys to select Service Console only (troubleshooting mode)
Press the a key to modify the kernel arguments (boot options)

Attached File  3.png   13.62K   67 downloads

On the line presented, type a space followed by the word single
Press Enter.  The server continues to boot into single-user mode
When presented with a bash prompt such as sh-2.05b#, type the command passwd and press Enter

Attached File  4.png   6.62K   63 downloads

Follow the prompts to set a new root user password
When the password is changed successfully, reboot the host using the command reboot and allow VMware ESX Server to boot normally

#2 xfx

xfx

    Awakening the World

  • Members
  • PipPipPipPipPipPip
  • 1,879 posts
  • 604 thanks

Posted 20 December 2009 - 02:04 PM

Same classical UNix password recovery performed via SUM.

#3 thinmin

thinmin

    Advanced Member

  • Members
  • PipPipPip
  • 261 posts
  • 6447 thanks

Posted 06 March 2010 - 03:48 PM

Great share! Tks
Pls follow the forum rules.
Use [Req] for request.
Use [Offer] for offer.
Use search option before you post.


Now you joined the top IT Community. It is time to join the number 1 team

http://certcollection.org/forum/index.php?/topic/41225-join-our-staff-team/
http://certcollection.org/forum/index.php?/blog/3/entry-505-join-our-staff-team/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Organization

Community

Downloads

Test Providers

Site Info


Go to top