Skip to content

Instantly share code, notes, and snippets.

@amejiarosario
Created June 21, 2012 02:36
Show Gist options
  • Save amejiarosario/2963499 to your computer and use it in GitHub Desktop.
Save amejiarosario/2963499 to your computer and use it in GitHub Desktop.
Vagrant - Virtual Development Enviroment

Vagrant

Virtualized development http://vagrantup.com/

Setup

 $ gem install vagrant
 $ mkdir vagrant-box && cd vagrant-box # (optional)
 $ vagrant box add {title} {url}
 $ vagrant init {title}
 $ vagrant up
 $ vagrant ssh

List of URL of Boxes

Ubuntu Lucid 32 Bit (recommened) http://files.vagrantup.com/lucid32.box

Ubuntu Lucid 64 Bit http://files.vagrantup.com/lucid64.box

Ubuntu Precise 32 Bit http://files.vagrantup.com/precise32.box

Ubuntu Precise 64 Bit http://files.vagrantup.com/precise64.box

Others http://vagrantbox.es

Basic Commands

  • vagrant ssh # connect through ssh
  • vagrant status # get status
  • vagrant suspend # pause box
  • vagrant resume # resume paused box
  • vagrant halt # stop box completely (graceful shutdown of VM)
  • vagrant up # start box
  • vagrant package # package box to export to other machine
  • vagrant destroy # destroy (virtual) box

Setup Rails Enviroment in new VM

follow this installation gist

Solve Share Folder Mount problems

vagrant ssh
sudo /etc/init.d/vboxadd setup
exit
vagrant reload

Video tutorial

Vagrant RailsCast

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