Networking questions "No Route to Host"

Discussions about using Linux guests in VirtualBox.
Post Reply
BannerAd
Posts: 2
Joined: 3. Jun 2010, 03:25
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Ubuntu Linux

Networking questions "No Route to Host"

Post by BannerAd »

I have just got VirtualBox up and running on OS and have created 2 separate Ubuntu Linux VMs. Everyone is networking ok to the outside world, but I can't get the Linux VMs to talk to each other (I'm just trying to ssh for proof-of-concept). Here is the truth table:

OS X Host can ssh to linux1 and linux2
linux1 can ssh to OS X Host but not linux2 (No Route to Host)
linux2 can ssh to OS X Host but not linux1 (No Route to Host)

Everyone has a legitimate IP address that looks to have come from my router. My networking kung-fu is too weak here. Any ideas of how I can trouble shoot this?

Regards,
Bob
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Networking questions "No Route to Host"

Post by Perryg »

If you let it setup as default then you are using NAT and the guests will not see each other nor the host.
If you have a router then use Bridged mode or use host-only and add a second adapter set to NAT.
Read you VirtualBox users guide Chapter 6. Virtual networking for information.
BannerAd
Posts: 2
Joined: 3. Jun 2010, 03:25
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Ubuntu Linux

Re: Networking questions "No Route to Host"

Post by BannerAd »

I have a router and I am using Bridged mode, but only on Adapter2 (which is en:Airport). I wonder if somehow the default, NAT, Adapter 1 is screwing this up. How I do not know. OK, OK, RTFM.

Thanks
Bob
Post Reply