Vagrant: Difference between revisions

From 太極
Jump to navigation Jump to search
(Created page with "= Simple example = <syntaxhighlight lang='bash'> mkdir precise32 cd precise32 vagrant init hashcorp/precise32 vagrant up </syntaxhighlight> If we open VirtualBox, we will see...")
 
No edit summary
Line 1: Line 1:
Official website https://www.vagrantup.com/
= Resources =
== Documentation ==
https://docs.vagrantup.com/v2/
== Books ==
* Vagrant Virtual Development Environment Cookbook (2015)
* Creating Development Environments with Vagrant (2015, 2nd Ed)
* Pro Vagrant (2015)
* Vagrant: Up and Running (2013)
= Simple example =
= Simple example =
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>

Revision as of 20:33, 25 December 2015

Official website https://www.vagrantup.com/

Resources

Documentation

https://docs.vagrantup.com/v2/

Books

  • Vagrant Virtual Development Environment Cookbook (2015)
  • Creating Development Environments with Vagrant (2015, 2nd Ed)
  • Pro Vagrant (2015)
  • Vagrant: Up and Running (2013)

Simple example

mkdir precise32
cd precise32
vagrant init hashcorp/precise32
vagrant up

If we open VirtualBox, we will see a new guest machine called precise32_default_XXXXXXXX is created and running.

Where is vagrant saving boxes files

http://stackoverflow.com/questions/10155708/where-does-vagrant-download-its-box-files-to

  • Windows: C:/Users/USERNAME/.vagrant.d/boxes
  • Linux and Mac: ~/.vagrant.d/boxes/

We can change the default directory by modifying the VAGRANT_HOME variable. See https://docs.vagrantup.com/v2/other/environmental-variables.html.