Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Ubuntu (as a virtual machine using virtual box) with the openssh server option and apache.

When I do ps -ef | grep apache I see apache is running. But:

  • I can't connect to the server from the browser (for example
  • I don't see the new server on my router's list of connected devices
  • I can't putty to that ip address (connection time out)

I set the ip address by doing vi /etc/network/interfaces then changed

  • dhcp to static
  • added address the next available number on my router's list of connected devices
  • added netmask
  • added gateway my router's ip address

I then did vi /etc/resolv.conf and changed it to:

  • nameserver my router's ip address
  • domain left it blank
  • search left it blank

I then did /etc/init.d/networking restart

What could be the problem. I would expect the server to be able to register itself on the router and be connectable from the browser at its ip address. But something's not wokring. Anyone can spot it? or some advice on what I can do to troubleshoot this. I just new to ubuntu and linux.

share|improve this question

Is your VM configured to be in bridged mode? If not, change it to bridged mode so that your VM will appear as just another machine on your network.

share|improve this answer
Thanks for the hint. Does this tutorial look like what I'm supposed to do?‌​ith-virtualbox-and-a-fedora-host/ It's a Fedora tutorial, while I'm using Ubuntu. Would that make a difference? I mean will the commands still work just the same? – drums Jul 25 '10 at 11:26
What is your host OS? Use the VirtualBox GUI to set the networking mode of your Ubuntu VM to bridged mode. You should not need to change the network configuration in your Ubuntu VM if your router is also acting as a DHCP server. – Convict Jul 26 '10 at 11:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.