Virtualbox centos no eth0

centos6virtualbox

just installed a fresh centos-minimal and i can not get bridged network to work or any of the networks not even in host-only mode. when you run ifconfig there is no eth0 only a lo,

also when you cat /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE="eth0"
HWADDR="08:00:27:FE:D5:10"
NM_CONTROLLED="yes"
ONBOOT="no"

Best Answer

As cpuguru said, you need to config the network. So login on your centos and execute:

vi /etc/sysconfig/network-scripts/ifcfg-eth0

As Chris R explained, you should edit the contents of that file to end up having this:

DEVICE="eth0"
HWADDR=MAC Address*System MAC*
NM_CONTROLLED="no"
ONBOOT="yes"
BOOTPROTO="dhcp"

Then save (escape :wq INTRO) and then reboot:

reboot
Related Topic