Site icon UnixArena

VMware vSphere – How to break VCSA 6.5/6.7 root password ?

How to recover the lost vCenter Server Appliance(VCSA 6.5 & above) root password? The vCenter Server Appliance is a preconfigured Linux virtual machine.  vSphere 6.7 U1 is the last release to include vCenter Server for Windows, which has been deprecated. vCenter Server Appliance is a very simple vCenter platform compares to the windows-based vC. Since vCenter server appliance runs on VMware photon OS, password recovery is almost similar to Linux server. This article will demonstrate how to break the VCSA 6.5/6.7 root password.

 

1.  VCSA 6.5 appliance will be a virtual machine on vCenter.  Just reboot the VCSA 6.5 appliance and interrupt the boot by pressing escape.

vCenter Server Appliance Version 6.5

 

2. Once the VCSA appliance is booting, you could see the boot screen like below. Press Escape key & Press “e” to edit the GRUB menu.

vCenter Server Appliance – Boot Screen

 

3. Navigate to the line which starts from “linux“. At the end of that line, append “rw init=/bin/bash”  and press control + X or F10 to boot with those arguments.

Add bash shell using rw flag – VCSA 6.5 Grub

 

4.  The system will be dropped in the root shell as shown in the following screenshot.

VCSA 6.5 – Emergency mode – root shell

 

5. Remount the root filesystem in read/write mode.

# mount -o remount,rw /

 

6. Reset the root account password.

Reset root account password

 

7. Umount the root filesystem.

# umount /

 

8. Reboot VCSA using -f flag to reboot it forcefully.

# reboot -f

 

9. Once the VCSA is booted normally, you can login using the newly set password.

Logged in Successfully – VCSA 6.5 – Break root Password

 

10. You could also test by logging in to VCSA 6.5 Management portal.  (http://VCSA:5480)

VCSA 6.5 – Appliance Management

 

11. Here is the successful login.

Logged in to VCSA 6.5 – Appliance Management

 

Hope this article is informative to you.

Exit mobile version