This also works in vCenter Infrastructure Navigator
When you log into each of these appliances the first time, it requires you to change the password. What happens if you can’t remember what you set it as? How can you log in to change the users if you don’t know the password to do so?
I found myself in this very scenario recently and sought out to resolve this. After searching and searching I found this.
To reset the root user password in the vCenter Operations or Infrastructure Navigator virtual appliance console:
- Boot the virtual appliance and navigate to the console for the virtual machine in the vSphere Client.
- Click in the console and press any key to display the GRUB menu. Note: The GRUB prompt remains on screen for 7 seconds before it starts the boot sequence.
- On the GRUB menu, select SUSE Linux Enterprise Server for VMware.
- Type e to edit the line. A list of items in the GRUB configuration file appears.
- Select the line that starts with kernel and type e to edit the line.
- At the end of the line, press the spacebar and type init=/bin/sh.
- Press Enter to exit edit mode.
- On the GRUB screen, type b to boot into single-user mode. The virtual appliance boots in single-user mode.
- To change the root user password, type passwd root and follow the on-screen prompts.
- To restart the virtual appliance, type reboot and press Enter.
When the virtual appliance restarts, you can log in using the new password.