Original: http://blog.anxpp.com/index.php/archives/1080/
(OCD patients want a clean system) the use of virtual machine to minimize the installation of Centos 7, the installation is definitely not on the net, search the next, the results are stereotyped.
Centos official website Download the latest minimal version Cetos ISO package, installation process is not too simple (optional Chinese installation process, surprised not pleased with the surprise.) It means nothing but an accident. )。
Directly on the configuration method (stupid have a stupid method, I am through the installation of desktop version Centos verify and solve the problem ... ):
Virtual machine configuration:
* Recommended configuration before resetting virtual network configuration: Menu bar--> edit--> Virtual Network editor--> (bottom left) restore default 1, right key current virtual Machine tab 2, Hardware--> network adapter--> Select the first bridging mode, additional options (copy The network connection state) is not optional. Explanation: Now the network is basically passing by, that is, the network cable can be directly connected to the Internet, fixed optional way to connect to the Internet.
Command:
IP addr
The result should be that no address-related information is displayed, indicating that the network did not start at all.
To open a network connection:
Ifup Ens33
Here the Ens33 is the name of the network card, the different installation may have the difference, in the above IP addr command results will show the actual name.
Or to the directory/etc/sysconfig/network-scripts/can see the relevant configuration file, such as my configuration file is ifcfg-ens33.
Restart Network services:
Systemctl Restart Network
At this time should be able to surf the Internet, you can ping or IP addr look at the network address situation.
Minimize installation Many commands are not available to run, but you can add support by installing your own response toolkit.
If you want to keep the system clean, then install a docker bar (many times although this is redundant, the use of virtual machines to ensure that the host is clean ...). ), and everything is stuffed inside.
If the above steps still do not resolve, you can consider the following conditions to search for relevant information:
1, Virtual machine installation CentOS MAC address problem
2. Close NetworkManager
3. VMware Virtual Machine Network configuration
Welcome to Exchange study.