Solved

To Reset  root password for Esxi 5.1

Posted on 2014-03-31
8
1,042 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
Teach the user how to install vSphere Update Manager  Console to Windows system:  Install vSphere Update Manager: Configure vSphere Update Manager plug-in in vSphere Client: Verify vSphere Update Manager settings in vSphere Client:
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

919 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

12 Experts available now in Live!

Get 1:1 Help Now