In today’s post, we will be looking at how to reset root password on VCSA 6.5. I have a couple of lab environment setup for testing purposes.

I usually have same passwords for all my testing environment and apparently I was unable to log into one of my VCSA appliances.

Hence, I just decided to reset root password on VCSA 6.5. Now the method used for VCSA 6.0 would not work for VCSA 6.5 since the new appliance runs on VMware’s Photon OS.

I stumbled upon a KB article which outlines the steps which I thought I could share with my readers and also I can always come back and look here for myself.

The first step is to take a snapshot of the appliance or backup the appliance using a backup tool. This step is strongly recommended by VMware.

Reboot the VCSA 6.5 appliance. Immediately after the reboot when the OS starts, choose the letter ‘e’ enter the GNU GRUB Edit Menu.

Check for the line starting with Linux and append the following:

rw init=/bin/bash

Now, press F10 to continue the boot process.

You will now be presented with the command prompt, type passwd and enter the password of your choice twice. This is going to be the new password for the root account on the VCSA 6.5.

In the next step, we will be unmounting the filesystem by running the below command.

umount /

You are now safe to reboot the VCSA 6.5 appliance by typing the following command.

reboot -f

Once the appliance completes reboot, you should now be able to login to the VCSA 6.5 using the new root password.

I hope this has been informative and thank you for reading!

Reference: KB article 2147144