Skip to content
  • vSphere
    • VyOS Virtual Router
    • vSphere 7.0
  • vCloud Foundation
    • vCloud Foundation 4.0
    • vCloud Foundation 4.2.1
    • vCloud Foundation 5.0
    • VMware vCloud Foundation 9
  • NSX-T
    • NSX 4.0
    • NSX-T 3.0
    • NSX-T 3.1
  • vRealize Suite
    • vRLCM 8.1
    • vRA 8.1
  • Lab-as-a-Service (LaaS)
  • VPS Server
  • Dedicated Server Rental
  • Contact

Welcome to VirtualRove.COM

All you need you need to know about Software-Defined Datacenter

root account locked out

Reset locked root account password on vCenter

August 23, 2021October 6, 2021Roshan ChavanLeave a comment

Here is a small writeup on resetting the root account password for vCenter / Cloud Builder VM.

I was deploying VCF enf and the root account for Cloud Builder account got locked out. So thought of writing a small blog on it. You can find my VCF posts here. https://virtualrove.com/vcf/

Let’s get started.

Reboot the “Cloud Builder” VM / vCenter and press the ‘e’ key to enter the GNU GRUB Edit Menu.
Locate the 3rd row which starts with ‘linux’ at the beginning.

Write following at the end of the line and press F10

rw init=/bin/bash

You will get to command line after this. Run following commands.

mount -o remount,rw /                                 ::: To mount the root partition
passwd                                                          ::: To enter new password, then re-type new password.
/sbin/pam_tally2 –user=root –reset       ::: To unlock the locked root account. Run this twice.
umount /                                                        ::: To unmount the partition
reboot -f                                                         ::: Reboot the VM

Thats it. You should be able to get in with the new password for root account after the reboot.
Short & Simple. 😊

Are you looking out for a lab to practice VMware products..? If yes, then click here to know more about our Lab-as-a-Service (LaaS).

Leave your email address in box below to receive notification on my new blogs.

    vSphere 7.0reset vcenter password, root account locked out

    Blog Posts

    Blog at WordPress.com.
    • Subscribe Subscribed
      • Welcome to VirtualRove.COM
      • Join 87 other subscribers
      • Already have a WordPress.com account? Log in now.
      • Welcome to VirtualRove.COM
      • Subscribe Subscribed
      • Sign up
      • Log in
      • Report this content
      • View site in Reader
      • Manage subscriptions
      • Collapse this bar
     

    Loading Comments...