VirtualBox下CentOS-6.7上网故障排除
VirtualBox下CentOS-6.7上网故障排除
2015/11/2 18:10:43
最近需要安装一台CentOS虚拟机,同事推荐了小巧的VirtualBox来取代“笨重”VMware,于是自己便尝试在VirtualBox上安装CentOS-6.7虚拟机。
安装虚拟机的过程同VMware差不多,如果熟悉VMware的童鞋一定不是问题,但是新安装的虚拟机却始终无法联通网络,遇到了诸多问题。
我的VirtualBox版本是4.3.24 r98716,CentOS-6.7内核版本为2.6.32-513.3.1.el6.i686。
1. No suitable device found
这是自己遇到的第一个问题,虽然设置了Bridge连接方式,重新建立了ifcfg-eth0文件,但是依然遇到提示不存在网络设备的问题,具体截屏如下:
对于这个问题我们可以借鉴网上的解决方案:
- 删除/etc/udev/rules.d/70-persistent-net.rules文件;
- 分析ifconig现实的HWADDR值是否与配置文件设置的一致,即查看/etc/sysconfig/network-scripts/ifcfg-eth0文件中的HWADDR值;
经过比较,两个值确实不一致,重新修改配置文件;然而运行后发现eth0端口依然有问题:
2. Device not managed by NetworkManager or unavailable
这里自己第一时间想到的是在ifcfg-eth0配置文件中添加参数NM_CONTROLLED=yes,然后重启系统后问题依旧。继续在网上查找资料,最终找到了问题的原因,CentOS-6.0以上的系统中,NetworkManager和Network两个服务同时管理网卡时出现的问题,解决的方法是依次执行下列命令:
- chkconfig NetworkManager off
- chkconfig network on
- service NetworkManager stop
- service network start
随后问题解决,但是我的CentOS依旧无法通过VitualBox桥接上网,我才想问题应该出在VirtualBox设置上,果然,需要在网络设置中允许虚拟网络:
最终问题解决,可以连通网络。
另外需要值得说明的是,之前自己使用VMware或VirtualBox采用NAT建立CentOS-6.7的虚拟机,网络总是无法联通,后来通通使用了Bridge模式,桥接模式要比NAT模式更为稳定一些。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



In recent days, Ice Universe has been steadily revealing details about the Galaxy S25 Ultra, which is widely believed to be Samsung's next flagship smartphone. Among other things, the leaker claimed that Samsung only plans to bring one camera upgrade

OnLeaks has now partnered with Android Headlines to provide a first look at the Galaxy S25 Ultra, a few days after a failed attempt to generate upwards of $4,000 from his X (formerly Twitter) followers. For context, the render images embedded below h

Alongside announcing two new smartphones, TCL has also announced a new Android tablet called the NXTPAPER 14, and its massive screen size is one of its selling points. The NXTPAPER 14 features version 3.0 of TCL's signature brand of matte LCD panels

In recent days, Ice Universe has been steadily revealing details about the Galaxy S25 Ultra, which is widely believed to be Samsung's next flagship smartphone. Among other things, the leaker claimed that Samsung only plans to bring one camera upgrade

The Vivo Y300 Pro just got fully revealed, and it's one of the slimmest mid-range Android phones with a large battery. To be exact, the smartphone is only 7.69 mm thick but features a 6,500 mAh battery. This is the same capacity as the recently launc

Samsung has not offered any hints yet about when it will update its Fan Edition (FE) smartphone series. As it stands, the Galaxy S23 FE remains the company's most recent edition, having been presented at the start of October 2023. However, plenty of

The Redmi Note 14 Pro Plus is now official as a direct successor to last year'sRedmi Note 13 Pro Plus(curr. $375 on Amazon). As expected, the Redmi Note 14 Pro Plus heads up the Redmi Note 14 series alongside theRedmi Note 14and Redmi Note 14 Pro. Li

OnePlus'sister brand iQOO has a 2023-4 product cycle that might be nearlyover; nevertheless, the brand has declared that it is not done with itsZ9series just yet. Its final, and possibly highest-end,Turbo+variant has just beenannouncedas predicted. T
