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 )
- 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):
- 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
- In the Command prompt, enter the command passwd and provide a new root password (twice for confirmation):
- Unmount the filesystem by running this command (yes, the unmount command is umount – it’s not a spelling error):
- Reboot the vCenter Server Appliance by running this command:
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
==================