1. Preparation of hardware and software

Software: recommended VMware, I use VMware 12

Mirror: CentOS6, if there is no image can be downloaded from Ali cloud https://mirrors.aliyun.com/centos/

Hardware: Because it is installed centos running virtualization software on the host, so there are certain requirements for the configuration of the host machine. At least I5CPU dual-core, hard drive 500G, more than 4G memory.

2. The virtual machine is ready

1. Choose New Virtual Machine on VMware

2. A typical installation with a custom installation

Typical installation: VMware mainstream applications will be configured on the operating system of the virtual machine for the novice to very friendly.

Custom Installation: Custom install some resources can be targeted to strengthen, to remove unwanted resources. To avoid waste of resources.

Here I select Custom Installation.

3. Select the virtual machine compatibility

Here we must pay attention to compatibility, if a copy of a virtual machine to create VMware12 VM11,10 or less there will be a version incompatibilities. Compatibility is not a problem if it is open in VMware12 VMware10 the virtual machine is created.

4. Choose to install the operating system later

The operating system of choice

After installation of the operating system selected here, the right choice will be more compatible vm tools. Select here under CentOS linux

6. The virtual machine name and location

Virtual machine name is a name for yourself and find more time in the virtual machine.

VMware is the default location in the C drive, I've changed to F drive.

7. The processor and memory allocation

Processor allocation should be allocated according to their actual needs. In the course of the CPU is not enough then added. The only install CentOS demo, it core processor and 1 are selected.

Memory is to be allocated according to the actual needs. My host memory is allocated so I 8G 2G memory to the virtual machine.

8. Select the type of network connection, network connection type, a total of bridging, NAT, the host and not only four kinds of networking.

Bridge: bridge mode selected, then the relationship between the virtual machine and the host on the network is the same level, corresponding to the connection on the same switch.

NAT: NAT mode is the virtual network have to communicate confidential by the host and to the outside.

Only hosts: virtual machine and the host directly connected together

桥接与NAT模式访问互联网过程,如下图所示

桥接与NAT区别

这里选择桥接模式

9.其余两项按虚拟机默认选项即可

10.磁盘容量

磁盘容量暂时分配100G即可后期可以随时增加,不要勾选立即分配所有磁盘,否则虚拟机会将100G直接分配给CentOS,会导致宿主机所剩硬盘容量减少。 勾选将虚拟磁盘拆分成多个文件,这样可以使虚拟机方便用储存设备拷贝复制。

11.磁盘名称,默认即可

12.取消不需要的硬件

点击自定义硬件

选择声卡、打印机等不需要的硬件然后移除。

13.点击完成,已经创建好虚拟机。

3.安装CentOS

1.连接光盘

右击刚创建的虚拟机,选择设置

先选择CD/DVD,再选择使用ISO映像文件,最后选择浏览找到下载好的镜像文件。启动时连接一定要勾选上后确定。

2.开启虚拟机

3.安装操作系统

开启虚拟机后会出现以下界面:

  • Install CentOS 7 安装CentOS 7
  • Test this media & install CentOS 7 测试安装文件并安装CentOS 7
  • Troubleshooting 修复故障

选择第一项,安装直接CentOS 7,回车,进入下面的界面

选择安装过程中使用的语言,这里选择英文、键盘选择美式键盘。点击Continue

首先设置时间

时区选择上海,查看时间是否正确。然后点击Done

选择需要安装的软件

选择 Server with Gui,然后点击Done

选择安装位置,在这里可以进行磁盘划分。

选择i wil configure partitioning(我将会配置分区),然后点击done

如下图所示,点击加号,选择/boot,给boot分区分200M。最后点击Add

然后以同样的办法给其他三个区分配好空间后点击Done

然后会弹出摘要信息,点击AcceptChanges(接受更改)

设置主机名与网卡信息

首先要打开网卡,然后查看是否能获取到IP地址(我这里是桥接),再更改主机名后点击Done。

最后选择Begin Installation(开始安装)

设置root密码

设置root密码后点击Done

Click Create an administrator user USER CREATION

Enter the user name and password after clicking Done

Wait for the system installation is complete reboot the system

Author: Aubin

Link: https: //www.jianshu.com/p/ce08cdbc4ddb

Source: Jane books