How to Reset Lost or Forgotten Root Password in vCenter Appliance

Reset Lost or Forgotten Root Password

In this blog, I am going to reset the root password, if we have lost or forgotten the existing root password for a vCenter Appliance 6.7 the one I have installed in VMware Workstation.

Indication:

The root account password of VMware vCenter Appliance fails.
The root account of the VMware vCenter Appliance 6.7 is locked or the account is expired.

Note: This guide is definite for the VMware vCenter Appliance 6.5 and 6.7 and will not work for earlier versions. It is your own risk and always back up the appliance before effecting any changes.

Step by step guide to Reset the Root Password in VCSA 6.7.

How to reset the lost forgotten root password in VMware vCenter Appliance 6.7
First, we need to take a snapshot or backup of our VMware vCenter Appliance, Please do not ignore this step.
Reboot the VMware vCenter Server Appliance 6.7
1- Select your VCSA, Select the Power option, and select Restart Guest.

vcsa customize system
VMware vCenter appliance

2- After rebooting the VCSA Photon OS, press the e key to enter the GNU GRUB Edit Menu.

photon version 1
Photon version 1.0

Find the line that opens with the word Linux.
3- Type the below entries to the end of the line after pressing space.

rw init=/bin/bash

Press F10 to reboot.

gnu grub version
Setting the boot options in GRUB

4- In the Command prompt, type passwd to change the root password.

passwd
Type a new root password and Type it twice and press Enter to confirm. You will see the password successfully updated.
5- You can unmount the file system by typing umount
umount

starting switch root

Changing the root password & unmounting the file system

1- Select your VCSA, Select the Power option and select Restart Guest.

restart guest
Rebooting the appliance

2- Rebooting the appliance.

starting switch root
Starting switch root

3- Open a browser and type the FQDN address of the VCSA followed by port 5480 (for example – https://VCSA.xpertstec.local:5480) and press enter. Ensure that you can access the “vCenter Server Appliance” using the new root password.

vmware appliance management
VMware Appliance Management

4- Successfully logged.

vsphere client
VMware vSphere Client

Please remove the snapshot taken in Step 1 if applicable.

For more details please visit VMware

Comments

Leave a Reply