vagrant up your life!


if you don't trust us...preview at:

whois alexrodriguez

  • whoami
    • Name - Alex
    • elrey741 on slack
  • jobs
    • work for university
    • love setting up the lab and learning new perspectives
    • being curious =D

man vagrant

  • vagrant --help
  • less vagrant
  • vagrant="happy" ; $vagrant
  • #!/bin/bash... :)
    • provisioning

Vagrant init

  • pre reqs/next steps
    • Laptop
    • 4 Gb ram
    • 20 Gb Storage
    • Virtualbox
    • Vagrant


  • Make sure you have one of these installed
    • Virtualbox #used in slideshow
    • Vmware
    • Docker
  • All these and more

apt-get install vagrant

  • Download Vagant
    • linux - 
    • mac - website above
    • windows - website above #needs  a reboot
apt-get install vagrant #whatever package manager mine is pacman

Vagrant init env

Very important to stay organized!

cd Desktop
mkdir vagrant



mkdir vagrant

Vagrant init playing-around

# if os == Windows
mkdir vagrant-ubuntu
cd vagrant-ubuntu
# if os == Linux
mkdir vagrant-ubuntu && cd $_

# now time for some fun :)
vagrant init hashicorp/precise64
vagrant up
vagrant ssh
sudo apt-get install sl
sudo apt-get install cmatrix
vagrant halt
vagrant global-status
vagrant destroy
cd ..
# can always go back into directory and vagrant up

Now we vagrant

mkdir vagrant-kali
cd vagrant-kali
wget -Outfile Vagrantfile
explorer .


mkdir vagrant-kali && cd $_ #whatever you want to call it
nano Vagrantfile


Customize the Vagrantfile

Vagrant.configure("2") do |config| = "49thsd/kali-linux-2.0-amd64"
  config.vm.box_url = ""
  config.vm.provision "shell",
    inline: "apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y"

Vagrantfile (change to look like this)

What do you have and next?

  • start vagrant box


  • Changed!!!
vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Running provisioner: shell...
    default: Running: inline script
==> default: Hit:1 kali-rolling InRelease

Vagrant halt

  • Takeaways
    • Automation
  • My future presentations
  • have fun =)
  • Slideshows (@github)
  • Resources in speakers notes as well!

Copy of Vagrant

By elrey741 (Alex)