Virtual Machine mini-install CENTOS7 network configuration

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.