Desktop Virtualization

Virtualization news and reviews

  • Solutions
  • Articles
  • Glossary
  • Contact

Gleb Reys July 4, 2008 6 Comments

How To Change Lost Password on Your ESX Server

Doing a few experiments with VMware ESX 3.5 today, I've made a typo (twice!) when setting up a password for one of the systems, and this resulted in me locking myself out of ESX server upon the completion of its install.

Luckily, there's a rather easy way to change the forgotten password to something new, and I thought I'll explain how it can be done.

Changing the root password on ESX server

You will need to have access to the serial console of the server which has your ESX installation, or access to keyboard and display attached directly to the same box.

To change the password, we'll follow this procedure:

1) Reboot ESX server.

Unfortunately, if you don't remember your root password, there won't be a clean way to reboot your server. Try to shutdown all the VMs running on it, and then power-cycle the box running ESX.

2) Boot ESX server in single user mode

In this mode, you won't be asked for a root password. When you see the following screen, press the "a" key:

… to change ESX kernel boot parameters. Your screen will look like this:

Now, simply type a space and "single" word, then press Enter:

Eventually, your ESX server will boot and give you a root command line prompt, which means you can do what you want from this moment on:

Assuming you want to change your root password, move on to the next step.

3) Change ESX root password to a new one

Simply type "passwd" and give your new password twice:

sh-2.05b# passwd
Changing password for user root.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.

That's it! You have changed the ESX password! Now it's time to reboot the system and allow ESX server to come back up online.

4) Reboot ESX server once again

Type "reboot" and wait for the ESX server to come back online in a few minutes:

sh-2.05# reboot

Are you a seasoned ESX administrator? Do you solve the forgotten root password problem differently? Please share your opinions in the comments section.

See also:

  • VMware on Desktop-Virtualization.com
  • Official VMware Site

Filed Under: Technical Tips, VMware Tagged With: esx, password, recovery, root, VMware

Upcoming topics

  • VMware View 4
  • PCoIP
  • New in xVM VirtualBox 3.1
  • vSphere 4

Comments

  1. rred says

    October 6, 2008 at 4:29 am

    HI!
    THANKS A LOT ! Works like charm!!!!

  2. bk says

    December 30, 2008 at 11:10 pm

    One thing I found to be true when entering "single" mode in reference to this step
    … to change ESX kernel boot parameters. Your screen will look like this:

    If there is any text after mem-272 make sure you back the cursor to
    mem-272M _

    It took me a while to figure that out. It doesn't work if you type in 'single' at the end of the line. I had to erase everything up to mem-272M

  3. Gleb Reys says

    January 7, 2009 at 11:56 pm

    Thanks, BK!

    I haven't played with this, so it's very good that you've spotted the importance of command line wording.

Trackbacks

  1. Changing A Mislaid ESX Root Password | VM-Aware says:
    August 5, 2008 at 12:59 pm

    […] it out here. […]

  2. Resetting the Root Password on VMware ESX 4.0 - blog.scottlowe.org - The weblog of an IT pro specializing in virtualization, storage, and servers says:
    January 13, 2010 at 9:38 pm

    […] and away you go. I won't bother to repeat the steps for getting into single user mode; go to this article and it will give you what you need (the article is written for ESX 3.5 but it works fine for ESX […]

  3. Reset Password on ESX Server | My-Technet says:
    January 27, 2010 at 4:42 pm

    […] Original Post – Here […]

Leave a Reply

Your email address will not be published. Required fields are marked *

See Also

  • Unix Tutorial
  • Basic Unix Commands
  • Advanced Unix Commands
  • SSH port forwarding
  • Unix Tutorial Digest
  • Unix Reference

Advertise Here

If you're interested in advertising your desktop virtualization product on this website, please use the contact form to provide additional information.

Virtualization Software

APPIP ERROR: amazonproducts[
AccessDenied|The Access Key Id AKIAIJB2ICKX5VVPQVJA is not enabled for accessing Product Advertising API. Please sign up for Product Advertising API at https://affiliate-program.amazon.com/assoc_credentials/home.
]
APPIP ERROR: amazonproducts[
AccessDenied|The Access Key Id AKIAIJB2ICKX5VVPQVJA is not enabled for accessing Product Advertising API. Please sign up for Product Advertising API at https://affiliate-program.amazon.com/assoc_credentials/home.
]

Books you should read

  • Mastering VMware vSphere 4 (Computer/Tech)
  • vSphere 4.0 Quick Start Guide: Shortcuts down the path of Virtualization
  • Virtualizing Microsoft Tier 1 Applications with VMware vSphere 4

Recently Written

  • Follow Up on Hardware Virtualization
  • Open VM Tools or VMware Tools?
  • The End of the Road?
  • Desktop Virtualization in 2016
  • What Are Your Thoughts On VirtualBox 5.0?

Basic Unix Commands

Basic Unix Commands
  • ls command
  • mkdir command
  • man command in unix
  • cd command - change directory
  • uname command

Useful links

  • Solaris Blog
  • Unix Tutorial Unix Tutorials and System Administation Tips

Unix/Linux Reference

Unix Reference
  • check CentOS version
  • check Raspbian version
  • SSH port forwarding
  • unix commands
  • visudo tutorial
  • mtime unix
  • lrwxrwxrwx
  • Unix Tutorial digest

Advanced Unix Commands

Advanced Unix Commands
  • ln command - symlinks
  • tune2fs unix command - filesystem parameters
  • du command - disk usage
  • lsb_release command
  • find unix command

Virtualization Glossary

  • VDI
  • Virtual Machine
  • Sun xVM suite

Copyright © 2023 · Streamline Pro Theme on Genesis Framework · WordPress · Log in