Views:
Reboot Service Gateway at ESXi/Hyper-V console

During boot you'll see an operating system selection screen. If not, try pressing the left arrow key(←) during the start. Press e within 5s to enter edit mode:

 
Note: If you missed the screen, go ahead and reboot your server again.

The edit mode looks like following:

 
Once you are in edit mode, add rd.break enforcing=0 at the end of the line starting with linux16 as shown:
 
Then press Ctrl-x to start the system.
 

Reset Password

You will boot into a special shell, in which the switch_root prompt will appear.


Remount the read-only file system /sysroot in write mode by running the following command:

mount -o remount,rw /sysroot
Then enter the remounted system:
chroot /sysroot
Finally change the password of admin:
passwd admin

As the picture shows:

Then you're done with it. exit twice to return to normal boot.

Note that you'll be asked to change again on first login since the password was resetted.