I recently forgot to label one of my virtual machines which had CentOS 7 on it. When i imported and started the virtual machines i realized i had forgotten the password.
I found this video useful in order to reset the password. It worked for me.
On launch press "E"
At the end of the file type in "rd.break" then press ctrl-x to restart
mount -o remount,rw /sysroot
chroot /sysroot
passwd
"enter new password"
"re-type new password"
That's it!
SOURCE:
I found this video useful in order to reset the password. It worked for me.
On launch press "E"
At the end of the file type in "rd.break" then press ctrl-x to restart
mount -o remount,rw /sysroot
chroot /sysroot
passwd
"enter new password"
"re-type new password"
That's it!
SOURCE: