文章目录
- 1.Vmware-workstation安装软件
- 2.双击下载的安装包开始安装
- 3.打开VMware-workstation,输入密钥
- 4.Centos7.6安装软件
- 5.新建虚拟机
- 6.为虚拟机配置映像文件
- 7.开启虚拟机,配置环境
-
- [7.1 Install Centos 7](#7.1 Install Centos 7)
- [7.2 选择简体中文字体](#7.2 选择简体中文字体)
- [7.3 软件选择](#7.3 软件选择)
- [7.4 安装位置,进行手动分区](#7.4 安装位置,进行手动分区)
-
- [7.4.1 进入手动分区设置](#7.4.1 进入手动分区设置)
- [7.4.2 /boot 分区设置 - 1G](#7.4.2 /boot 分区设置 - 1G)
- [7.4.3 swap 交换分区设置 - 2G](#7.4.3 swap 交换分区设置 - 2G)
- [7.4.4 / 根分区设置 - 17G](#7.4.4 / 根分区设置 - 17G)
- [7.4.5 接受更改,完成设置](#7.4.5 接受更改,完成设置)
- [7.5 禁用Kdump](#7.5 禁用Kdump)
- [7.6 网络和主机名设置](#7.6 网络和主机名设置)
- [7.7 关闭安全策略](#7.7 关闭安全策略)
- [7.8 设置root密码](#7.8 设置root密码)
- [7.9 创建一个除root外的其他用户](#7.9 创建一个除root外的其他用户)
- [7.10 完成配置](#7.10 完成配置)
- 8.重启后接受许可证
- 9.完成配置,登录root用户
- [10.配置语言 - 汉语](#10.配置语言 - 汉语)
- 11.关闭隐私
- 12.跳过账号连接
- 13.查看网络是否连接
- 14.打开服务,虚拟机联网
1.Vmware-workstation安装软件
VMware 版本可能已经发生了变化,可能变成了 17 或者更高,但没关系,步骤是一样的(已实操过)。
🏠 网站下载地址:https://www.vmware.com/cn/products/workstation-pro/workstation-pro-evaluation.html

2.双击下载的安装包开始安装








耐心等待安装即可,在安装过程中电脑屏幕上可能会出现闪烁,是正常现象,不用管。

3.打开VMware-workstation,输入密钥

如果是 16 版本,套以下密钥:
- ZF3R0-FHED2-M80TY-8QYGC-NPKYF
- YF390-0HF8P-M81RQ-2DXQE-M2UT6
- ZF71R-DMX85-08DQY-8YMNC-PPHV8
如果是 17 版本,套以下密钥:
- MC60H-DWHD5-H80U9-6V85M-8280D
激活后打开应用的界面:

4.Centos7.6安装软件
官网下载地址:http://mirror.nsc.liu.se/centos-store/7.6.1810/isos/x86_64/
如果直接下载会很慢,建议使用迅雷
扩展,可以达到5-6MB/s左右。

下载完成以后将该文件拷贝到你的一个常用目录,我这里就放到了 D:\SoftwareEngineering\forVM 目录下:

5.新建虚拟机









6.为虚拟机配置映像文件


7.开启虚拟机,配置环境

7.1 Install Centos 7

然后通过上键,将光标移动到 Install Centos 7
的选项位置(在 Test this media & install CentOS 7
上方),光标所在行的字会变成白色,再回车即可。后面的黑屏直接回车即可。
7.2 选择简体中文字体

7.3 软件选择



7.4 安装位置,进行手动分区
7.4.1 进入手动分区设置


7.4.2 /boot 分区设置 - 1G


7.4.3 swap 交换分区设置 - 2G


7.4.4 / 根分区设置 - 17G


7.4.5 接受更改,完成设置

7.5 禁用Kdump


7.6 网络和主机名设置



7.7 关闭安全策略

7.8 设置root密码



7.9 创建一个除root外的其他用户


7.10 完成配置



8.重启后接受许可证


9.完成配置,登录root用户




10.配置语言 - 汉语


11.关闭隐私

12.跳过账号连接



13.查看网络是否连接
这个可能你是已经连接成功的,但是我这里没有连接成功,如果你连接成功了,就不用再往后面看了。
查看是否有图标,如果有我下图的这个图标,说明联网成功。

14.打开服务,虚拟机联网
该步骤针对于没有联网成功的用户。
回到你的主机 windows 操作系统,按 win + r
,输入 services.msc
,打开服务。
⚠️注意:
- 不要使用无线校园网,因为虚拟主机也会作为单独一个用户
- 不要使用锐捷客户端连接有线校园网,因为锐捷客户端有一个持续进程会总是检测并关闭 VMware NAT Service 服务。
- 建议将自己的电脑连上手机热点。

回到 Linux 虚拟机:

点击"连接"后,应该会看到右上角有我下图的这个图标,就说明连接成功了。
