1、创建虚拟机
在这里插入图片描述
2、安装Linux操作系统
使用dhcp获取ip地址:dhclient
查看ip地址:ip a
破解密码:
1、重启虚拟机
2、在linux16末尾加上 rd.break,ctrl+x执行
如果在RHEL系统上或者在RHCSA考试环境下操作时,建议在rd.break后加⼊console=tty0
以上仅为在虚拟机或者考试环境中才添加,在物理机或⽣产环境中不需要
3、mount -o remount,rw /sysroot
4、chroot /sysroot
5、passwd root
6、输入新密码:
7、确认密码
8、touch /.autorelabel
9、exit