Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Ubuntu 11.10 and installed the Virtualbox from the Ubuntu Software Center. Later on, I installed three (3) Windows XP Virtual Machines. I'm trying to get all of the three VMs to ping each other for me to test a client/server program I've created.

How can I get all of the three VMs to see each other? This includes pinging each other sucessfully, able to share VMs shared folders to each other, and be able to access the Internet from the host itself.


share|improve this question
up vote 0 down vote accepted

you can either use nat or bridged network interface. either way the vms should all be in the same subnet and can ping each other and share resources as long as their firewall rules allow and shares are set up.

share|improve this answer
I see. However, when I used NAT, all of the three VMs share the same IPv4 Address. when I use BNI (Bridged Network Interface), it follows the DHCP Server Pool but they cannot ping each other [Always RTO - Request Time Out]. BTW, I'm always using a WiFi Broadband. – Cyril Horad Apr 19 '12 at 22:50
if the ip addresses are in the same subnet, then it is the firewall setup in the router. if they get ips in different subnets then things are much more complicated and you somehow have to route between the subnets. – johnshen64 Apr 19 '12 at 22:54
The IP given to the VMs are in the subnet but exceeds the DHCP Pool Range. If I use BNI instead, how I am going to configure the Adapter so I could connect to the Internet using the VM. – Cyril Horad Apr 19 '12 at 22:57
if you use bridged, then the router for the host should route you to the internet, just like the host, because in this case the vm network is no different from its host. – johnshen64 Apr 19 '12 at 23:09
I stand corrected. I was pertaining to Host-only adapter not BNI. I just can't get the BNI or NAT configuration release a different IPv4 Address for each of the VM. It's ok if the Internet can't be supported. – Cyril Horad Apr 19 '12 at 23:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .