Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Vagrantfordevops

101 views

Published on

This is a short presentation on getting started with vagrant. I will talking about creating basic stuff like boxes, ssh, vagrantfile and then go into more intermediate concepts like provisioning, synced folders and multi machine via same vagrantfile. There will also be few demos. In the end I will be talking about the project that I am currently working on.

Published in: Software
  • Be the first to comment

Vagrantfordevops

  1. 1. Vagrant for Devops By Deepanshu (@deep0x00)
  2. 2. What is vagrant ? ● Open source tool for creating virtual test evironments ● Written in ruby by Mitchell Hashimoto ● Wrapper over traditional Virtualization Software like virtualbox, etc ● Provides CLI to manage VM
  3. 3. How to install vagrant ? ● Download and Install Virtualbox https://www.virtualbox.org/wiki/Downloads ● Download and Install Vagrant https://www.vagrantup.com/downloads.html Done :)
  4. 4. Few Basic Terminologies ● Box ● Vagrantfile ● Halt ● Ssh ● destroy
  5. 5. DEMO 1 Setting VM regular way VS Using Vagrant
  6. 6. Problem Setting up VM regular way
  7. 7. Solution Is Vagrant
  8. 8. Setting up VM using vagrant ● Mkdir ubuntuV ● Cd ubuntuV ● Vagrant init ● Gedit Vagrantfile ● Vagrant up
  9. 9. Problem Solved !!
  10. 10. Why Vagrant ? ● Lowers setup time ● Easy and quick to use ● Eliminate works on my machine excuse ● Command line tool
  11. 11. More intermediate concepts ● Synced Folder - Allows vagrant to share files between Host computer and the vagrant box ● Provisioning – Allows to automatically run some script after virtual machine is installed ● Multi machine – Allows to create multiple VM with same Vagrantfile
  12. 12. Demo 2 shell script which uses the provisioning option in the Vagrantfile to install apache
  13. 13. My incomplete website running from provisioned vagrant box
  14. 14. Demo 3 Multiple machines are defined within the same project Vagrantfile Via config.vm.define
  15. 15. Deployed 4 vagrant boxes in less than 10 mins !!
  16. 16. Creating your own boxes ● vewee - Automated way of creating virtualboxes ● It also supports Virtualbox,VMWare fusion
  17. 17. Whats next?
  18. 18. ● Currently I am working on combining Vagrant with Virtual LTSP server ● Vagrant advantage is easy and quick to deploy ● LTSP allows computers of a LAN to boot through network from a single server ● Combining these 2 would definitely be a cool project
  19. 19. Thats all folks..
  20. 20. Question time..!
  21. 21. Thank you

×