Backup & Recovery

  • 1.  password of vcenter appliance

    Posted May 18, 2024 04:35 AM

    Good day,

    I just Clone as VM for a vcenter appliance. Could you guide the passwod for the new clone password?

    Brgds

    Liu Wei



  • 2.  RE: password of vcenter appliance

    Posted May 19, 2024 04:21 AM

    Hi Liu, 

    We need more context. Are you trying to recover the password to the vCSA (root) or is the GRUB menu locked and you can't get in to change it? It shouldn't be changed from what it was previously. 




  • 3.  RE: password of vcenter appliance

    Posted May 20, 2024 12:02 PM
    Edited by lwsamcn01 May 20, 2024 12:53 PM

    Good day, Redhatcc,

    The version is 6.7.  From the guide reset the password could be done frrom sso log in menu.

    I saw root right menu all greyed. VAMI also has not root change password option.

    In this case, I shall do changing password from ssh by putty or from GRUM menu?

    Brgds

    Liu Wei




  • 4.  RE: password of vcenter appliance
    Best Answer

    Posted May 21, 2024 03:08 AM

    Try changing it on boot. This method works all the way up to 7.0.3 but I have not tested on 8.x

    1. Take a snapshot or backup of the vCenter Server Appliance before proceeding.
                           Caution: Do not skip this step

    Note: If the vCenter Appliance is on the same ESXi hosts it manages, connect directly to the ESXi host that it is located on to perform these steps. If not, I would highly recommend moving the vCenter to a host you can login too, and open a console on to run these commands. 

    1. Reboot the vCenter Server Appliance.
    2. After the VCSA Photon OS starts, press the e key to enter the GNU GRUB Edit Menu.
    3. Locate the line that begins with the word Linux.
    4. Append these entries to the end of the line:

      rw init=/bin/bash

      The line should look like the following screenshot:

      Reset root password in VCSA - rw init=/bin/bash
       
    5. Press F10 to continue booting.
    6. Run the command  
                      mount -o remount,rw / 
    1. Unlock the 'root' account using below command if it is already locked due to multiple logins with incorrect password
                      pam_tally2 --user=root --reset

    1. In the Command prompt, enter the command passwd and provide a new root password (twice for confirmation):
               passwd

     

    1. Unmount the filesystem by running this command (yes, the unmount command is umount  -  it's not a spelling error):
               umount /

     

    1. Reboot the vCenter Server Appliance by running this command:
               reboot -f

     

    Please reply and let us know if that worked. Don't skip a step!



    ------------------------------
    Love for Virtual Infrastructure!

    If my post helped, please click the thumbs up or mark as solved. I can't promise my solutions will work, but I will promise to do my best!

    VCP-DCV 8.x | VCP-DCV 6.x | CompTIA A+, Net+, Sec+, Proj+ | MCSE | MCSA | MCITP |
    ------------------------------