Page 1 of 1

bridged network for centos6 guest

Posted: 30. Aug 2011, 13:40
by aidanewen
I'm using virtualbox and trying to get my centos6 virtual machine onto the network. Virtualbox is running on XP. In the virtual box settings I've enabled network adapter 1, selected the bridged adapter and selected the default hardware. On the virtual machine I've edited configuration files as follows (making sure that the mac address / hardware address matches the adapters mac address from the virutalbox settings):

Code: Select all

# cat /etc/sysconfig/network-scripts/ifcofg-eth0
DEVICE="eth0"
BOOTPROTO="none
MACADDR="08:00:27:7D:A8:DC"
ONBOOT="yes"
IPADDR=10.0.20.10
GATEWAY=255.0.0.55
# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=dev.host.com
NETOWRKING_IPV6=no
GATEWAY=10.0.0.55
# cat /etc/sysconfig/networking/devices/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
HWADDR=08:00:27:7D:A8:DC
ONBOOT=yes
NETMASK=255.0.0.0
IPADDR=10.0.20.10
GATEWAY=10.0.0.55
TYPE=Ethernet
When i restart networking I get the following:

Code: Select all

# /etc/init.d/network restart
Shutting down loopback interface:
Bringing up loopback interface:
Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.
eth0 never comes up and obviously I've got no access to / from the network.

Re: bridged network for centos6 guest

Posted: 26. Oct 2011, 13:29
by Mizanthrope
I faced the same error. The reason was that I copied the OS and MAC address in ifcfg-eth0 was the same as on the original machine. But Virtualbox changed it in cloned machine settings while cloning.

Check MAC addresses of the interface in the VB settings for the machine and in guest OS (e.g. /etc/sysconfig/network-scripts/ifcfg-eth0)

They MUST match!

Re: bridged network for centos6 guest

Posted: 25. Sep 2012, 08:50
by Kashif Aziz Awan
my problem solved by installing
VirtualBox 4.2
with
VirtualBox 4.2 Oracle VM VirtualBox Extension Pack
& then
delete
rm /etc/udev/rules.d/70-persistent-net.rules
then
init 6

cp /etc/sysconfig/network-script/ifcfg-eth0 /etc/sysconfig/networking/profiles/default/

it working for me

Re: bridged network for centos6 guest

Posted: 3. Oct 2012, 09:07
by gini_2007
I am in the midst of setting up a virtual web server for my Linux guest. Do I have to purchase a router or have an 10/100 ethernet to setup my virtual web server?

Thx in advance,
Aigini