Skip to content

Instantly share code, notes, and snippets.

@hawkup
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hawkup/4d8b40a69a2a04dbde27 to your computer and use it in GitHub Desktop.
Save hawkup/4d8b40a69a2a04dbde27 to your computer and use it in GitHub Desktop.
Vagrant

Initial vagrant

vagrant init hashicorp/precise64

box command

  • add
vagrant box add ADDRESS
  • list
vagrant box list
  • outdated
vagrant box outdated
  • remove
vagrant box remove NAME
  • repackage
vagrant box repackage NAME PROVIDER VERSION
  • update
vagrant box update
  • list active vagrant environment
vagrant global-status

boot environment

vagrant up

access to running machine

vagrant ssh

when change vagrantfile run this command

vagrant reload

shotdown machine (-f=force)

vagrant halt

stop and destroy machine

this will remove all data

vagrant destory

run shell script from provisioning

vagrant provision
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment