After resetting the admin password on an NSX Manager node using the following commands:
1.SSH into the NSX Manager node as the root user.
2.Use the 'su admin' command to access the NSX admin command line without requiring a password.
3.Reset the admin password using the below command:
nsx-mgr> set user admin password
or reset admin password as root user using the below command:
root@nsx-mgr:/# passwd admin
When attempting to log in to the NSX Manager UI after the password reset, you may encounter the following error message:
"Your login attempt was not successful. The username/password combination is incorrect, or the account specified has been locked."
VMware NSX
Incorrect procedure performed for password reset.
In order for the password change to take effect a reset_cluster_credentials file needs to be created as per the documented process.
Resetting the Passwords of an Appliance
Workaround
Documented process for resetting of passwords needs to be followed as per Resetting the Passwords of an Appliance
The same steps are provided below:
1.Log in to the NSX VIP using SSH as the root user. (Has to be VIP for it to propagate changes properly)
2.Stop the NSX Manager API service
Run the following command to stop the NSX Manager API service:
/etc/init.d/nsx-mp-api-server stop
3.Reset the admin password as you would on any standard Linux system as root:
root@nsx-mgr:/# passwd admin
or as admin run the below command to change the password: (For Guest Users and additionally created users you need to use passwd command as the below command will not work).
nsx-mgr> set user admin password
4.Create the reset_cluster_credentials file to trigger the necessary configuration update:
touch /var/vmware/nsx/reset_cluster_credentials
5.Restart the NSX Manager API service to apply the changes:
/etc/init.d/nsx-mp-api-server start
After completing these steps, attempt to log in to the NSX Manager UI again. The login should now be successful.
If they don't know the root password, they can reset it via the GRUB:
NSX@VM!WaR10.linux and add systemd.wants=PasswordRecovery.service to the end of the line.Ctrl-X to boot.