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'm trying to setup ubuntu server in virtualbox.

Host is Windows 7 x64

Guest is Ubuntu 11.10 x64

All I want to do is, to make this server accessible from internet. How can I do it? Please help.

share|improve this question

If the Windows 7 machine has an external IP on the internet, set the VM guest's network adaptor to "bridging", and assign it the external IP.

If the Windows 7 machine is internal, then you'll need to set up bridging mode, as above, but then give it an internal network address on the same network as the Win7 host. You'll also need to configure your gateway router to pass through traffic from an external IP to the internal network IP that you assigned the guest.

share|improve this answer
Wind 7 machine has external ip. but when I try to bridge it, guest os - ubuntu doesn't detect network at all – Tural Aliyev Jan 27 '12 at 18:57
Have you been assigned additional IPs from your ISP? – James O'Gorman Jan 27 '12 at 19:03
@JamesO'Gorman no – Tural Aliyev Jan 27 '12 at 19:36
@TuralTeyyuboglu Then you won't be able to attach your VM directly to the Internet by using a bridge. You'll have to do DNAT (aka port forwarding) from the host OS. – James O'Gorman Jan 27 '12 at 19:40

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.