Debian/Ubuntu Vagrant Setup

Vagrant installation on Debian/Ubuntu Linux

To participate in the lab you can use any 3 Linux servers of your choice. The labs are tailored for setup with CentOS/RHEL hosts. Below are instructions on how to setup the 3 required host with Vagrant on Linux. Follow the step by step guide to bootstrap the techlab environment on your OS of choice.

Connectivity Details

With the Linux Vagrant setup provided the three local CentOS virtual machines running under KVM have the following IP addresses and credentials.

1
2
3
4
5
6
control: 192.168.122.30
node1: 192.168.122.31
node2: 192.168.122.32

user: vagrant
password: vagrant

Debian/Ubuntu Based Systems

Techlab Installation and Startup

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# install libvirt and dependencies
sudo apt install libvirt-daemon libvirt-clients libvirt-dev

# install vagrant from hashicorp
curl --location -o /var/tmp/vagrant_2.2.18_x86_64.deb \
  https://releases.hashicorp.com/vagrant/2.2.18/vagrant_2.2.18_x86_64.deb
sudo dpkg -i /var/tmp/vagrant_2.2.18_x86_64.deb

# install vagrant plugin for libvirt
vagrant plugin install vagrant-libvirt

# create working directory and download vagrant file
mkdir ansible-techlab
cd ansible-techlab
curl -o Vagrantfile \
  https://raw.githubusercontent.com/puzzle/ansible-techlab/master/Vagrantfile

# setup vm's
vagrant up

Techlab Shutdown

1
2
3
4
cd ansible-techlab

# shutdown all vm's
vagrant destroy -f