Today, newly installed a virtual machine, no root password, here I will teach you how to set the default initialization password
As shown in can be seen, at the beginning switch directly root user, you will be prompted to enter a password that can not be switched, do sudo passwd root can set the password for the root user.
Or in the case do not know the root password can switch directly to the root user can directly use sudo -s or sudo -i no password.