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
Open VMware and select to create a new virtual machine.
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.
- 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.
Choose to install the operating system later
Select the operating system
The correct selection here will allow vm tools to be better compatible. Here, choose CentOS under Linux.
- 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.
- 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.
- 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.
The other two can be set according to the default options of the virtual machine.
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.
Disk name, default is fine.
Cancel unnecessary hardware
Click on customize hardware
Select unnecessary hardware such as sound card, printer, etc., and then remove.
- Click finish, the virtual machine has been created.
3. Installation of CentOS
- 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.
Start the virtual machine
Install the operating system
After starting the virtual machine, the following interface will appear:
Install CentOS 7 Install CentOS 7
Test this media & install CentOS 7 Test the installation file and install CentOS 7
Troubleshooting Troubleshoot
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,