Virtual machine installation linux system centos (nanny level)

1. Software and hardware preparation

Software: VMware is recommended. I use VMware 12
mirror: CentOS6. If there is no mirror, you can download it from Alibaba Cloud https://mirrors.aliyun.com/centos/
insert image description here
Hardware: because the virtualization software is running on the host machine to install centos , so there are certain requirements for the configuration of the host machine. At least I5CPU dual-core, hard disk 500G, memory 4G or more.
insert image description here

2. Virtual machine preparation

1. Open VMware and select a new virtual machine

insert image description here

2. Typical installation and custom installation

Typical installation: VMware will apply the mainstream configuration to the operating system of the virtual machine, which is very friendly for novices.

Custom installation: Custom installation can strengthen some resources and remove unnecessary resources. Avoid wasting resources.

Here I choose custom installation.
insert image description here

3. Virtual machine compatibility selection

Pay attention to compatibility here. If the virtual machine created by VMware12 is copied to VM11, 10 or lower versions, there will be an incompatibility. If the virtual machine created with VMware10 is opened in VMware12, there will be no compatibility issues.
insert image description here

4. Choose to install the operating system later

insert image description here

5. Selection of operating system

Here, select the operating system to be installed later. The correct choice will make vm tools more compatible. Here choose CentOS under linux
insert image description here## 6. Virtual machine location and naming

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

The default location of VMware is under the C drive, and I changed it to the F drive here.
insert image description here

7. Processor and memory allocation

Processor allocation should be allocated according to your actual needs. If the CPU is not enough during use, it can be increased. This time, we only want to demonstrate the installation of CentOS, so select 1 for both the processor and the core.
insert image description here
The memory should also be allocated according to actual needs. My host machine memory is 8G so I allocate 2G memory to the virtual machine.
insert image description here

8. Choose the type of network connection. There are four types of network connection: bridge, NAT, host only and no network connection.

Bridge: If the bridge mode is selected, the virtual machine and the host machine are in the same level relationship on the network, which is equivalent to being connected to the same switch.

NAT: The NAT mode means that the virtual machine must first pass through the host to communicate with the outside world if it is to be connected to the Internet.

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

The process of accessing the Internet in bridging and NAT mode, as shown in the figure below
insert image description here
Difference between bridging and NAT

Select bridge mode here
insert image description here

9. The remaining two items can be selected according to the default options of the virtual machine

insert image description here

10. Disk capacity

Temporarily allocate 100G of disk capacity, which can be increased at any time later. Do not check 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. Check the option to split the virtual disk into multiple files, so that the virtual machine can be easily copied and copied with the storage device.
insert image description here

11. Disk name, the default is fine

insert image description here

12. Cancel unneeded hardware

Click Customize Hardware
insert image description here
to select unnecessary hardware such as sound cards and printers and remove them.
insert image description here

13. Click Finish, the virtual machine has been created.

insert image description here

3. Install CentOS

1. Connect the disc

Right click on the virtual machine you just created and select Settings

insert image description hereFirst select CD/DVD, then select to use the ISO image file, and finally select Browse to find the downloaded image file. Connect at startup must be checked and confirmed.
insert image description here

2. Turn on the virtual machine

insert image description here

3. 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 to fix the fault
Select the first item, install CentOS 7 directly, press Enter, enter the following interface
insert image description here
to select the language used in the installation process, select here English, keyboard select American keyboard. Click Continue
insert image description here
to first set the time
insert image description hereand time zone and select Shanghai to check whether the time is correct. Then click Done
insert image description hereto select the software to be installed
insert image description here
Select Server with Gui, then click Done insert image description here
to select the installation location, where you can perform disk partitioning.
insert image description here
Select i wil configure partitioning (I will configure the partition), then click done insert image description here
as shown in the figure below, click the plus sign, select /boot, and assign 200M to the boot partition. Finally, click Add insert image description here
and allocate space to the other three areas in the same way. After clicking Done, a insert image description here
summary message will pop up. Click AcceptChanges (accept changes) insert image description here
to set the host name and network card information. insert image description hereFirst, open the network card, and then check whether the IP address can be obtained. (I am bridging here), and then click Done after changing the host name.
insert image description here
Finally, select Begin Installation (start installation) insert image description here
to set the root password.
insert image description here
After setting the root password, click Done insert image description here
and click USER CREATION to create an administrator user. insert image description here
After entering the user name and password, click Done insert image description here
and wait for the system to complete the installation and restart the system.
insert image description here

Guess you like

Origin blog.csdn.net/zch981964/article/details/130316915