Since I returned the Mac, my original laptop has been idle. The configuration of this laptop is quite good. I can install several virtual machines for daily practice of building small-scale clusters. Preparation Install VMWare Version: VMware Workstation 15 Pro 15.5.6 build-16341506 There is not much to say about the installation steps. Download Linux Distribution Since my cloud server has always used CentOS, I am used to it, so I also used CentOS this time. Version: CentOS 7 You can download it from Tsinghua mirror site. Generally, you can download about 4.5G. Creating a virtual machine Open New wizard, select Custom, Next Compatibility, default, next Select the ISO file you just downloaded for the CD image file. Set username and password (root cannot be used here, root will be created by default) Select the location of the virtual machine file according to the hard disk space of your personal computer. CPU configuration and memory configuration depend on personal situation. The default configuration is selected for demonstration here. Network type, select bridged network here, the virtual machine network needs to be configured here later, otherwise it will not be able to connect to the external network I/O controller type, hard disk type, based on the principle of choosing the default if you don't understand, here we choose the default options Configure the maximum disk size according to your hard disk size After everything is configured, click Finish to start the installation. Pour a cup of tea and wait for a few minutes. vmware will automatically configure the centos installation options, and is installing..., continue drinking tea and waiting The installation is complete. When this interface appears, it means the system has been installed. Configure the network Why configure the network? After entering the system, open the terminal software and ping Baidu. It is found that the ping is not working. The host machine is also not working. It is definitely not working without network. How to configure? Add a bridged network in the vmware virtual machine network editor It should be noted that the following two networks need to be set to host-only mode, and the host connection is shown as connected First check whether the virtual machine has a network adapter. If not, you need to add one and set it to bridge mode. Enter su root dhclient Enter Modify the Some of the more important ones are:
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=ens36 UUID=824ec4bd-a9ae-4410-8346-17ce7f3dd111 DEVICE=ens36 ONBOOT=yes IPADDR=192.168.199.212 NETMASK=255.255.255.0 GATEWAY=192.168.199.1 DNS1=192.168.199.1 Save and exit after modification Restart network services systemctl restart network.service Check whether the network is connected \[test@localhost network-scripts\]$ ping www.qq.com PING public-v6.sparta.mig.tencent-cloud.net (220.194.111.148) 56(84) bytes of data. 64 bytes from www.qq.com (220.194.111.148): icmp_seq=1 ttl=53 time=9.56 ms 64 bytes from www.qq.com (220.194.111.148): icmp_seq=2 ttl=53 time=13.4 ms 64 bytes from www.qq.com (220.194.111.148): icmp_seq=3 ttl=53 time=20.3 ms 64 bytes from www.qq.com (220.194.111.148): icmp_seq=4 ttl=53 time=9.19 ms 64 bytes from www.qq.com (220.194.111.148): icmp_seq=5 ttl=53 time=9.92 ms 64 bytes from www.qq.com (220.194.111.148): icmp_seq=6 ttl=53 time=9.49 ms ^C \--- public-v6.sparta.mig.tencent-cloud.net ping statistics --- 6 packets transmitted, 6 received, 0% packet loss, time 5009ms rtt min/avg/max/mdev = 9.195/11.994/20.327/3.999 ms \[test@localhost network-scripts\]$ ping 192.168.199.119 PING 192.168.199.119 (192.168.199.119) 56(84) bytes of data. 64 bytes from 192.168.199.119: icmp_seq=1 ttl=64 time=1129 ms 64 bytes from 192.168.199.119: icmp_seq=2 ttl=64 time=130 ms 64 bytes from 192.168.199.119: icmp_seq=3 ttl=64 time=82.8 ms 64 bytes from 192.168.199.119: icmp_seq=4 ttl=64 time=120 ms 64 bytes from 192.168.199.119: icmp_seq=5 ttl=64 time=30.8 ms 64 bytes from 192.168.199.119: icmp_seq=6 ttl=64 time=25.4 ms 64 bytes from 192.168.199.119: icmp_seq=7 ttl=64 time=63.0 ms ^C \--- 192.168.199.119 ping statistics --- 8 packets transmitted, 7 received, 12% packet loss, time 7011ms rtt min/avg/max/mdev = 25.445/226.124/1129.858/370.829 ms, pipe 2 Use the terminal tool ssh to connect. If you can connect, it proves that there is no problem with the network. Remark There are a few pitfalls in network configuration that need to be explained. When writing this article, there are a few points that are different from my previous practice. 1. Network adapter here, the virtual machines installed before are all default, but there is no network adapter here, so you need to add one manually on your phone. 2. dhclient Here, there was a network adapter by default before, so the generated network name was ens33. It was generated once when there was no adapter before, which was `lo`. After adding the adapter, it was generated again and the name was found to be `ens36`, which was slightly different from before. There was no ens36 configuration file in the `/etc/sysconfig/network-scripts` directory, so you need to create a new file here. The previous virtual machines all had ens33 by default, so you only need to make some changes. Here, for my personal understanding, the only difference is the name, and the configuration is sufficient. After my system was installed, the time zone was wrong. I just changed it in the system. This concludes this article about the steps (with pictures and text) to use VMWare to build a Linux environment under Windows. For more information about how to use VMWare to build a Linux environment, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: js realizes the image cutting function
>>: Tutorial on installing MySQL8 compressed package version on Win10
The so-called cascading replication is that the m...
Scenario: A laradock development environment (php...
HTML onfocus Event Attributes Definition and Usag...
Nginx global variables There are many global vari...
Error description When we install Docker Desktop,...
Achieve results html <h2>CSS3 Timeline</...
<br />The following are the problems I encou...
This article shares the MySQL free installation c...
Automatic backup of MySQL database using shell sc...
Table of contents What is recursion and how does ...
Result: Implementation code: Need to be used with...
Optimization ideas There are two main optimizatio...
Preface: It’s the end of the year, isn’t it time ...
To achieve CSS screen size adaptation, we must fi...
This article example shares the specific code for...