It was time to upgrade to vCenter 6.7 U1 in my lab but when running the RUN PRE-UPDATE CHECKS it warned me about my root password being expired… Although I was still able to log in as root without any warning. Also, I was unable to change the root password via any GUI method. It just would not accept my new password.
So it was time to get out the big guns and “bash” this issue out of existence. Just follow this guide and you will get it done and up and running again to upgrade.
To reset the root password in vCenter Server Appliance 6.5 and 6.7:
- Take a snapshot or backup of the vCenter Server Appliance before proceeding. Do not skip this step.
- Reboot the vCenter Server Appliance.
- After the OS starts, press e key to enter the GNU GRUB Edit Menu.
- Locate the line that begins with the word Linux.
- Append these entries to the end of the line:rw init=/bin/bashThe line should look like the following screenshot:
6. Press F10 to continue booting.
7. In the Command prompt, enter the command passwd and provide a new root password (twice for confirmation)
8. Confirm that you can access the vCenter Server Appliance using the new root password.
9. Remove the snapshot taken in Step 1 if applicable or remove it after the upgrade.
Now all checks passed and ready to update.