If you have forgotten the root, admin, or audit user's password, you can reset it by booting the appliance into single-user mode.
When you reboot an appliance, the GRUB boot menu does not appear by default. The following procedure requires that you have configured the appliance to display the GRUB boot menu. For more information, see "Configure NSX-T Data Center to Display the GRUB Menu at Boot Time" in the NSX-T Data Center Installation Guide.
- Connect to the console of the appliance.
- Reboot the system.
- When the GRUB boot menu appears, press the left SHIFT or ESC key quickly. If you wait too long and the boot sequence does not pause, you must reboot the system again.
- Press e to edit the menu.
Enter the user name ( root) and password.
- Keep the cursor on the Ubuntu selection.
- Press e to edit the selected option.
- Search for the line starting with
- Remove all options after
- Add the following option.
rw single init=/bin/bash
- Press Ctrl-X to boot.
- When the log messages stop, press Enter.
You will see the prompt root@(none):/#.
- If you are resetting the password for root, run the command passwd.
If you are resetting the password for admin or audit, run the command passwd <admin or audit user ID>.
You can run the passwd command multiple times.
- Enter a new password.
- Enter the password again.
- If you are resetting the password on an NSX Manager, run the following commands and skip the next 2 steps.
mount /dev/sda2 /mnt/ for a in dev sys proc do mount --bind /$a /mnt/$a done chroot /mnt /bin/bash mount /config touch /config/vmware/nsx-node-api/reset_cluster_credentials umount /config umount /mnt/dev umount /mnt/sys umount /mnt/proc umount /mnt/ exit reboot
- Run the command sync.
- Run the command reboot -f.