Created
November 30, 2020 02:01
-
-
Save kudosqujo/a7c426400baca0f40b9587a5fc8a9632 to your computer and use it in GitHub Desktop.
[Vagrant CLI] #vagrant #cheatsheet #virtualbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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