To recover access to the root account, you must reset the password in Single User Mode on the VRM, SDDC Manager Controller or SDDC Manager Utility virtual machine.
To enter Single User Mode for VMware Cloud Foundation 2.1:
- Connect to vCenter Server via the vSphere Client.
- Right-click the affected VM and click Open Console.
- Under the VM menu, click Power > Shut Down Guest.
- When the shutdown completes, go to the VM menu > Power > Power On.
Note: The GRUB boot menu appears for a few seconds. If you miss it, reboot and try again.
- Use the up and down arrow keys to navigate to the first entry, and press e to edit the relevant boot parameters.
- Use the arrow keys to navigate to the line beginning with kernel and press e to edit.
- Append the following to the end of the line:
init=/bin/bash
Note: There should be a space between the end of the existing line and the appended entry.
- Press Enter to confirm the changes and the b key to continue booting for the VRM VM.
- Enter the following command to mount the / file system in read/write mode:
mount -o remount,rw
To enter Single User Mode for VMware Cloud Foundation 2.2 and beyond:
- Connect to vCenter Server via the vSphere Client.
- Right-click the affected VM and click Open Console.
- Under the VM menu, click Power > Shut Down Guest.
- When the shutdown completes, go to the VM menu > Power > Power On.
- When the Photon splash screen appears, press e to edit the relevant boot parameters.
- Use the arrow keys to navigate to the line beginning with linux and press e to edit.
- Append the following to the end of the line:
rw init=/bin/bash
Note: There should be a space between the end of the existing line and the appended entry.
- Press the F10 key to continue booting the VM.
- Enter the following command to mount the / file system in read/write mode:
mount -o remount,rw /
Set new passwords
When the VM has booted successfully to Single User Mode, you have root-level console access and you are able to set new passwords for accounts.
To set a new root password, run the command:
passwd root
Note: Follow normal built-in password policies. For example, do not use a password that has been used before.
Issue the umount / and reboot -f commands to reboot the affected virtual machine.
Note: It may take up to 10 minutes after rebooting the VRM or SDDC Manager Controller virtual machine before the SDDC Manager UI is available again.