I. Initial software preparation

  • Download the vmware14 version
  • Download the CentOS_7 mini version at www.centos.org/download/

Install CentOS_7

Install CentOS_7 using the recommended Settings. If you select the image file, go to the next step. Run the IP addr command to query the network configuration file. If no IP address exists, you need to configure itls /etc/sysconfig/network-scripts/ Check the files in the current directory. Generally, the file starts with ifcfg-eno. Edit the file. Set the last ONBOOT to yes. Enter it with root permissionshutdown -r now“At this time, enter IP add again to view the IP and record it, as shown in the figure belowTo make the VIRTUAL machine IP fixed, we turn off the DHCP Settings and set the fixed IP,

Set the VM network

Centos Network Settingsvim /etc/sysconfig/network-scripts/ifcfg-ens33

TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=static DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=ens33 UUID= E46E43A1-181f-44d5-A38B-CA698F26EBA1 DEVICE= ENS33 ONBOOT=yes IPADDR=192.168.137.100 NETMASK=255.255.255.0 GATEWAY = 192.168.137.1 DNS1 = 8.8.8.8 DNS2 = 8.8.4.4Copy the code

Then let the network configuration take effect systemctl restart network

Host computer network Settings

Default gateway 192.168.137.1 DNS1=8.8.8.8 DNS2=8.8.4.4Copy the code
After the configuration is complete, the VM can access the Internet