Last active
January 8, 2017 05:10
-
-
Save webplumbr/20d6de199a4521d11486 to your computer and use it in GitHub Desktop.
Getting started with Vagrant
This file contains hidden or 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
# If you are on a VM (like me), I did the following on Peppermint 5 VM on VirtualBox. | |
sudo apt-get install vagrant virtualbox | |
# Make a directory named demo. | |
mkdir demo | |
cd demo | |
# add vagrant virtual box that can be used to initialize VM instances | |
# it might take some time to download 700 MB virtual box image | |
vagrant box add trusty32 http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-i386-vagrant-disk1.box | |
# list added or available boxes | |
# should list something like: | |
# trusty32 (virtualbox) | |
vagrant box list | |
# initialize a new box | |
vagrant init trusty32 | |
# fire up the virtual box or even restart it, issue: | |
vagrant up | |
# you can check the status of virtual boxes | |
vagrant status | |
# you can ssh in to the box as follows | |
vagrant ssh | |
# you can destroy a virtual box as follows | |
vagrant destroy | |
# reload a virtual box with provisions | |
vagrant reload --provision | |
# ---------- | |
# references | |
# ---------- | |
# https://serversforhackers.com/an-ansible-tutorial | |
# http://docs.ansible.com/playbooks_intro.html | |
# | |
# | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment