Skip to content

Instantly share code, notes, and snippets.

@kudosqujo
Created November 30, 2020 02:01
Show Gist options
  • Save kudosqujo/a7c426400baca0f40b9587a5fc8a9632 to your computer and use it in GitHub Desktop.
Save kudosqujo/a7c426400baca0f40b9587a5fc8a9632 to your computer and use it in GitHub Desktop.
[Vagrant CLI] #vagrant #cheatsheet #virtualbox
vagrant --version
vagrant box add bento/ubuntu-14.04 # install Ubuntu image
vagrant init bento/ubuntu-14.04 # initialize image
vagrant up # run image
vagrant ssh # ssh into running container
# addition vagrant commands
vagrant status # check status of the VM
vagrant suspend # suspend the VM
vagrant destroy # destroy VM (will need to re-provision things from the ground up
# and re-run all the installation cmds in order to setup the ChefDK again)
brew cask install virtualbox # install VirtualBox
brew cask install vagrant # install vagrant for spinning up a disposable environment for testing
brew cask install vagrant-manager
# verify installation
vagrant --version
vboxmanage --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment