I am trying to create a network using 3 virtual Ubuntu machines (master, slave1, slave2).
I hope posting this question here is acceptable. I'm not sure if the problem lies within Virtualbox configuration or inside my virtual machines. I expect the latter, so I asked my question here.
Host: Windows 7, using Virtualbox 4.2.8, network type is set to NAT. All machines have different MAC addresses. My VMs only need to communicate to each other, host machine serves as router.
master: Ubuntu 14.04
slave1: Ubuntu 14.04
slave2: Ubuntu 14.04
Instruction I'm trying to follow: http://mpitutorial.com/tutorials/running-an-mpi-cluster-within-a-lan/
I want to create an SSH key on master, share it with slave1 and slave2. I should be able to use this command on master:
ssh-copy-id slave1
to copy the ssh key to slave1 (and in the same way to slave2)
Error I get:
ERROR: ssh: connect to host slave1 port 22: No route to host
What is wrong with my configuration and how do I diagnose the problem?
I have tried different IP settings and addresses in hosts file, I run this command after making changes:
sudo /etc/init.d/networking restart
Master hosts file:
127.0.0.1 localhost
127.0.1.1 user-VirtualBox
192.168.0.100 master
192.168.0.101 slave1
192.168.0.102 slave2
slave1 hosts file:
127.0.0.1 localhost
127.0.1.1 user-VirtualBox
192.168.0.100 master
192.168.0.101 slave1
192.168.0.102 slave2
master IPV4 settings
Address: 192.168.0.100
Netmask: 255.255.255.0
Gateway: 192.168.0.1
DNS servers: (empty)
slave1 IPV4 settings
Address: 192.168.0.101
Netmask: 255.255.255.0
Gateway: 192.168.0.1
DNS servers: (empty)