Running the Calico tutorials on CoreOS using Vagrant and VirtualBox
These instructions allow you to set up a CoreOS cluster ready to network Docker containers with Calico Docker networking using Vagrant.
1. Streamlined setup of the VMs
1.1 Install dependencies
1.2 Clone this project
git clone https://github.com/projectcalico/calico.git
1.4 Startup and SSH
Run the following:
cd calico/v1.6/getting-started/docker/installation/vagrant-coreos vagrant up
To connect to your servers
- Linux/Mac OS X
vagrant ssh <hostname>
- Follow instructions from https://github.com/nickryand/vagrant-multi-putty
vagrant putty <hostname>
1.5 Verify environment
You should now have two CoreOS servers, each running etcd in a cluster. The servers are named calico-01 and calico-02 and IP addresses 172.17.8.101 and 172.17.8.102.
At this point, it’s worth checking that your servers can ping each other.
If you see ping failures, the likely culprit is a problem with the VirtualBox network between the VMs. You should
check that each host is connected to the same virtual network adapter in VirtualBox and rebooting the host may also
help. Remember to shut down the VMs with
vagrant halt before you reboot.
You should also verify each host can access etcd. The following will return an error if etcd is not available.
curl -L http://$ETCD_AUTHORITY/version
And finally check that Docker is running on both hosts by running
2. Try out Calico networking
Now you have a basic two node CoreOS cluster setup, see the Calico with Docker Networking Walkthrough for information on how to try Calico Networking.