Linux operating system custom installation:
VMware-workstation-full-12.0.0 download
Extraction code: vxqr
CentOS-8.3.2011-x86_64-minimal download
Extraction code: o7mh
Edit>Preferences, select the default storage location, try not to exist in the C drive.
File > New Virtual Machine Wizard, select Custom Mode.
The current version is 12.0, click Next.
Choose to install the operating system later and click Next.
Select the Linux operating system, 64-bit.
Customize the virtual machine name and click Next.
Select the virtual machine processor configuration, customize it reasonably according to the computer configuration, and click Next.
Select the virtual machine memory, customize it reasonably according to the computer configuration, and click Next.
By default, Network Address Translation NAT is used.
Default, recommended, click Next.
Default, recommended, click Next.
Select Create a new virtual disk and click Next.
The maximum disk size can be reasonably customized according to the computer configuration, and click Next.
At this point a .vmdk file is generated and click Next.
Choose custom hardware.
First click New CD/DVD, then choose to use the ISO image file, choose the image you downloaded, and then click Add.
After clicking Add, a box will appear. If you can see the "file in use" behind the new CD/DVD is the image you just selected, then it is successful. Click Cancel, then click Close, and then click Finish.
At this point, the virtual machine has been created. Put the mouse on the new CD/DVD, and you can see what image is being used. If there is no image, select the downloaded image before starting. If there is an image, click to start the virtual machine. Can.
Click to start this virtual machine to start configuration.
Select English and click Continue.
Click InstallInstallation.
Select Custom and click Done.
Click the + sign to start disk partitioning.
Start to select the disk partition, and the list will display all partitioned directories.
Select the root directory/set to 40G, click Add mount point.
The picture shows the value of the currently partitioned disk, and the BIOS Boot is set to 2M. After the partition is completed, click home, select DEviceL Type as LVM and Volume Group as cl in the parameters on the right, and finally click Done in the upper left corner to complete.
Click Accept Changes to accept the changes.
Set the time zone.
After the modification is completed, click Finish in the upper left corner.
Click Set root password.
After entering the root password, confirm it again, you have to click twice to complete it.
Finally, click to start the installation and wait for the installation to complete.
When complete appears, the installation is complete, click Reboot System to restart the system, and the customized virtual machine can be used.
-------------------------------------------------- --------Dividing line---------------------------------------- ------------------
Use the xshell connection tool to connect to the virtual machine and configure a fixed ip address.
Fill in the roo account password to log in.
Modify the address of the local VM8 and configure a fixed ip address.
Configure the ip address of the local VM8.
Edit > Virtual Network Editor, modify the virtual machine NAT configuration.
Modify ens33 configuration
vi /etc/sysconfig/network-scripts/ifcfg-ens33
to refresh, and then check the ip address, ifconfig command or ipaddr command, if the ip address appears, it is completed.
systemctl restart network.service (centOS7 command, restart the network)
nmcli c reload (centOS8 command, refresh configuration)
nmcli c up ens33 (centOS8 command, restart the network)
At this time, tools such as xshell can be used to connect to the virtual machine. If the connection fails, check Check whether it is due to the firewall, first temporarily close it, and use a test tool to connect. If the configuration is correct and the connection cannot be made, you can change the network segment and reconfigure the ip of the local machine and the ip of the vm virtual machine.
View firewall status
systemctl status firewalld.service
temporarily enable firewall
systemctl start firewalld.service
temporarily close firewall
systemctl stop firewalld.service
start disable firewall
systemctl disable firewalld.service
start firewall
systemctl enable firewalld.service