It happens with everyone that we unfortunately forget the passwords and it is very difficult to build everything from scratch. vCSA is built on photon OS it’s not the same procedure as we reset password on other Linux flavors. In this blog I will explain how to reset the root password of vCenter Server Appliance.
Reset vCSA root Password
Before resetting the password first will shutdown the appliance and take snapshot, so that we can revert anytime if any unexpected situation during.
Reboot the vCenter Server Appliance and monitor vCSA console by login ESXi Web UI.
After the OS starts, press e key to enter the GNU GRUB Edit Menu
Locate the line that begins with the word Linux and append these entries to the end of the line
After appending the console will look like below
Press F10 to continue booting, The Appliance will continue to boot and give a # prompt like below
Run the below command to mount the / mount point in read/write mode.
#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:
Reboot the vCenter Server Appliance by running this command:
Confirm that you can access the vCenter Server Appliance using the new root password and remove the snapshot taken if everything is working as expected. For more details please refer below VMware KB
If you have any comments, please drop me a line
Be First to Comment
You must log in to post a comment.