Re: How to connect two VMs running in one system

Discussions related to using VirtualBox on Windows hosts.
Post Reply
neel
Posts: 5
Joined: 18. Sep 2009, 18:35
Primary OS: MS Windows XP
VBox Version: OSE Fedora
Guest OSses: XP

Re: How to connect two VMs running in one system

Post by neel »

Hi...
I need some help with this one...
I have installed virtual box in windows XP. Then i set up two virtual machines in that virtual box. Both being fedora 11.
I have manually given the two VMs diff IPs. They are 192.168.1.24 & 192.168.1.22. But as I run the two VMs simultaneously and try 2 ping each of the IPs
it shows destination unreachable. I have set the netmask to 255.255.255.0.
How can I resolve this issue???
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to connect two VMs running in one system

Post by Perryg »

What connection mode are you using? NAT, Bridged, Host-only, Internal?
Also look at firewall issues.
neel
Posts: 5
Joined: 18. Sep 2009, 18:35
Primary OS: MS Windows XP
VBox Version: OSE Fedora
Guest OSses: XP

Re: How to connect two VMs running in one system

Post by neel »

Hey thnx 4 taking time & helping out.
Is the connection type an issue??? I am not sure about it. How do I check for that???
I have manually assigned the two VMs diff IPs using the SETUP command in fedora. I can use my http server in both but cant ping each of d 2 VMs.
I have already tried using iptables -F to unblock the firewall in both the VMs.
One more thing the 2 VMs have been installed from same virtual box.
I need some way 2 make these VMs connect each other from my single virtual box.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to connect two VMs running in one system

Post by Perryg »

In the VirtualBox main program where you set it all up, look under the network settings and see what you are using. Report back here.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: How to connect two VMs running in one system

Post by Sasquatch »

And please read the manual, chapter 6, to learn more about the network modes.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
neel
Posts: 5
Joined: 18. Sep 2009, 18:35
Primary OS: MS Windows XP
VBox Version: OSE Fedora
Guest OSses: XP

Re: How to connect two VMs running in one system

Post by neel »

I just checked the network settings and the two VMs are using NAT.
I changed the settings to Internal Network and tried to ping each of the IPs but it still shows destination unreachable.
Please advice a method so that I can connect the two VMs.
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: How to connect two VMs running in one system

Post by BillG »

The IP address and netmask are OK. If they are in the same network it should work.

As suggested earlier, firewalls can block ping.
Bill
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: How to connect two VMs running in one system

Post by Sasquatch »

With Internal Networking, the name of the network must be the same. If you want to do another test, you can use Host-Only (only difference with Internal is that this includes the Host in the network).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
neel
Posts: 5
Joined: 18. Sep 2009, 18:35
Primary OS: MS Windows XP
VBox Version: OSE Fedora
Guest OSses: XP

Re: How to connect two VMs running in one system

Post by neel »

Well i changed the network settings in virtual box to Host-Only and its working.
Thnx to evry1 4 helping.
Post Reply