I ran into an issue today where I forget the root password for root account. The great thing was that I had a secondary account on the virtual box. The secondary account did not have UID 0 privileges. Below are the commands used to reset the root password:
$ sudo passwd root
$ Enter Unix new password: toor
$ Retype Unix new password: toor