How do I reset the VMware vSphere Client password


First time question on here.  Hopefully someone can help.

My colleague has managed to lock out/forgotten the username and password for vSphere Client, so we are currently unable to login and see our VMs.

Is it possible to reset this at all ?  If so could someone give us a hand !!

Many Thanks
Matthew HinchliffeIT EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Do you mean the password for the ESXi server ?

e.g. are you missing the password for the root account ?

do you connect normally direct to ESXi server ?

I'm afraid you cannot reset the password for the ESXi server.

The support method by VMware, is to re-install the ESXi server.

see here

There is an unsupported method of resetting the password here
you might have created other users but the root users, then you can use another user account.
Otherwise  reinstalling the software is the only supported option!

check this:
Matthew HinchliffeIT EngineerAuthor Commented:
Thanks guys.  It is the root password that has been reset.

We have 12 ESXi hosts and I can connect to each of them directly using the ESXi password we set when we installed ESXi originally.

However, I cannot connect to the vSphere client server VM that we use to monitor the entire deployment.

I've inherited this system so just trying to get my head round it all at the moment.

Thanks again for your help and if I've missed something or not explained properly just let me know.

Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
So you have lost the password to access vCenter Server ?

Do you only have a single user accessing vCenter Server ?

Normally you would have more than one user accessing vCenter Server, and more than a single Administrator ?

What version of vCenter Server is this ?
if you know on what machine the client is runing, you just have to connect to that machine with the vsphere client, and then use the folowing procedure to reset the vsphere password:

To reset the root user password in the vCenter
Boot the virtual appliance and navigate to the console for the virtual machine in the vSphere Client.
Click in the console and press any key to display the GRUB menu.

Note: The GRUB prompt remains on screen for 7 seconds before it starts the boot sequence.

On the GRUB menu, select SUSE Linux Enterprise Server for VMware.
Type e to edit the line. A list of items in the GRUB configuration file appears.
Select the line that starts with kernel and type e to edit the line.
At the end of the line, press the spacebar and type init=/bin/sh.
Press Enter to exit edit mode.
On the GRUB screen, type b to boot into single-user mode.
The virtual appliance boots in single-user mode.
To change the root user password, type passwd root and follow the on-screen prompts.
To restart the virtual appliance, type reboot and press Enter.
When the virtual appliance restarts, you can log in using the new password.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Matthew HinchliffeIT EngineerAuthor Commented:
Yes Andrew, we have lost the access to vCenter Server.  I have been able to use the vSphere client to connect to each ESXi hosts and have now got access to the console of the vCenter Server so hopefully will be able to reset from there.

The vCenter server is currently a virtual machine, does it have to be or can it be physical, in case we need to access it again in future ?  Just trying to get some best practice advice as there seems to have been quite a lot left to chance !!

As far as I know we only have one user set up, the root user.  But once we get past this issue I will be creating some more.

The version we have is vCenter Server Appliance Build 2442330

Thanks again
Matthew HinchliffeIT EngineerAuthor Commented:
Thanks for that Kulboy

I've got access to the machine that the server appliance is running on so I'll try following your guide now and hopefully that will sort us out :)
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
vCenter Server is just a management server, if it's down or unavailable it will not affect the running machines.

were you using the root username to connect to vCenter Server ?

from the client ?
Matthew HinchliffeIT EngineerAuthor Commented:
Hi Guys

Thanks for all your help with this,  we've managed to get the root password reset and we have created a couple of alternative accounts as well just in case.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.