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 want to setup a Linux server and client network on virtual machines on my Windows 7 laptop, so that I can learn about Linux server system.

The setup will be one VM as Ubuntu server and 2 VMs as client machines.

How can I go about doing this with VirtualBox?

share|improve this question

4 Answers 4

up vote 1 down vote accepted

Go to Settings for a selected machine, select Network and choose Internal Network then choose a name for your internal network (for example inet). make sure that you choose the same name internal network name for both VMs. That setup will allow you to confine both machines to a virtual network without access to the network to which your laptop is connected. Good for isolation, bad for VM updates. Then again if you need updates you can just assign each machine an additional virtual network card in bridged or natted mode.

share|improve this answer
    
... or, since alwbtc is learning networking, practice setting up one of the Linux boxes as a NAT for the other. –  CarlF Oct 6 '11 at 21:21

Just add a host only NIC to each VM and they will be on the same flat network by default.

share|improve this answer

I would suggest that you assign all your VMs to a single virtual interface that provides NAT via the host. That will allow your virtual machines to interact with each other and your workstation like a 'real' network and concurrently allow them out to the internet for retrieving updates, software packages, etc.

share|improve this answer

I'm doing this right now, but I had way less trouble setting the VMs as 'bridged network adapter'.

enter image description here

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.