Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124

When your VMware vCenter Server Appliance (VCSA) root password expires, it can disrupt your entire virtual infrastructure management. This comprehensive guide walks you through the proven methods to reset VMware vCenter root password after expiration, ensuring minimal downtime for your environment.
VMware vCenter Server Appliance enforces password expiration policies by default. The root account password typically expires after 90 days, which can lock administrators out of critical system functions. When this happens, you’ll need to access the appliance through alternative methods to reset the credentials.
Before attempting to reset VMware vCenter root password after expiration, verify you’re experiencing these issues:
Before proceeding with the password reset procedure, ensure you have:
This method is the most reliable approach to reset VMware vCenter root password after expiration for modern VCSA versions.
Step 1: Access the VCSA Console
Open the virtual machine console through your ESXi host client or vSphere web interface. You’ll need direct access to the boot screen.
Step 2: Reboot into GRUB Menu
Restart the VCSA appliance and press the ‘e’ key when the Photon OS boot menu appears. This must be done quickly during the boot sequence.
Step 3: Modify Boot Parameters
Locate the line beginning with “linux” that contains the kernel boot parameters. Navigate to the end of this line and append:
rw init=/bin/bash
Press F10 or Ctrl+X to boot with these modified parameters.
Step 4: Remount Filesystem
Once the bash prompt appears, remount the root filesystem with read-write permissions:
mount -o remount,rw /
Step 5: Reset the Root Password
Execute the passwd command to reset VMware vCenter root password after expiration:
passwd root
Enter your new password twice when prompted. Ensure it meets VMware’s complexity requirements: minimum 8 characters, including uppercase, lowercase, numbers, and special characters.
Step 6: Update Password Expiration
To prevent immediate re-expiration, modify the password aging policy:
chage -M 99999 root
This sets the maximum password age to approximately 274 years.
Step 7: Reboot Normally
Complete the process by rebooting the appliance:
reboot -f
For vCenter Server Appliance 6.5, the process differs slightly from newer versions.
Restart the VCSA and press ‘e’ at the boot menu. Find the kernel boot line and replace:
quiet
with:
rw init=/bin/bash
After booting, mount the filesystem and follow steps 4-7 from Method 1.
If you retain access to the vCenter Server Appliance Management Interface (VAMI) on port 5480, you can reset VMware vCenter root password after expiration through the GUI.
Navigate to https://vcenter-fqdn:5480 and login with an administrator account that hasn’t expired. Under the “Administration” section, select “Users” and modify the root account password directly.
This method requires that at least one administrator account remains valid and that the management interface is accessible.
After successfully resetting the password, implement these best practices:
Access the VCSA through SSH and review password expiration settings:
chage -l root
Adjust policies according to your organization’s security requirements while ensuring you won’t face unexpected lockouts.
Document the new password in your organization’s secure password management system. Update runbooks and disaster recovery procedures to reflect current credentials.
Configure vCenter to send email alerts before password expiration:
If you cannot interrupt the boot process quickly enough, adjust the GRUB timeout. Once you successfully boot, edit /boot/grub2/grub.cfg and increase the timeout value.
If the remount command fails, verify the disk integrity:
Troubleshooting Common Issues
Unable to Access GRUB Menu
If you cannot interrupt the boot process quickly enough, adjust the GRUB timeout. Once you successfully boot, edit /boot/grub2/grub.cfg and increase the timeout value.
Filesystem Remains Read-Only
If the remount command fails, verify the disk integrity:
This checks and repairs the root filesystem before attempting the remount.
VMware enforces strict password complexity requirements. Ensure your new password includes:
Set up monitoring alerts 30 days before password expiration using vCenter alarms or third-party monitoring tools. This provides adequate time for planned password changes.
Deploy infrastructure-as-code practices that automatically track and update password expiration dates. Tools like Ansible, PowerCLI, or Terraform can help manage credential lifecycles.
Establish a quarterly password rotation schedule for critical infrastructure accounts. This prevents emergency situations caused by unexpected expirations.
When performing password resets, maintain security best practices:
Knowing how to reset VMware vCenter root password after expiration is an essential skill for any VMware administrator. While password expiration serves important security purposes, being locked out of your vCenter appliance can cause significant operational disruptions.
The GRUB boot method provides the most reliable approach across VCSA versions 6.7, 7.0, and 8.0. By following the step-by-step instructions outlined in this guide and implementing proactive password management strategies, you can minimize downtime and maintain secure access to your virtual infrastructure.
Remember that prevention is always better than cure. Configure expiration notifications, document procedures thoroughly, and maintain regular password rotation schedules to avoid emergency reset situations.