1、创建虚拟机
1.0 创建新的虚拟机
1.0.1 选择自定义配置
打开VMware,点击创建新的虚拟机。
如下图所示:
![](https://upload-images.jianshu.io/upload_images/18121652-487803b06a00b549.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.0.2 选择虚拟机硬件兼容性
如下图所示:
![](https://upload-images.jianshu.io/upload_images/18121652-e75522ddaa2cc9cc.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.0.3 安装客户操作系统
在这里,我们选择稍后安装操作系统
如下图所示:
![](https://upload-images.jianshu.io/upload_images/18121652-bce94cdd764f204b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.0.4 选择客户机操作系统
在这里,我们选择linux系统,版本centos64位
如下图所示:
![](https://upload-images.jianshu.io/upload_images/18121652-c58a9fdfb8340ee6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.0.5 命名虚拟机
命名尽量要规范专业
如下图所示:
![](https://upload-images.jianshu.io/upload_images/18121652-21b0b22c2cc43227.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.0.6 处理器配置
默认即可
如下图所示:
![](https://upload-images.jianshu.io/upload_images/18121652-e8425c195c77df34.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.0.7 内存配置
在这里,我们可以选择2G内存,待安装系统完成时在改成1G即可。我选择的是1G内存。
如下图所示:
![](https://upload-images.jianshu.io/upload_images/18121652-67d6d7549b2c0544.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.0.8 选择网络类型
为方便学习,我们选择使用网络地址转换
如下图所示;
![](https://upload-images.jianshu.io/upload_images/18121652-94a64fe41c337ffd.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.0.9 选择I/O控制类型
默认即可
如下图所示:
![](https://upload-images.jianshu.io/upload_images/18121652-87b12a15e897f68d.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.0.10 选择磁盘类型
默认即可
如下图所示:
![](https://upload-images.jianshu.io/upload_images/18121652-5539e2ff3535923c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.0.11 选择磁盘
选择创建新虚拟磁盘
如下图所示:
![](https://upload-images.jianshu.io/upload_images/18121652-6899478e74b426f5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.0.12 指定磁盘容量
选择将虚拟磁盘存储为单个文件
如下图所示:
![](https://upload-images.jianshu.io/upload_images/18121652-6bf7210889e21f7b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.0.13 指定磁盘文件
默认即可
如下图所示:
![](https://upload-images.jianshu.io/upload_images/18121652-4ed559413727d06b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.0.14 挂载Centos镜像
如下图所示:
![](https://upload-images.jianshu.io/upload_images/18121652-0caa5863f0faed41.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-f4815a09b87f7395.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-752edf3e0a19d8f1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
2.0 安装Centos7系统
2.0.1 图形化安装
开机后进入下面界面的时候 按↑键选择 install Centos,然后按下 tab 键
输入net.ifnames=0 biosdevname=0 输入完成后检查,并按下回车继续安装系统.
如下图所示:
![](https://upload-images.jianshu.io/upload_images/18121652-bdf89d6cac76a9de.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-48d312d42ce0dfb5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
2.0.2 选择安装语言
在这里,强烈建议选择英文
如下图所示:
![](https://upload-images.jianshu.io/upload_images/18121652-00fbea05912a48d0.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
2.0.3 配置网络、设置IP和主机名
点击NETWORK HOSTNAME。
如下图所示:
![](https://upload-images.jianshu.io/upload_images/18121652-25c8652e4f188420.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-c17905335f2d9042.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-c5249349cb75a2c9.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-8baa40d84cb8070f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-8d3cf2d213c7e7be.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
2.0.4 自定义分区
点击INSTALLATION DESTINATION
如下图所示:
![](https://upload-images.jianshu.io/upload_images/18121652-12dc776b11af5c18.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-25bfa82cfbfaf0fe.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-daf4269b41540d92.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
创建/boot分区
/boot 引导分区 引导系统启动 一般200M
![](https://upload-images.jianshu.io/upload_images/18121652-8da12a54e1a31f55.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
swap分区
swap 交换分区 系统内存不足时候,临时充当内存。一般1个G
![](https://upload-images.jianshu.io/upload_images/18121652-3d2a10f16d951a8a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
/ (根分区)
相当于Windows的C盘,软件、文件存放的位置。 剩余多少给多少
![](https://upload-images.jianshu.io/upload_images/18121652-a00dee5af69b0658.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
创建分区完成
![](https://upload-images.jianshu.io/upload_images/18121652-a0bad1c5f3ccae3b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-df4aab9e0980811b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
2.0.5 创建时区
![](https://upload-images.jianshu.io/upload_images/18121652-af9ee077fa4d09ac.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
2.0.6 最小化安装系统
![](https://upload-images.jianshu.io/upload_images/18121652-8e462bf737a01a81.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-cb5031af4db8f233.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
2.0.7 开始安装 设置root密码
![](https://upload-images.jianshu.io/upload_images/18121652-bb928ab2211e9b15.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-77d1f0906ec4d06f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-680d2e22d240f0ab.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
到这里,我们就完成了整个Centos7虚拟机的安装。下面我们进行VMware的网络配置。
3.0 配置VMware Workstation
3.0.1 编辑→虚拟网络编辑器
![](https://upload-images.jianshu.io/upload_images/18121652-e2d6d9e04349a750.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-50e0d92aedba961a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-ee975c82abbb8e2b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
4.0 通过Xshell连接系统
4.0.1 新建会话
![](https://upload-images.jianshu.io/upload_images/18121652-89738d8e436b5755.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-9c418257acce0592.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-7b70f62e76b35581.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-8bd1fa00a70bc958.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-bf934eba907e0a8d.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
到这里,我们就全部完成了。
![](https://upload-images.jianshu.io/upload_images/18121652-445301afa6c006fd.gif?imageMogr2/auto-orient/strip)