Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I setup a Ubuntu virtualbox on win 2003 and access it from the internet? I'm new to the virtual concept ( and networking ) and I can't connect to my virtual Ubuntu machine from the internet.

I have 2 network cards in the host server and I have been trying to give the virtual Ubuntu machine access to the second network card and use that with no luck. What I need is a push in the right direction. I have tried to set up a bridge network but I don't know if I config the ip on the windows server or in the Ubuntu machine. I can give the second network card it's know public ip if I need.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

First things first, a virtual machine should behave just like a physical machine. If you have not already, set up a network card within Virtual Box and it should be made available to the virtual machine.

Next, it is up to you how to proceed. If you choose NAT/shared, this is the worst option for most scenarios. To any machine on your network, they will need to communicate to the IP of the host machine running virtualbox and you will need to use the configuration utility in order to forward ports to the guest.

The est solution you can choose is Bridged networking. This will basically split your network card and will look like a independent physical machine to anything else on the network. You simply need to go to the router and forward port 80 (or whatever services you want) to the IP address of the guest. You can see the IP through IFCONFIG or other tools, but at the end of the day, once set up, you treat it like a physical machine.

If I have not been clear or you want more details on anything, let me know.

share|improve this answer
    
Thank you for the info, I will try it. –  bjarkih Oct 18 '10 at 18:08
    
Do I set the ip for the network card in win or in the ubuntu vm ? I have 2 network cards in the win server –  bjarkih Oct 19 '10 at 10:13
    
@Bjarkih - You can do either. Treat the network card (if in bridged) as a physical network card to both the virtual machine and Windows machine - So, you need to set it up in the VM, but it is up to you to use it in the host as well. –  William Hilsum Oct 19 '10 at 13:24
    
Thank you for your help –  bjarkih Oct 20 '10 at 14:22

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.