Two Centos Systems - unable from one to the other

Discussions about using Linux guests in VirtualBox.
Post Reply
brianjb
Posts: 7
Joined: 17. Apr 2013, 03:33

Two Centos Systems - unable from one to the other

Post by brianjb »

My host machine is a Macbook pro. I am using VirtualBox 4.2.12

I have two virtuals that I use. On both of them, I have this:

Adaptor 1
Attached to Internal Network

Adaptor 2
NAT


I am trying to ssh from one to the other. I also want the ability to scp files.

I am getting errors, "no route to host".

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

Re: Two Centos Systems - unable from one to the other

Post by Perryg »

Internal hooks the two guest together over a virtual switch. VBox NAT gives them the Internet, None of these allow for communication to the host. Bridged or host-only is what you need for that.
brianjb
Posts: 7
Joined: 17. Apr 2013, 03:33

Re: Two Centos Systems - unable from one to the other

Post by brianjb »

Sorry for not being more clear.

I want to ssh from one virtual machine to the other. I don't care about going from virtual to host
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Two Centos Systems - unable from one to the other

Post by Perryg »

Just going by the "I am getting errors, "no route to host" " you posted. In that case you need to make sure that you have them both set up in the same subnet and check the firewall in both to make sure the protocol is open for what you need to do. (no gateway or they will not work)
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Two Centos Systems - unable from one to the other

Post by noteirak »

After following Perry's recommendation, be sure you use the Internal NIC IP and not the NAT IP.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply