Microsoft

How to reset root password of vCenter Server 6.5 – VCSA

There might a situation when you can’t login into a vCenter system anymore because you either don’t know the root password anymore or the system is not able to log you in.The can happen if the root mountpoint of the VCSA 6.5 appliance filled up or forgotten the root password .

New VCSA (vCenter Server Appliance) 6.5 is build on top of Photon OS and this will not allow you to change the password by using the same standard procedure you know from Debian, Ubuntu or RedHat.

In such cases ,  Follow below procedure to reset the password
  • Restart your vCenter appliance and wait for the Photon OS Splash screen during boot.

  • Once booted hit the letter e to enter the boot menu.
  • Change to the GNU GRUB boot menu editor and hit enter.

  • Add the following string behind the line that starts with linux: rw init=/bin/bash

  • Hit the F10 function key to boot the changed entry.

How to clean up the root partition

Check the root partition usage, using the df -h command. Very often the log files grew large and filled up your partition.

check the usage of  audit.log in /var/log/audit by follwoing commad

ls -sh /var/log/audit

To remove the file follow this

rm /var/log/audit/*.log to clean it up.

How to reset the root password

Please follow these steps:

passwd 

Enter a strong password twice and make sure you will remember same for future

umount /

reboot -f

Rajesh Radhakrishnan

Share
Published by
Rajesh Radhakrishnan

Recent Posts

NAKIVO Backup & Replication v10.8 Released With New Features

Nakivo has released its new Backup and Replication solution Nakivo v10.8, which includes support for…

2 years ago

Oracle Cloud VMware Solution and Features

Oracle Cloud VMware Solution (OCVS) provides a customer-managed, native VMware-based cloud environment hosted in Oracle…

2 years ago

Vinchin Backup and Recovery Review

Vinchin is a professional provider of data protection solutions for enterprises. It provides a series…

2 years ago

VMware Cloud Disaster Recovery (VCDR) Solution Deployment And Configuration Part 2

In my previous blog post, I have explained about VMware Cloud Disaster Recovery (VCDR) Onboarding and…

2 years ago

How to Deploy vRNI Cloud With VMC on AWS

vRealize Network Insight helps you build an optimized, highly available, and secure network infrastructure across…

2 years ago

This SysAdmin Day, WIN with Hornetsecurity!

Can you believe it's here again? SysAdmin Day is back, and with it comes endless gratitude…

2 years ago