Solved

To Reset  root password for Esxi 5.1

Posted on 2014-03-31
8
1,029 Views
Last Modified: 2014-05-12
Somehow i missed my root password...

i have access to my local console and able to connect host using VC and VMA(vi-admin)

Please advice if there is any option to reset password ?

 and if not can we locate respective logs using VMA 5.1 to locate how/when password were changed/stored Or last Id accessed this server using  root.

i mean,have to locate if one has changed this password?
0
Comment
Question by:patron
  • 5
  • 2
8 Comments
 
LVL 14

Assisted Solution

by:Giovanni Heward
Giovanni Heward earned 250 total points
ID: 39968307
See Changing a forgotten root password on an ESX/ESXi host (1317898)

ESXi 3.5, ESXi 4.x, and ESXi 5.x
Reinstalling the ESXi host is the only supported way to reset a password on ESXi.  Any other method may lead to a host failure or an unsupported configuration due to the complex nature of the ESXi architecture. ESXi does not have a service console and as such traditional Linux methods of resetting a password, such as single-user mode do not apply.

If you don't like that answer, see https://www.youtube.com/watch?v=CoL43UBpVyI&feature=youtu.be or http://www.bock.nu/blog/reset-root-password-vmware-esxi-4.1

There is a root user, and a root group.  Members of the root group have the ability to reset passwords from the vSphere client for other local users.  So if you have an account with administrator role, you can do the following:
1) Create a new user, just to make sure you don't mess up existing account, we'll call it admin2.
2) Give admin2 Administrator role
3) add admin2 to the root group.  Do this from the Local Users and Groups tab, Click group button.  Double click root group and on that screen add admin2 to the root group.
4) Log out and log in as admin2.
5) Go back to local users and groups, Users button.  Right click root (User not group) and select change password.  Enter new password twice.
6) Click OK
After this, I was able to log in as root with the new password

It's working with ESXi5 U1 :) Saved my life !
0
 
LVL 1

Author Comment

by:patron
ID: 39968323
can we do something using VMA ..to fetch the logs or to reset password.
0
 
LVL 1

Author Comment

by:patron
ID: 39968534
Please advice if we can create user using VMA ? and can give root access somehow?
0
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 250 total points
ID: 39968605
VMA cannot reset the ESXi password.

If you can connect directly using the vSphere Client, you can change the password.

but if you can connect directly using the vSphere Client using the root account, you already know the password.

There is no supported method of changing a password on ESXi, other than a re-installation of ESXi.

but you can follow this article...

ESXi - Reset the password for root - VM-Help
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 1

Author Comment

by:patron
ID: 40031227
Thanks,ll try for this
0
 
LVL 118
ID: 40031331
no problems.
0
 
LVL 1

Author Closing Comment

by:patron
ID: 40031373
Thanks a Lot.
0
 
LVL 1

Author Comment

by:patron
ID: 40060928
Just an update i got one way to get the pwd changed, if ur host is added to vc and u lost root pwd,simply add it into AD then using vi clint login with ur domain id and change root pwd/simple quick and easiest way to reset pwd.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now