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:
- delete the/etc/udev/rules.d/70-persistent-net.rules file;
- 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:
- chkconfig NetworkManager off
- chkconfig Network on
- service NetworkManager Stop
- 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 ...