Resetting Root Account Password Of VCenter Server Appliance 6.0

avaya-logo Skip to content. Home Administration Alerts APS Docs FAQ Glossary IT News Process Product Support Notice Solutions Training Video
PODFX/ASP: Resetting root account password of vCenter Server Appliance 6.0
Doc ID SOLN370877
Version: 1.0
Status: Published
Published date: 10 Jun 2022
Author:
bbibin

Details

Pod Fx running software 3.0.2,3.1 vCenter Server running software 6.0

Problem Clarification

The following symptoms might observed when user unable to access the vCenter with the username "root" & [email protected] .

Logging in to the root account of VMware vCenter Server Appliance fails.

The root account of the vCenter Server Appliance 6.0 is locked.

Cause

This issue occurs when the local account password expires. Note: In vCenter Server Appliance 6.0, the local account password expires after 90 days by default.

Solution

Note: If the root account is not accessible through the console like secure shell and the Virtual Appliance Management Interface (VAMI) (vCenter Server Appliance 6.0 Update 1) then that indicates that the root account is inactivated due to password expiration.

Reactivate Account and Modify Kernel option in GRUB:

  1. Reboot the vCenter Server appliance using the vSphere Client.
  2. When the GRUB bootloader appears, press the spacebar to disable autoboot. Note: After powering on, the virtual machines takes only a short time to exits the BIOS/EFI and to launch the guest operating system. You can adjust the boot delay or force the virtual machine to enter BIOS or EFI setup screen after power on. For more information, see the Delay the Boot Sequence in the vSphere Client section in the VMware vSphere 5.5 Single Host Management Guide.
  3. Type p to access the appliance boot options.
  4. Enter the GRUB password. Note:
    • If the vCenter Server appliance is deployed without editing the root password in the Virtual Appliance Management Interface (VAMI), the default GRUB password is vmware.
    • If the vCenter Server appliance root password is reset using the VAMI, 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. Modifying the GRUB boot loader to start root password reset process
  6. Scroll to the second line displaying the kernel boot parameters. Scroll to the second line displaying the kernel boot parameters
  7. Type e to edit the boot command.
  8. Append init=/bin/bash to the kernel boot options. Append init=/bin/bash to the kernel boot options
  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 reboot command. Note: If you cannot restart the appliance by running reboot command, then run these commands: mkfifo /dev/initctl reboot -f
  1. In order to prevent this issue from happening again in the future, you could set the root password to never expire at the VAMI page or by running this command: chage -I -1 -m 0 -M 99999 -E -1 root
  2. Verify the root account password expiry settings have been changed using the following command: chage -l root
Important: To prevent future root account lock out and retain password expiration functionality, see How to prevent forced lockout when the root account is still active (2147043). Note: If the root account is locked for long time, it might be due to no space in / because of growth in message log, or audit log. Both messages log and audit log can be safely deleted and VCSA rebooted to clear the space needed for password reset. Message log: /var/log/messages Audit log: /var/log/audit/audit.log Avaya -- Proprietary. Use pursuant to the terms of your signed agreement or Avaya policy
  • About Avaya
  • Contacts
  • Careers
  • Site Map
  • Terms of Use
  • Privacy Statement
  • © 2025 Avaya LLC

Tag » How To Reboot Vcenter Server