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 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.

Thanks

share|improve this question

1 Answer 1

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. –  NanoGM 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. –  NanoGM 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. –  NanoGM Apr 19 '12 at 23:14

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.