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.

I have planned to install Ubuntu Server on our physical server but before that I'd like to mess up with that system in VirtualBox so I know I can get it working.

I have installed Ubuntu Server 13.04 on my PC in VirtualBox as well as Ubuntu 13.04 desktop edition. Now I need to configure their network.

What I want is a private network between the virtual machines and have them able to communicate to each other. That way I can test the servers installed on the server machine. If I set the mode ("Attached to") in network settings in VirtualBox to Internal network I get the virtual local area network for the virtual machines. The downside is that I can't have them connected to the internet which causes that I can't really test any networking servers - and that's the point of testing this setup.

So I'm asking, how do I form a virtual network between these virtual machines but have a real internet connection for them? Like Internal network and Bridged adapter combined.

share|improve this question

2 Answers 2

Please select the NAT mode from the Attached to dropdown list.

The machines will be floating in a private, internal network - just like in average home, behind NAT router. They will have access to the Internet, yet will be invisible from the outside - apart from the computer hosting VirtualBox (unless you set up port forwarding - again, just like with average home NAT router).

Read more: http://www.virtualbox.org/manual/ch06.html#network_nat

share|improve this answer

If I understand you right, you would like to test the ability of your (virtual) Ubuntu to act as a server, not just testing the OS in general.

The VM setup is not ideal because in general it is your host machine that acts like a server, not your guest. This is especially true in the NAT configuration, because all of the server-like activities are carried out in the host, not in the guest.

So, to circumvent this problem you may do as follows.

You may graba USB wifi adapter or of a ethernet-to-USB connector. The wifi adapter will require that you install hostapd to make it work like an AP, while via ethernet cable no such thing is required. At this point, you can connect to the virtual server with another pc ,a cellular phone, your xbox, and see how it works as a network server.

share|improve this answer

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.