vCenter 6.5
Forgotten root password reset:
1. Take a snapshot or backup of the vCenter Server Appliance before proceeding.
2. Reboot the vCenter Server Appliance
3. After the VCSA Photon OS starts, press e key to enter the GNU GRUB Edit Menu.
4. Locate the line that begins with the word Linux.
5. Append these entries to the end of the line:rw init=/bin/bash
6. Press F10 to continue booting.
7. Run the command:mount -o remount,rw / 8. In the Command prompt, enter the command passwd and provide a new root password (twice for confirmation):passwd
9. Unmount the filesystem by running this command:umount /
10. Reboot the vCenter Server Appliance by running this command:reboot -f
11. Confirm that you can access the vCenter Server Appliance using the new root password.
12. Remove the snapshot taken in Step 1.
Change vSphere Web (HTML5) Client Session Timeout for VCSA 6.5:
1. Open an SSH session on your VCSA
2. Enable shellshell.set --enabled True
shell
cd /etc/vmware/vsphere-ui/
vi webclient.properties
3. Navigate to “session.timeout = 120”. Where 120 is the default value in minutes.
4. Delete the default value and enter 0 to never log out the sessions. Or enter the desired value in minutes.
5. Stop and start the vSphere Web Client service:service-control --stop vsphere-ui
service-control --start vsphere-ui