VirtualBox CentOS-6.7 Online Troubleshooting _php Tutorial

Source: Internet
Author: User

Troubleshooting CentOS-6.7 Internet access under VirtualBox


2015/11/2 18:10:43

Recently, a CentOS virtual machine was installed, and colleagues recommended a small virtualbox to replace "bulky" VMware, and then tried to install the CentOS-6.7 virtual machine on the VirtualBox.

The process of installing a virtual machine is similar to that of VMware, which is not a problem if you are familiar with VMware's children's shoes, but the newly installed virtual machines are never connected to the network and are experiencing many problems.

My VirtualBox version is 4.3.24 r98716,centos-6.7 kernel version is 2.6.32-513.3.1.el6.i686.

1. No Suitable device found

This is the first problem that I encountered, although set up Bridge connection mode, re-established the Ifcfg-eth0 file, but still encountered a hint that there is no network equipment, the specific screenshot is as follows:

For this problem we can learn from the online solution:

    1. delete the/etc/udev/rules.d/70-persistent-net.rules file;
    2. Analyze whether the hwaddr value of the Ifconig reality is consistent with the configuration file settings, which is to view the HWADDR value in the/etc/sysconfig/network-scripts/ifcfg-eth0 file;

After comparison, two values are indeed inconsistent, re-modify the configuration file, however, after running the discovery Eth0 port still has the problem:

2. Device not managed by NetworkManager or unavailable

The first time you think about this is to add a parameter to the Ifcfg-eth0 configuration file nm_controlled=yes, and then restart the system, the problem remains. Continue to find information on the Internet, finally found the cause of the problem, CentOS-6.0 more than the system, NetworkManager and network two services to manage the network card when the problem occurs, the solution is to execute the following command in turn:

  1. chkconfig NetworkManager off
  2. chkconfig Network on
  3. service NetworkManager Stop
  4. service Network Start

Then the problem is solved, but my centos still can't connect to the Internet through Vitualbox Bridge, I think the problem should be in the VirtualBox setting, sure enough, you need to allow the virtual network in the network settings:

Finally, the problem can be solved and connected to the network.

It is also worth noting that the previous use of VMware or VirtualBox using NAT to establish CentOS-6.7 virtual machine, the network is always unable to connect, and later all use bridge mode, bridge mode is more stable than NAT mode.

http://www.bkjia.com/phpjc/1067477.html www.bkjia.com true http://www.bkjia.com/phpjc/1067477.html techarticle virtualbox under CentOS-6.7 to troubleshoot the internet 2015/11/2 18:10:43 a CentOS virtual machine has recently been installed, and colleagues have recommended a small virtualbox to replace "bulky" VMware, and then ...

  • 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.