Easy Tutorial
❮ Android Tutorial Android Studio The Different This Super ❯

VMware Installation of CentOS7 in Super Detail

Category Programming Technology

1. Preparation of Software and Hardware

Software: VMware is recommended, I am using VMware 12.

Image: CentOS6, if you do not have the image, it can be downloaded from Alibaba Cloud https://mirrors.aliyun.com/centos/.

Hardware: Since the installation of CentOS is running on the host machine through virtualization software, there are certain requirements for the configuration of the host machine. At least an I5 CPU dual-core, a 500GB hard disk, and more than 4GB of memory.

2. Preparation of Virtual Machine

  1. Open VMware and select to create a new virtual machine.

  2. Typical Installation and Custom Installation

Typical Installation: VMware will apply mainstream configurations to the operating system of the virtual machine, which is very friendly for beginners.

Custom Installation: Custom installation can strengthen some resources and remove unnecessary resources to avoid waste.

I choose custom installation here.

  1. Select the virtual machine compatibility

Pay attention to compatibility here. If a virtual machine created by VMware 12 is copied to VMware 11, 10, or a lower version, there will be incompatibility. If a virtual machine created by VMware 10 is opened in VMware 12, there will be no compatibility issues.

  1. Choose to install the operating system later

  2. Select the operating system

The correct selection here will allow vm tools to be better compatible. Here, choose CentOS under Linux.

  1. Virtual machine location and naming

The virtual machine name is just a name, which is convenient for you to find when there are many virtual machines.

The default location of VMware is in the C drive, I changed it to the F drive here.

  1. Allocation of processor and memory

The allocation of the processor should be based on your actual needs. If the CPU is not enough during use, it can be increased. This time, I only demonstrate the installation of CentOS, so both the processor and the core are selected as 1.

Memory should also be allocated according to actual needs. My host machine has 8GB of memory, so I allocated 2GB of memory to the virtual machine.

  1. Selection of network connection type, there are four types of network connection types: bridge, NAT, host only, and no connection.

Bridge: If you choose bridge mode, the virtual machine and the host machine are at the same level on the network, equivalent to being connected to the same switch.

NAT: In NAT mode, the virtual machine needs to go through the host machine to communicate with the outside world.

Host only: The virtual machine is directly connected to the host machine.

The process of accessing the Internet in bridge and NAT modes is shown in the figure below.

Difference between Bridge and NAT

Here, I choose bridge mode.

  1. The other two can be set according to the default options of the virtual machine.

  2. Disk capacity

The disk capacity can be temporarily allocated to 100G, which can be increased at any time later. Do not check to allocate all disks immediately, otherwise, the virtual machine will directly allocate 100G to CentOS, which will reduce the remaining hard disk capacity of the host machine.

Check to split the virtual disk into multiple files, which can make it convenient for the virtual machine to copy and copy storage devices.

  1. Disk name, default is fine.

  2. Cancel unnecessary hardware

Click on customize hardware

Select unnecessary hardware such as sound card, printer, etc., and then remove.

  1. Click finish, the virtual machine has been created.

3. Installation of CentOS

  1. Connect the disc

Right-click on the newly created virtual machine and select settings

First select CD/DVD, then select to use ISO image file, and finally select browse to find the downloaded image file. Make sure to check Connect at power on before confirming.

  1. Start the virtual machine

  2. Install the operating system

After starting the virtual machine, the following interface will appear:

Select the first item, install CentOS 7 directly, press Enter, and enter the following interface

Select the language used during the installation process, here select English, and the keyboard selects the American keyboard. Click Continue

First set the time

Select Shanghai as the time zone and check if the time is correct. Then click Done

Select the software to be installed

Select Server with Gui, and then click Done

Select the installation location, where you can divide the disk.

Select I will configure partitioning (I will configure the partition), and then click Done

As shown in the figure below, click the plus sign,

❮ Android Tutorial Android Studio The Different This Super ❯