So I have done my share of investigating this problem...
I just recently created an CentOS 6 VM on my LinuxMint box using VirtualBox. I left all the recommended values the same upon creation (8GB HDD, 512MB RAM, blah blah blah...). But it DOESNT connect to the internet! When I try to ping an external network (google.com) it doesnt recognize the host:
ping: unknown host google.com
and when I try to ping my internal IP of my host box it says that:
connect: Network is unreachable
(perhaps it can see my host network, just doesn't know a route to it?)
I've cleared my iptables, used every single given network adapter VirtualBox offers, and used both NAT and Bridged Adapter modes. I also reaped Google of all that I could mentally find.
ifconfig it only shows the
lo interface (loopback), unless I manually enable the
eth0 interface via the
ifcfg-eth0 file (set
ONBOOT="yes") and restart. But when I enable the
eth0 interface, it doesnt show an IP; just the MAC and IPv6 one. I dont think its the host's internet or link to the Guest OS at all... I have a WinXP VM set up and it can access the internet.
Perhaps the answer is more obvious than I think...