Skip to content
  • vSphere
    • VyOS Virtual Router
    • vSphere 7.0
  • vCloud Foundation
    • vCloud Foundation 4.0
    • vCloud Foundation 4.2.1
  • NSX
    • NSX 4.0
  • NSX-T
    • NSX-T 3.0
    • NSX-T 3.1
  • vRealize Suite
    • vRLCM 8.1
    • vRA 8.1
  • Lab-as-a-Service (LaaS)
  • Contact
  • About Me

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

    • NSX 4.0 (5)
    • NSX-T 3.0 (14)
    • NSX-T 3.1 (4)
    • Uncategorized (1)
    • vCloud Foundation 4.0 (3)
    • vCloud Foundation 4.2.1 (3)
    • vRA 8.1 (7)
    • vRLCM 8.1 (3)
    • vSphere 7.0 (5)

    Archives

    • January 2023 (5)
    • February 2022 (1)
    • January 2022 (3)
    • November 2021 (1)
    • September 2021 (1)
    • August 2021 (5)
    • May 2021 (1)
    • March 2021 (1)
    • November 2020 (1)
    • August 2020 (2)
    • July 2020 (6)
    • June 2020 (9)
    • May 2020 (8)
    • April 2020 (1)
    Blog at WordPress.com.
    • Follow Following
      • Welcome to VirtualRove.com
      • Join 72 other followers
      • Already have a WordPress.com account? Log in now.
      • Welcome to VirtualRove.com
      • Customize
      • Follow Following
      • Sign up
      • Log in
      • Report this content
      • View site in Reader
      • Manage subscriptions
      • Collapse this bar
     

    Loading Comments...