Auxiliary notes - install CentOS8.1 virtual machine

Install CentOS8.1 virtual machine

This article mainly refers to the video " P116_ Han Shunping Linux_cntos8 Installation and Introduction " at station B.

Purpose of this article: Use VMware17 to create a brand new CentOS8.1 virtual machine.


1. CentOS8.1 installation

1.1 Download CentOS8.1 image

  To install a virtual machine, you must first download an image CD. The most commonly used image source in China is Alibaba Cloud, but unfortunately, Alibaba Cloud does not provide the image source of CentOS8.1 at present, but according to the readme provided by it, I finally found it:

  1. CentOS official website download address: CentOS8.1 official website image , and then click to download CentOS-8.1.1911-x86_64-dvd1.iso (as shown in Figure 20-1).
  2. My own Baidu network disk: CentOS-8.1.1911-x86_64-dvd1.iso
Figure 1 Downloading the CentOS image

Note: The CentOS development team will stop maintenance support for CentOS8 on January 1, 2022, and CentOS7 will also stop maintenance on June 30, 2024.

1.2 Check BIOS virtualization support

  First check whether "Virtualization" is enabled, if it is not enabled, Ubantu cannot be installed later. The basic idea is to check whether it is "enabled" in "Performance Manager->Performance->CPU->Virtualization". You can refer to the CSDN blog post "How to determine whether the CPU virtualization function is enabled in the BIOS setting? ".

Figure 2 Check whether virtualization is enabled
  1. If enabled, go to the next step.
  2. If it is not enabled, you can refer to the Baidu article " Enable BIOS Virtualization Settings | Enable CPU Virtualization Support ". Note that different brands of motherboards have different keys to enter the BIOS. , f2, f12etc. DELcan be tried or Baidu.

1.3 Create a new virtual machine

It is still the old rule, VMware menu bar "File" -> "New Virtual Machine", and then you can create a virtual machine as shown in the figure below:

Figure 3 Create a new virtual machine

1.4 Installing the system

After the virtual machine is created, it is time to install the system. First, complete some initial work:

  1. Add disk and boot.
  2. Quickly press the up and down arrow keys when starting up and select the first Enter. Do not select Test this media, otherwise the detection time will be very long.
  3. Select the language as Chinese.
Figure 4 Initial work

The next step is to officially start the installation and configuration of CentOS.

Figure 5 Configure "Software Selection"

Configure the "installation destination" below, including the configuration of the three partitions of /boot partition, /swap partition, and /root directory.

Figure 6 Configure "Installation Destination" - /boot partition, /swap partition, /root directory

Then there is the "kernel crash dump mechanism". Note that it can be closed during learning, and the working environment must be open to ensure that key information can be recorded for crash review.

Figure 7 Configure "Kernel Crash Dump Mechanism"

Then set the network and host name, of course, you can set it again after installation.

Figure 8 Configure "Network and Hostname"

After the above settings are completed, click "Start Installation", and then it will jump to the system installation interface. At this time, the user needs to set the "root password" and "create user". After the setting is completed, it will be a long wait. After the installation is complete, click "Restart".

Figure 9 Configure "root password" and "create user"

After restarting, you need to agree to the "License". After clicking "End Configuration", the system will automatically restart several times, and finally jump to the login interface.

Figure 10 Configure "License"

Next, use the root user to log in and complete some option configurations after login.

Figure 11 Configuration after login

1.5 Test Internet access and terminal

Figure 12 Test Internet access and terminal

2. The difference between CentOS8.0 and CentOS7.0 (understand)

Finally, let me briefly talk about the difference between the two specific versions of CentOS, CentOS8.0 and CentOS7.0.

Table 20-1 Differences between CentOS8.0 and CentOS7.0
Function CentOS7.0 CentOS8.0
kernel version 3.10.0-x 4.18.0-x
File system XFS XFS
time synchronization Support for NTP and Chronyd Only supports Chronyd
File size 500TB 8EB
file system size 500TB 1PB
package management tool YUM(YUM v3) DNF(YUM v4)
maximum memory 12TB 24TB
firewall The bottom layer of firewall uses iptables nftables replaces iptables
support structure 64-bit ARM is not supported Support 64-bit ARM
network management None installed by default Cockpit is installed by default
CPU log CPU-related logs are located in the /var/log/cups directory CPU logging is recorded in the journald process
release time 2014-07-07 2019-09-24
full update 2020-08-06 2024-05-01
Support IPv6 Ready Logo Phase 2 support
Git 1.7 2.18
GCC 4.8.5 8.2.1
Python 2.7.5 3.6.6
Glibc 2.17 2.28
Boost 1.53 1.66
LLVM/Clang 5.0 6.0

Guess you like

Origin blog.csdn.net/weixin_46258766/article/details/132404044