How to reset root password on vCenter Appliance 5.5?

By | September 23, 2015

Recently I have had to use my lab but unfortunately I forgot root password to vCenter Appliance 😀 However, fortunately, the vCenter Appliance is a Linux distribution, so it was not a difficult to change the root password.

To change the root password, please follow the steps:

  1. Reboot the vCSA using the vSphere Client.
  2. When the GRUB bootloader appears, press the spacebar to disable autoboot.Reset root password on vCenter Appliance 5.5
  3. Type p to access the appliance boot options.
  4. Enter the GRUB password.Reset root password on vCenter Appliance 5.5 - 2Note:
    • If the vCSA was deployed without editing the root password in the Virtual Appliance Management Interface (VAMI), the default GRUB password is vmware.
    • If the vCSA root password was reset using the VAMI, then the GRUB password is the password last set in the VAMI for the root account.
  5. Use the arrow keys to highlight VMware vCenter Server Appliance and type e to edit the boot commands.
  6. Scroll to the second line displaying the kernel boot parameters.Reset root password on vCenter Appliance 5.5 - 3
  7. Type e to edit the boot command.
  8. Append init=/bin/bash to the kernel boot options.Reset root password on vCenter Appliance 5.5 - 4
  9. Press Enter. The GRUB menu reappears.
  10. Type b to start the boot process. The system boots to a shell.
  11. Reset the root password by running the passwd root command.
  12. Restart the appliance by running the reboot command.

 

Note: Sometimes, your memory is good 😉 and you don't forget root password :D. The root password expires after 90 days by default...You can change this behavior by going to the admin site of vCenter appliance (https://IP_of_VC:5480/) and modifying settings configured in the Admin tab:Reset root password on vCenter Appliance 5.5 - 5

Update: This procedure is also valid for VCSA 6.x. If you do not remember the GRUB password, please follow a procedure how to reset the root password using a livecd Linux.

Author: Mariusz

Architect (~ 15 years experience based on passion...) with strong background as a System Administrator and Engineer. Focused on Data Center Solutions: Virtualization/Cloud Computing and Storage/Backup Systems. Currently living in Poland.