VirtualBox after minimizing the installation of CENTOS7 in the Internet settings

Source: Internet
Author: User

The CENTOS7 is minimized in the virtual machine and cannot be connected to the Internet because the CENTOS7 default NIC is not activated.

can set

File/etc/sysconfig/network-scripts/ifcfg-enp0s3

Change Onboot=no to Onboot=yes

Restart NIC after saving: Service network restart

The Internet is available at this time.

Because it is a minimized installation, the Ifconfig command is not available at this time.

Command: IP addr To view the allocation of NIC.

To run commands after networking:

Yum Install Net-tools

To install the Ifconfig feature

At this point, the VirtualBox uses network address translation (NAT) mode

VirtualBox after minimizing the installation of CENTOS7 in the Internet settings

Related Article

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.