-
Notifications
You must be signed in to change notification settings - Fork 211
Vagrant Setup
Sam Joseph edited this page Apr 17, 2014
·
3 revisions
- Install VirtualBox
- Install Vagrant
- Install vagrant from http://www.vagrantup.com/downloads.
-
mkdir vagrant_practice && cd $_This directory will be a shared folder between the host and VM. -
vagrant init precise32 http://files.vagrantup.com/precise32.boxfor a 32-bit Ubuntu 12.04 - If vagrant command not found, log out and in.
- They also have 64-bit. The name precise32 is just a string that maps to the base image to use in the Vagrantfile.
-
vagrant upwill start up the VM, and provision it by executing ubuntu-install.sh since it is the first time. -
vagrant sshwill give you access to the new ubuntu box - then
wget -q https://raw.github.com/AgileVentures/LocalSupport/develop/ubuntu-install.sh
IN PROGRESS
- After that first launch, to have it re-run provision script, start it with:
vagrant up --provision, orvagrant provision -
vagrant reloadwill restart the VM and pick up any changes to the Vagrantfile, can also be run with--provision - You can ssh into it with
vagrant ssh - You can check the port forwarding with
telnet localhost 4567and the output should be different from hitting port 4600 - To stop the VM, use normal Ubuntu shutdown commands in ssh, or could use
vagrant haltfrom the host. - To clean up the whole thing, use
vagrant destroy