创建虚拟机
在安装VMware后并运行,点击创建新的虚拟机进入向导:
选择与VMware版本相符的虚拟机硬盘兼容性点击下一步:
在选项中选择稍后安装操作系统:
客户操作系统选择Linux ,版本选择Linux7 64位:
自行修改虚拟机名称,选择安装路径:
选择处理器数量(不能超过物理机实际数量):
为虚拟机划分内存(8G内存物理机建议划分2G):
选择虚拟机网络类型:
选择I/O控制器类型(建议推荐):
选择磁盘接口类型(建议推荐类型):
选择磁盘类型:
给虚拟磁盘划分大小:
虚拟磁盘文件夹命名:
虚拟机创建完成:
安装Linux操作系统:
在创建号虚拟机后即可安装Linux操作系统:
选择编辑虚拟机设置:
其中选择CD/DVD印象文件,上边勾选启动时连接:
启动虚拟机选择安装Linux7.2:
选择接下来安装的语言(不建议中文,易出乱码):
选择虚拟机的时区及设置时间:
选择安装虚拟机时安装图形用户界面:
选择我自己划分磁盘:
选择标准磁盘划分,并添加/、/boot、swap三个盘:
设置管理员密码:
设置用户名、密码:
安装完成:
破解密码
破解密码
1.Reboot the system.
2.Interrupt the boot loader count down by pressing anykey.
3.Move the cursor to the entry that needs to be booted.
4.Press “e” to edit the select edentry.
5.Move the cursor to the kernel command line(the line that start swith linux16.
6.Append rd.break
7.Press Ctrl+x to start.
8.Remount /sysroot as read-write.
switch_root:/# mount -o remount,rw /sysroot
9.Switch into a chroot jail, where /sysroot is treated as the root of the filesystem tree
switch_root:/# chroot /sysroot
10.Set a new root password:
sh-4.2# passwd [root] (change the root password)
or
sh-4.2# passwd -d root (delete the root password)
11.Make sure that all unlabeled files (including/etc/shadow at this point)get relabeled during boot.
sh-4.2# touch /.autorelabel
12.sh-4.2# exit
13.switch_root:/# exit
破解root密码:
1、重启虚拟机
2、在linux16末尾加上 rd.break,ctrl+x执行