What is required:
- vCenter Appliance
- Redhat Enterprise Linux 7.2 or CENT OS 7.2 ISO
Mount bootable ISO to the VCSA
Select connect at power on
Change the boot loader priority to ISO
Boot the VM and select “Troubleshooting”
Select the rescue mode and press enter to continue.
Select “Continue” to mount the VCSA’s root file-system in Read/write mode under /mnt/sysimage. RHEL or CENT is capable to detecting the VCSA’s root volume and mounting it.
VCSA’s root file-system is mounted under /mnt/sysimage and you got the shell to play with this.
Navigate to /mnt/sysimage/boot directory and list the contents (cd /mnt/sysimage/boot/ and then ls -lrt).
Navigate to grub directory and list the contents. “menu.lst” is the file which holds the GRUB boot loader password.
Use “vi” editor to edit the menu.lst file. ( vi menu.lst).
Remove Password line from menu.lst (After that just save the file by pressing key sequence :wq).
Exit the shell by typing exit (YOU ARE DONE).