In this article, I will show you 2 steps. The first step is install Vagrant Ubuntu Server 14.04. The second one is install CoreOS in Vagrant. Actually, I run Ubuntu Server in Vmware. So to run CoreOS, I have to turn on Virtualize Intel. Please see image below:
Install VirtualBox in Ubuntu:
1 2 |
sudo apt-get update sudo apt-get install virtualbox |
Install Vagrant
1 |
sudo apt-get install vagrant |
Upgrade Vagrant:
1 2 |
https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.deb sudo dpkg -i vagrant_1.7.2_x86_64.deb |
Install Git if needed
1 |
sudo apt-get install git |
Get CoreOS-Vagrant Sample
1 2 |
git clone https://github.com/coreos/coreos-vagrant.git cd coreos-vagrant |
Create config file from sample config file:
1 2 3 4 |
cp config.rb.sample config.rb vi config.rb cp user-data.sample user-data vi user-data |
Turn Vagrant Machine on:
1 |
sudo vagrant up |
Try to run CoreOS nodes:
1 |
sudo vagrant ssh core-01 -- -A |