How Reset vmware vcenter Appliance root and SSO Admin Password

Following blog is to share quick steps to reset the Vcenter Appliance password , you can Reset password without old password .

Reset Appliance Root password :-

  • Access Vcenter Appliance Console from Host ESXI Webconsole
  • Take a Appliance Snapshot for backup purpose
  • Reboot the vCenter Server Appliance
  • After the VCSA Photon OS starts, press e key to enter the GNU GRUB Edit Menu.
  • Locate the line that begins with the word Linux.
  • Append these entries to the end of the line:

    rw init=/bin/bash

    The line should look like the following screenshot:  ( No need to Double ..  as shown in screen shot )

photo.JPG

 

  • Press F10 to continue booting.
  • Run the command

mount -o remount,rw / 

  • In the Command prompt, enter the command passwd and provide a new root password (twice for confirmation):
      passwd
  • Unmount the filesystem by running this command (yes, the unmount command is umount  –  it’s not a spelling error):

umount /

    reboot -f

  • Press F10 to continue booting.
  • Run the command
      mount -o remount,rw / 
  • In the Command prompt, enter the command passwd and provide a new root password (twice for confirmation):
passwd
  • Unmount the filesystem by running this command (yes, the unmount command is umount  –  it’s not a spelling error):
umount /
  1. Reboot the vCenter Server Appliance by running this command:
reboot -f
———————————————————————————————–
reset SSO admin Password (administrator@vsphere.local)
Enable SSH For Vcenter Appliance , you can enable from Appliance management page https:// appliance-IP-address-or-FQDN :5480
SSH to Vcenter Appliance

Command> shell
Shell access is granted to root
root@TEC01 [ ~ ]# /usr/lib/vmware-vmdir/bin/vdcadmintool
==================
Please select:
0. exit
1. Test LDAP connectivity
2. Force start replication cycle
3. Reset account password
4. Set log level and mask
5. Set vmdir state
6. Get vmdir state
7. Get vmdir log level and mask
==================

3
Please enter account UPN : administrator@vsphere.local
New password is –
5&jSw/ugarCVf’,Gwum)      –> New password , Copy and try to login
==================
Please select:
0. exit
1. Test LDAP connectivity
2. Force start replication cycle
3. Reset account password
4. Set log level and mask
5. Set vmdir state
6. Get vmdir state
7. Get vmdir log level and mask
==================

exit
Thanks !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s