Only 3 steps 🙂
1. You can then use your installation media and boot into recovery mode.
2. Look for mountpoint where for your hard disk e.g. /mnt/sysimages/img1
3. Then run the following command
chroot /mnt/sysimages/img1 passwd root
Where /mnt/sysimages/img1 is the path you identified earlier.
This would prompt you to enter new password.