Straight to the point:
1, start the virtual machine, press and hold the ESC key during startup to enter Grub.
2, if the Chinese version, select Advanced, if it is English, select advaced, press ENTER, do not press E.
3, go to a new interface, select the Repair mode, the last side of the recovery mode, press E.
4, at this time also entered an interface, from the success is not far away. Choose to have the Linux kernel of the item, generally is the fourth line, followed by a RO recovery nomodeset, at this time, the reverse of the same quiet splash RW Init=/bin/bash Replace, note, instead of the same line, It's not behind Echo.
5, after replacing, press F10 to restart.
6, no accident, after the restart can be root identity without password login, at this time you can modify the password of any user name.
7, note: The above method is for grub is not set up a password, if grub set a password, it is another matter, the younger brother has not tried.
Virtual machine Ubuntu login password forgot solution