SlideShare a Scribd company logo
1 of 23
Vagrant
Agenda
• Introduction to Vagrant
• Create VM

• Provisioning
• plugins

2/17/2014

Copyright 2013 Trend Micro Inc.
Introduction

2/17/2014

Copyright 2013 Trend Micro Inc.
Vagrant
• A open source command line VM provision tool
• MIT licence

• Still virtualization,
but more easier, more flexible
• Support shell, puppet, chef on provisioning

2/17/2014

Copyright 2013 Trend Micro Inc.
Easy to use and share
http://www.vagrantbox.es/
http://puppet-vagrant-boxes.puppetlabs.com/

2/17/2014

Copyright 2013 Trend Micro Inc.
Installation
• Install virtualbox
– https://www.virtualbox.org/wiki/Downloads

• Install vagrant (support windows, mac, linux)
– http://downloads.vagrantup.com/tags/v1.3.5

• Get GNU commands on windows (not necessary)
– Install git (MINGW)
– Install Cygwin (too fat)

2/17/2014

Copyright 2013 Trend Micro Inc.
Architecture
Providers

2/17/2014

Copyright 2013 Trend Micro Inc.
How does it work?
• Via VBoxManage tool
• list running VM
– $ VBoxManage list runningvms

• pause VM
– $ VBoxManage controlvm <vmname> pause

• send poweroff single to VM
(tells VM OS to shutdown)
– $ VBoxManage controlvm <vmname> acpipowerbutton

• …
2/17/2014

Copyright 2013 Trend Micro Inc.
Why we need it
• Deploy a project on a machine for testing
– mess things up
– Fix it
– …loop…

• Environment specific
– I can run it well on MY machine
(cause I only test it on my machine)

• Can not automate

• I don‟t have machines…
2/17/2014

Copyright 2013 Trend Micro Inc.
Problem to solve
• Provisioning:
– automate trivial things
• install httpd, mysql, config, config, config…

• reuse:
– Package configured VM as a “box”

• testing:
– clean environment for testing

• Portable:
– one box file
– local machine
2/17/2014

Copyright 2013 Trend Micro Inc.
Create VM

2/17/2014

Copyright 2013 Trend Micro Inc.
Basic Commands
• Vm status control:
–
–
–
–

Up
halt
destroy
reload
(for config change)
– resume
– suspend

2/17/2014

Copyright 2013 Trend Micro Inc.
Create a VM
• vagrant box add precise32
http://files.vagrantup.com/precise32.box
• Vagrant init precise32 (new a vagrantfile)
• Vagrant up (create VM)
• vagrant ssh (get into the VM)

2/17/2014

Copyright 2013 Trend Micro Inc.
Networking
• default : eth0 for NAT
• Port forwarding
– config.vm.network :forwarded_port, host: 8070, guest: 8070

• Host-only
– config.vm.network :private_network, ip: "192.168.56.2“

• Bridge
– config.vm.network :public_network
– config.vm.network :public_network, :bridge => 'en0: Wi-Fi
(AirPort)„
• (Not always work)
2/17/2014

Copyright 2013 Trend Micro Inc.
More settings in Vagrantfile
• Hardware spec.
– config.vm.provider :virtualbox do |vb|
–
vb.customize ["modifyvm", :id, "--memory", "1024"]
– end

• Hostname
– config.vm.hostname = “YOUR_HOSTNAME“

• Share folder
– config.vm.synced_folder "../data", "/vagrant_data“
host
guest
2/17/2014

Copyright 2013 Trend Micro Inc.
Provisioning

2/17/2014

Copyright 2013 Trend Micro Inc.
Shell
• Auto execute the shell script as root
• Vagrantfile syntax:
– config.vm.provision :shell, :path => "bootstrap.sh"

• Command
– $ vagrant provision –provision-with shell

2/17/2014

Copyright 2013 Trend Micro Inc.
Puppet
• Auto apply a puppet script
• Vagrantfile syntax:
– config.vm.provision :puppet do |puppet|
– puppet.manifests_path = "manifests"
– puppet.manifest_file = "init.pp"
– end

• Folder structure:
– Vagrantfile
– Manifests
– Init.pp
2/17/2014

Copyright 2013 Trend Micro Inc.
Plugins
• vagrant plugin install vagrant-vbox-snapshot
• vagrant plugin install vagrant-vbguest

2/17/2014

Copyright 2013 Trend Micro Inc.
Q&A

2/17/2014

Copyright 2013 Trend Micro Inc.
Backup Slides

2/17/2014

Copyright 2013 Trend Micro Inc.
Get ssh command on windows
• ssh
– Install git (MINGW)
– Install Cygwin (too fat, I think)

• There‟re many ways you can do to achieve this goal,
My suggestion is to install git on your windows
– Download git
– 6 page quick tutorial

• Then use putty to ssh in.

2/17/2014

Copyright 2013 Trend Micro Inc.
Reference
• http://www.slideshare.net/ihower/vagrant-osdc
• https://github.com/mitchellh/vagrant-aws

• http://kvz.io/blog/2013/01/16/vagrant-tip-keep-virtualboxguest-additions-in-sync/

2/17/2014

Copyright 2013 Trend Micro Inc.

More Related Content

What's hot

kubernetes - minikube - getting started
kubernetes - minikube - getting startedkubernetes - minikube - getting started
kubernetes - minikube - getting started
Munish Mehta
 

What's hot (20)

Ansible - Introduction
Ansible - IntroductionAnsible - Introduction
Ansible - Introduction
 
Ansible presentation
Ansible presentationAnsible presentation
Ansible presentation
 
Nginx
NginxNginx
Nginx
 
Ansible
AnsibleAnsible
Ansible
 
Packer
Packer Packer
Packer
 
Jenkins Overview
Jenkins OverviewJenkins Overview
Jenkins Overview
 
kubernetes - minikube - getting started
kubernetes - minikube - getting startedkubernetes - minikube - getting started
kubernetes - minikube - getting started
 
Packer by HashiCorp
Packer by HashiCorpPacker by HashiCorp
Packer by HashiCorp
 
Paul Angus - CloudStack Backup and Recovery Framework
Paul Angus - CloudStack Backup and Recovery FrameworkPaul Angus - CloudStack Backup and Recovery Framework
Paul Angus - CloudStack Backup and Recovery Framework
 
Jenkins CI
Jenkins CIJenkins CI
Jenkins CI
 
Jenkins
JenkinsJenkins
Jenkins
 
Introduction to ansible
Introduction to ansibleIntroduction to ansible
Introduction to ansible
 
Building Windows Images with Packer
Building Windows Images with PackerBuilding Windows Images with Packer
Building Windows Images with Packer
 
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlueVNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
 
Introduction to Ansible
Introduction to AnsibleIntroduction to Ansible
Introduction to Ansible
 
Continuous Delivery with Jenkins
Continuous Delivery with JenkinsContinuous Delivery with Jenkins
Continuous Delivery with Jenkins
 
Jenkins Pipelines
Jenkins PipelinesJenkins Pipelines
Jenkins Pipelines
 
Proxmox for DevOps
Proxmox for DevOpsProxmox for DevOps
Proxmox for DevOps
 
Kubernetes
KubernetesKubernetes
Kubernetes
 
An Introduction To Jenkins
An Introduction To JenkinsAn Introduction To Jenkins
An Introduction To Jenkins
 

Similar to Vagrant

Similar to Vagrant (20)

Virtualization with Vagrant (ua.pycon 2011)
Virtualization with Vagrant (ua.pycon 2011)Virtualization with Vagrant (ua.pycon 2011)
Virtualization with Vagrant (ua.pycon 2011)
 
Vagrant
VagrantVagrant
Vagrant
 
Vagrant Up in 5 Easy Steps
Vagrant Up in 5 Easy StepsVagrant Up in 5 Easy Steps
Vagrant Up in 5 Easy Steps
 
20180607 master your vms with vagrant
20180607 master your vms with vagrant20180607 master your vms with vagrant
20180607 master your vms with vagrant
 
Vagrant For DevOps
Vagrant For DevOpsVagrant For DevOps
Vagrant For DevOps
 
Making Developers Productive with Vagrant, VirtualBox, and Docker
Making Developers Productive with Vagrant, VirtualBox, and DockerMaking Developers Productive with Vagrant, VirtualBox, and Docker
Making Developers Productive with Vagrant, VirtualBox, and Docker
 
Create Development and Production Environments with Vagrant
Create Development and Production Environments with VagrantCreate Development and Production Environments with Vagrant
Create Development and Production Environments with Vagrant
 
WordPress Development with VVV, VV, and Vagrant
WordPress Development with VVV, VV, and VagrantWordPress Development with VVV, VV, and Vagrant
WordPress Development with VVV, VV, and Vagrant
 
NetDevOps Developer Environments with Vagrant @ SCALE16x
NetDevOps Developer Environments with Vagrant @ SCALE16xNetDevOps Developer Environments with Vagrant @ SCALE16x
NetDevOps Developer Environments with Vagrant @ SCALE16x
 
Intro to vagrant
Intro to vagrantIntro to vagrant
Intro to vagrant
 
Building with Virtual Development Environments
Building with Virtual Development EnvironmentsBuilding with Virtual Development Environments
Building with Virtual Development Environments
 
Varying WordPress Development Environment WordCamp Columbus 2016
Varying WordPress Development Environment WordCamp Columbus 2016Varying WordPress Development Environment WordCamp Columbus 2016
Varying WordPress Development Environment WordCamp Columbus 2016
 
Vagrant - Team Development made easy
Vagrant - Team Development made easyVagrant - Team Development made easy
Vagrant - Team Development made easy
 
Automated Infrastructure and Application Management
Automated Infrastructure and Application ManagementAutomated Infrastructure and Application Management
Automated Infrastructure and Application Management
 
WSO2ConEU 2016 Tutorial - Deploying WSO2 Middleware on Containers
WSO2ConEU 2016 Tutorial - Deploying WSO2 Middleware on ContainersWSO2ConEU 2016 Tutorial - Deploying WSO2 Middleware on Containers
WSO2ConEU 2016 Tutorial - Deploying WSO2 Middleware on Containers
 
Deploying WSO2 Middleware on Containers
Deploying WSO2 Middleware on ContainersDeploying WSO2 Middleware on Containers
Deploying WSO2 Middleware on Containers
 
Vagrant + Docker
Vagrant + DockerVagrant + Docker
Vagrant + Docker
 
Varying WordPress Development Environment WordCamp Cincinnati 2016
Varying WordPress Development Environment WordCamp Cincinnati 2016Varying WordPress Development Environment WordCamp Cincinnati 2016
Varying WordPress Development Environment WordCamp Cincinnati 2016
 
Linux containers and docker
Linux containers and dockerLinux containers and docker
Linux containers and docker
 
Postgres the hardway
Postgres the hardwayPostgres the hardway
Postgres the hardway
 

More from Evans Ye

ONE FOR ALL! Using Apache Calcite to make SQL smart
ONE FOR ALL! Using Apache Calcite to make SQL smartONE FOR ALL! Using Apache Calcite to make SQL smart
ONE FOR ALL! Using Apache Calcite to make SQL smart
Evans Ye
 
Docker workshop
Docker workshopDocker workshop
Docker workshop
Evans Ye
 
Fits docker into devops
Fits docker into devopsFits docker into devops
Fits docker into devops
Evans Ye
 
Network Traffic Search using Apache HBase
Network Traffic Search using Apache HBaseNetwork Traffic Search using Apache HBase
Network Traffic Search using Apache HBase
Evans Ye
 
Building hadoop based big data environment
Building hadoop based big data environmentBuilding hadoop based big data environment
Building hadoop based big data environment
Evans Ye
 

More from Evans Ye (20)

Join ASF to Unlock Full Possibilities of Your Professional Career.pdf
Join ASF to Unlock Full Possibilities of Your Professional Career.pdfJoin ASF to Unlock Full Possibilities of Your Professional Career.pdf
Join ASF to Unlock Full Possibilities of Your Professional Career.pdf
 
非常人走非常路:參與ASF打世界杯比賽
非常人走非常路:參與ASF打世界杯比賽非常人走非常路:參與ASF打世界杯比賽
非常人走非常路:參與ASF打世界杯比賽
 
TensorFlow on Spark: A Deep Dive into Distributed Deep Learning
TensorFlow on Spark: A Deep Dive into Distributed Deep LearningTensorFlow on Spark: A Deep Dive into Distributed Deep Learning
TensorFlow on Spark: A Deep Dive into Distributed Deep Learning
 
2017 big data landscape and cutting edge innovations public
2017 big data landscape and cutting edge innovations public2017 big data landscape and cutting edge innovations public
2017 big data landscape and cutting edge innovations public
 
ONE FOR ALL! Using Apache Calcite to make SQL smart
ONE FOR ALL! Using Apache Calcite to make SQL smartONE FOR ALL! Using Apache Calcite to make SQL smart
ONE FOR ALL! Using Apache Calcite to make SQL smart
 
The Apache Way: A Proven Way Toward Success
The Apache Way: A Proven Way Toward SuccessThe Apache Way: A Proven Way Toward Success
The Apache Way: A Proven Way Toward Success
 
The Apache Way
The Apache WayThe Apache Way
The Apache Way
 
Leveraging docker for hadoop build automation and big data stack provisioning
Leveraging docker for hadoop build automation and big data stack provisioningLeveraging docker for hadoop build automation and big data stack provisioning
Leveraging docker for hadoop build automation and big data stack provisioning
 
Using the SDACK Architecture to Build a Big Data Product
Using the SDACK Architecture to Build a Big Data ProductUsing the SDACK Architecture to Build a Big Data Product
Using the SDACK Architecture to Build a Big Data Product
 
Trend Micro Big Data Platform and Apache Bigtop
Trend Micro Big Data Platform and Apache BigtopTrend Micro Big Data Platform and Apache Bigtop
Trend Micro Big Data Platform and Apache Bigtop
 
How bigtop leveraged docker for build automation and one click hadoop provis...
How bigtop leveraged docker for build automation and  one click hadoop provis...How bigtop leveraged docker for build automation and  one click hadoop provis...
How bigtop leveraged docker for build automation and one click hadoop provis...
 
How bigtop leveraged docker for build automation and one click hadoop provis...
How bigtop leveraged docker for build automation and  one click hadoop provis...How bigtop leveraged docker for build automation and  one click hadoop provis...
How bigtop leveraged docker for build automation and one click hadoop provis...
 
BigTop vm and docker provisioner
BigTop vm and docker provisionerBigTop vm and docker provisioner
BigTop vm and docker provisioner
 
Docker workshop
Docker workshopDocker workshop
Docker workshop
 
Fits docker into devops
Fits docker into devopsFits docker into devops
Fits docker into devops
 
Getting involved in world class software engineering tips and tricks to join ...
Getting involved in world class software engineering tips and tricks to join ...Getting involved in world class software engineering tips and tricks to join ...
Getting involved in world class software engineering tips and tricks to join ...
 
Deep dive into enterprise data lake through Impala
Deep dive into enterprise data lake through ImpalaDeep dive into enterprise data lake through Impala
Deep dive into enterprise data lake through Impala
 
How we lose etu hadoop competition
How we lose etu hadoop competitionHow we lose etu hadoop competition
How we lose etu hadoop competition
 
Network Traffic Search using Apache HBase
Network Traffic Search using Apache HBaseNetwork Traffic Search using Apache HBase
Network Traffic Search using Apache HBase
 
Building hadoop based big data environment
Building hadoop based big data environmentBuilding hadoop based big data environment
Building hadoop based big data environment
 

Recently uploaded

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Recently uploaded (20)

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 

Vagrant

  • 2. Agenda • Introduction to Vagrant • Create VM • Provisioning • plugins 2/17/2014 Copyright 2013 Trend Micro Inc.
  • 4. Vagrant • A open source command line VM provision tool • MIT licence • Still virtualization, but more easier, more flexible • Support shell, puppet, chef on provisioning 2/17/2014 Copyright 2013 Trend Micro Inc.
  • 5. Easy to use and share http://www.vagrantbox.es/ http://puppet-vagrant-boxes.puppetlabs.com/ 2/17/2014 Copyright 2013 Trend Micro Inc.
  • 6. Installation • Install virtualbox – https://www.virtualbox.org/wiki/Downloads • Install vagrant (support windows, mac, linux) – http://downloads.vagrantup.com/tags/v1.3.5 • Get GNU commands on windows (not necessary) – Install git (MINGW) – Install Cygwin (too fat) 2/17/2014 Copyright 2013 Trend Micro Inc.
  • 8. How does it work? • Via VBoxManage tool • list running VM – $ VBoxManage list runningvms • pause VM – $ VBoxManage controlvm <vmname> pause • send poweroff single to VM (tells VM OS to shutdown) – $ VBoxManage controlvm <vmname> acpipowerbutton • … 2/17/2014 Copyright 2013 Trend Micro Inc.
  • 9. Why we need it • Deploy a project on a machine for testing – mess things up – Fix it – …loop… • Environment specific – I can run it well on MY machine (cause I only test it on my machine) • Can not automate • I don‟t have machines… 2/17/2014 Copyright 2013 Trend Micro Inc.
  • 10. Problem to solve • Provisioning: – automate trivial things • install httpd, mysql, config, config, config… • reuse: – Package configured VM as a “box” • testing: – clean environment for testing • Portable: – one box file – local machine 2/17/2014 Copyright 2013 Trend Micro Inc.
  • 12. Basic Commands • Vm status control: – – – – Up halt destroy reload (for config change) – resume – suspend 2/17/2014 Copyright 2013 Trend Micro Inc.
  • 13. Create a VM • vagrant box add precise32 http://files.vagrantup.com/precise32.box • Vagrant init precise32 (new a vagrantfile) • Vagrant up (create VM) • vagrant ssh (get into the VM) 2/17/2014 Copyright 2013 Trend Micro Inc.
  • 14. Networking • default : eth0 for NAT • Port forwarding – config.vm.network :forwarded_port, host: 8070, guest: 8070 • Host-only – config.vm.network :private_network, ip: "192.168.56.2“ • Bridge – config.vm.network :public_network – config.vm.network :public_network, :bridge => 'en0: Wi-Fi (AirPort)„ • (Not always work) 2/17/2014 Copyright 2013 Trend Micro Inc.
  • 15. More settings in Vagrantfile • Hardware spec. – config.vm.provider :virtualbox do |vb| – vb.customize ["modifyvm", :id, "--memory", "1024"] – end • Hostname – config.vm.hostname = “YOUR_HOSTNAME“ • Share folder – config.vm.synced_folder "../data", "/vagrant_data“ host guest 2/17/2014 Copyright 2013 Trend Micro Inc.
  • 17. Shell • Auto execute the shell script as root • Vagrantfile syntax: – config.vm.provision :shell, :path => "bootstrap.sh" • Command – $ vagrant provision –provision-with shell 2/17/2014 Copyright 2013 Trend Micro Inc.
  • 18. Puppet • Auto apply a puppet script • Vagrantfile syntax: – config.vm.provision :puppet do |puppet| – puppet.manifests_path = "manifests" – puppet.manifest_file = "init.pp" – end • Folder structure: – Vagrantfile – Manifests – Init.pp 2/17/2014 Copyright 2013 Trend Micro Inc.
  • 19. Plugins • vagrant plugin install vagrant-vbox-snapshot • vagrant plugin install vagrant-vbguest 2/17/2014 Copyright 2013 Trend Micro Inc.
  • 22. Get ssh command on windows • ssh – Install git (MINGW) – Install Cygwin (too fat, I think) • There‟re many ways you can do to achieve this goal, My suggestion is to install git on your windows – Download git – 6 page quick tutorial • Then use putty to ssh in. 2/17/2014 Copyright 2013 Trend Micro Inc.
  • 23. Reference • http://www.slideshare.net/ihower/vagrant-osdc • https://github.com/mitchellh/vagrant-aws • http://kvz.io/blog/2013/01/16/vagrant-tip-keep-virtualboxguest-additions-in-sync/ 2/17/2014 Copyright 2013 Trend Micro Inc.