centos cover image
1. Software and hardware preparation#
1 Centos mirror preparation##
1.1 CentOS mirror download address###
[ Download address)(https://www.centos.org/download/)
1.2 CentOS mirror download process###
- Click the download address to enter the website as shown in the figure below, select the version to be downloaded, here is
Centos8
, click as shown.
centos download picture 1
- After deciding to choose Centos8, select the desired mirror source to download. Here, select the Alibaba Cloud mirror and select the mark in the red box in the figure below.
centos download image 2
- After clicking to enter, select the iso image in the red box as shown below to download the centos8 image.
centos download image 3
2 VMware Preparation##
2.1 VMware virtual hardware device###
virtual machine diagram
- Click to create a new virtual machine, and the following prompt appears. Here you can choose custom or you can choose the typical method to proceed to the next step.
Installation process diagram 1
- Select the hardware compatibility of the virtual machine. Here, select the default and proceed to the next step.
Installation process diagram 2
- At this time, you need to choose the operating system installation, here I do not choose the operating system first, choose to install the operating system later, and proceed to the next step.
Installation process Figure 3
- At this time, you need to choose the type of operating system. Since the Centos8 we downloaded is a kind of Linux system, we choose Linux here. We choose the version according to the download version of Centos. If you can’t find the version of Centos in the picture, you can It is also possible to choose the version of read Hat, here we choose Centos 8 64-bit, and proceed to the next step.
Installation process Figure 4
- At this time, you need to command the virtual machine that needs to be installed. Generally, you can customize it yourself at this time. I customize it as shown in the figure. At the same time, you need to select the installation location of the operating system. The installation location can be customized, and proceed to the next step.
Installation process Figure 5
- At this time, you need to configure the processor in the virtual hardware configuration. If the configuration of [Host] (https://cloud.tencent.com/product/cdh?from=10680) is high enough, you can also select a high processor and customize it.
Installation process Figure 6
- At this time, the memory configuration in the virtual hardware configuration needs to be performed, which is also based on the configuration of the host machine. The higher the memory capacity, the better, proceed to the next step.
Installation process diagram 7
- At this time, you need to configure the network type in the virtual hardware configuration. Here we choose the mode of
NAT
to share the host network, and proceed to the next step.
Installation process Figure 8
- At this time, it is necessary to configure the I/O controller type in the virtual hardware configuration. Generally, the default is sufficient, and proceed to the next step.
Installation process diagram 9
- At this time, you need to configure the disk type in the virtual hardware configuration, which is generally the default, and proceed to the next step.
Installation process Figure 10
- At this time, you need to create a virtual disk, generally choose to create a new virtual disk, and proceed to the next step.
Installation process Figure 11
- At this time, you need to specify the size of the disk, which can be customized. Here we configure 200G, choose to split the virtual disk into multiple files, and proceed to the next step.
Installation process Figure 12
- Specify the disk file, generally default, proceed to the next step.
Installation process Figure 13
- At this time, the virtual hardware configuration is generally completed, click Finish.
Installation process Figure 14
- Next, you need to configure the operating system for the virtual hardware. Now edit the virtual machine settings, select the CD/DVD item, select the ISO image file on the right, find the image we downloaded, and click OK.
Installation process Figure 15
Installation process diagram 16
- Up to now, our software and hardware are ready, click to open this virtual machine to install and configure centos.
Open the virtual machine diagram
Second, the installation and configuration of Centos8#
2 installation steps##
2.1 Start the image, select the analysis when starting the CD
At this time, we can choose Test this media & install CentOS Linux 8.0.1905 for the first installation, or choose Install CentOS Linux 8.0 1905 to install directly. The second option will take a bit longer and the ISO image detection is required.
start installation diagram
Analysis of options in the figure:
Install CentOS Linux 8.0 1905: to install
Test this media & install CentOS Linux 8.0.1905: Test the installation for CD detection, test whether the CD has bad tracks, scratches, etc. (iso image detection), select this option during the first installation
Troubleshooting
2.2 start installation##
Generally there will be a unified configuration interface, we can perform some of the configurations in the figure below, the keyboard layout is generally not changed; language setting; need to set time zone and date time; software installation Type; System partition settings and network configuration.
centos installation and configuration interface diagram
2.2.1 System language###
After some time of waiting, when the system shows the following picture, it means entering the system installation configuration. The picture below shows the selection of the system language. Generally, we choose Englist and click Continue.
system language setting diagram
2.2.2 Time zone and date time###
Let’s set up the time zone and date and time. At this time, we need to select Asia and select shanghai. The time and date in the figure below are configured according to their current time. After configuration, select Done
to return to the system configuration interface.
time zone selection map
2.2.3 System software installation###
Next, proceed to system software installation, here I choose the minimal installation Minimal Install
, or choose Server with GUI graphically, click Done
to return to the configuration interface.
software installation options
2.2.4 System partition operation###
- Next, you need to perform the partition operation of the system. Enter the partition interface and select Custom partition.
Partition Map 1
- The zoning rules are defined as follows.
Partition rule map
- According to the above-mentioned partitioning rules, the four spaces of
/DATA
, /boot
, /
, and swap
are partitioned. After partitioning is complete, click Done
to return to the configuration interface.
Partition Map 1
Example image of partition mount point
2.2.5 Network editing of virtual machines###
- Before the network configuration, you need to switch to the configuration of the virtual machine, select, select the virtual network editor, start the settings of the custom subnet, first select
change settings
virtual network configuration diagram
- Follow the order in the figure below to configure.
virtual network configuration 1
- Enter the configuration after DHCP settings, configure the start IP address and end IP address.
Virtual Network Configuration 2
2.2.6 Network configuration###
Now proceed to Network configuration, set the network name according to the description in the figure, and click Done
to return to the configuration interface.
Network configuration
2.2.7 start installation###
After completing the above configuration, back to the configuration interface, we can install the system, click Begin Installation to start the installation.
to start the installation
2.2.8 Configure root password and customize common user name and password###
While waiting for the installation, we can configure the password of the root account, and select the first option in the figure below to configure the password.
User name and password registration
Fill in the password
At the same time, it can also be edited by ordinary users. Once again, we will not do the demonstration. You can configure it if necessary. Then wait for the installation to restart.
Three, summary#
So far, we have completed the installation of the Centos system under VMware. If there is something wrong, please contact us by private message, thanks!