How to Reset an Expired Root Password for VMware vCenter

Share this post on:
  1. Access the vCenter VM:
  • Log in to the ESXi host and access the vCenter VM console.
  1. Reboot the vCenter VM:
  • Restart the VM.
  • When the Photon OS logo appears, press e to edit the boot parameters.

  1. Modify the Boot Parameters:
  • Locate the line that includes consoleblank=0 or the end of test line
  • Add the following command immediately after it:  (add on the red line)
rw init=/bin/bash

  1. Boot into Single-User Mode:
  • Press F10 to continue booting.
  1. Reset the Root Password:
  • Run the following commands in sequence:

 

mount -o remount,rw /       # Remount the filesystem as read-write
passwd                      # Reset the root password
mount -o remount,ro /       # Remount the filesystem as read-only
reboot                      # Reboot the system

 

  1. Complete the Process:
  • Log in to the vCenter VM with the new root password.

Loading