How to Set Up LAN connection in Oracle VM VirtualBox 3.2.8

Posted on 2010-08-12
Last Modified: 2012-05-10

I had built 2 VM in my VirtualBox. 1 is Server 2008 (Computer Name as VM_Srv2008) and another is client Windows XP Pro (Computer Name as VM_XP).

What should I do to make the 2 VMs able to communicate with each other. For example, VM_Srv2008 can ping to VM_XP. And VM_XP can join the domain of VM_Srv2008 AD.

Question by:hlmarine
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
  • +1
LVL 88

Accepted Solution

rindi earned 110 total points
ID: 33427011
Use either "Bridged" Networking or "Host Only". If it is "Host Only" you will have a "Closed" network of those VM's, they won't be reachable from other physical PC's on your LAN. Also make sure you give the 2k8 server a static IP, like should be done with all servers.
LVL 37

Assisted Solution

bbao earned 110 total points
ID: 33427197
rindi gives all the information you need.

additionally, as the "Host Only" option connects the two VMs in a closed network, the VMs can't access the internet. you may add one more network adapter on the server VM and assign the new adapter into "Bridge" mode, this will give this server VM the channel to access your physical LAN as well as the internet. enabling routing or ICS on  the W2K8 would allow VM_XP to access the internet through VM_SRV2008.

hope it helps,
LVL 62

Expert Comment

ID: 33427354
I just wonder if you are running VirtualBox on Windows, Linux or MacOS X....
Network config is radically different.
Bridged network connects them to network as normal machines to join the domains.
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.


Author Comment

ID: 33427786
Hi All,

thanks for your resposne. Will try it out later and response back.

I am running VirtualBox on Windows.
LVL 62

Expert Comment

ID: 33427834
then if you installed without much of customisation it should work fine.
LVL 88

Expert Comment

ID: 33428378
In Virtualbox the default networking is set to NAT, so it probably won't work fine without use intervention.

Author Comment

ID: 33447637
Alright... It works with Host-Only connection to make the VMs communicate with each other.

But I can't make the VM_Srv2008 bridge to my physical network for internet connection.


For Bridge Adapter,
Attached to: Bridged Adapted
Name: I will select the one which is having internet connection, which is my physical wifi NIC.

Adapter Type: Do i need to change anything or leave as default?
Cable connected - Tick or not tick? I am using WiFi for internet in my physical computer.
LVL 37

Expert Comment

ID: 33448208
> But I can't make the VM_Srv2008 bridge to my physical network for internet connection.

this is for another (virtual) NIC On W2K8. additionally, the default gateway for W2K8 should be the default gateway of your LAN.

Author Comment

ID: 33451607
Ok ! I manage to do it. Now left with last step.

VM1 - Server 2008
Network Adapter 1 - Host-only Adapter (,
Network Adapter 2 - Bridged Adapter -> Bridged to my physcial PC network adapter. IP Address is the same range of the IP I have obtained just like my physcial PC. (IP ADD:, Mask:, Gateway:, DNS:

VM2 - XP
Network Adapter 1 - Host-only Adapter (

So how to I point  my VM2 (XP) into VM1 (Server) to make VM2 connectivity to internet?
LVL 62

Assisted Solution

gheist earned 30 total points
ID: 33452248
NAT is sufficient for browsing internet
Bridged connection allows to join the domains.

Author Comment

ID: 33455483
Yup, Just realise if i set all Network Adapter #1 to Bridge connection, they can link to my physical PC and also link among themselves.

I decided to try it this way to create my Server Clients VMs.

Author Closing Comment

ID: 33455543
Activate all VM with only 1 Network adapter in bridge mode. They can communicate with each other.


Activate all VM client windows with only 1 Network adapter in host-only. And activate VM server with 1 network adapter as host-only and 2nd network adapter as bridge mode.

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PowerCLI Command For Guest VM Boot Time 1 35
VMWare 101 9 101
Change subnet - effects on server 14 41
Setting up Sonicwall behind Router 6 7
If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question