ubuntu server in a vm, can't connect to internet

Posted by jessh on Super User See other posts from Super User or by jessh
Published on 2012-09-07T06:52:43Z Indexed on 2012/09/07 15:40 UTC
Read the original article Hit count: 229

Filed under:
|
|

I'm attemtping to host my own development web server in a virtual box guest, Ubuntu Server. I would like this virtual machine to be accessible from not only my home network, but outside the LAN as well. As such, I've set up a static IP (so I can later forward ports to this static IP.) My virtual box settings have this vm only using one adapter -- in bridged mode.

Here's what my /etc/network/interfaces looks like:

iface eth0 inet static
address 10.0.1.203 /*this is outside the DHCP range*/
netmask 255.255.255.0
gateway 10.0.1.1
network 10.0.1.0
broadcast 10.0.1.255
dns-nameservers: 8.8.8.8 8.8.8.4

Here's what the output of ifconfig looks like: https://dl.dropbox.com/u/2241201/locker/ubuntu.png

My Host is a mac mini, running OS X 10.7.

From within the guest, if I ping google.com:

$ ping google.com
# outputs 'ping: unknown host google.com' immediately

Why am I unable to access the web?

© Super User or respective owner

Related posts about ubuntu

Related posts about networking