Solved

To Reset  root password for Esxi 5.1

Posted on 2014-03-31
8
1,055 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 15

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
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 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) 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
 
LVL 1

Author Comment

by:patron
ID: 40031227
Thanks,ll try for this
0
 
LVL 119
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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error upgrading from esxi 5.5 to 6.5 15 226
Migrate VM to other host 12 60
vCenter upgrade from 5.5 to 6.5 7 105
why does expanding the disk on a VDP appliance cause problem 9 37
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.
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
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:
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

820 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