Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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. img687.imageshack.us/img687/1184/20120127225619.png 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
1  
@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
add comment

Your Answer

 
discard

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.