Skip to content

Instantly share code, notes, and snippets.

View ryanleis's full-sized avatar

RyanLeis ryanleis

  • @harness.io
  • Australia
View GitHub Profile
@ryanleis
ryanleis / vagrant-cheat-sheet.md
Created December 21, 2020 08:58 — forked from wpscholar/vagrant-cheat-sheet.md
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)

Keybase proof

I hereby claim:

  • I am ryanleis on github.
  • I am rleis (https://keybase.io/rleis) on keybase.
  • I have a public key ASAYspIAUDWsYP6bux4Az_6QtqldAjRBVrP3J_ce71DCago

To claim this, I am signing this object: