Skip to content

Instantly share code, notes, and snippets.

@himlohiya
Created October 26, 2013 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save himlohiya/7175579 to your computer and use it in GitHub Desktop.
Save himlohiya/7175579 to your computer and use it in GitHub Desktop.
vagrant init precise32 http://files.vagrantup.com/precise32.box
##########################
# ssh to vagrant machine
##########################
vagrant ssh
##########################
# to configure directory to use vagrant
##########################
vagrant init
########################################
# defining vagrant file
########################################
config.vm.box = "precise32"
config.vm.provision :shell, :path => "bootstrap.sh"
config.vm.network :forwarded_port, host: 4567, guest: 80
##########################
# vagrant controls
##########################
vagrant status
vagrant up
vagrant reload
vagrant suspend
vagrant halt
vagrant destroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment