You must configure an NSX appliance to display the GRUB menu at boot time if you want to reset the root password of the appliance.
Starting with NSX 4.0.1.1, you can use CLI or API commands to set the GRUB timeout value and password. You can follow these commands post deployment of NSX.
Important: If the configuration is not performed after deploying the appliance and you forget the root password, resetting it is not possible.