Skip to content

Instantly share code, notes, and snippets.

@chandresh
Last active December 22, 2015 10:28
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 chandresh/6458795 to your computer and use it in GitHub Desktop.
Save chandresh/6458795 to your computer and use it in GitHub Desktop.
Setup Vagrant

Setup Vagrant

Download:

1. VirtualBox: https://www.virtualbox.org/wiki/Downloads
2. Vagrant: http://www.vagrantup.com/downloads.html
3. Github for Windows: http://windows.github.com
4. Box file: https://github.com/mitchellh/vagrant/wiki/Available-Vagrant-Boxes
http://files.vagrantup.com/precise64.box

Install

5. Install VirtualBox, Vagrant and Github for Windows

One time process

6. create a folder, for example: d:/training
7. Copy your box file (downloaded in step 4) in that folder.
8. open git-shell from Start ->All Programs->Github Inc->Git Shell.
9. cd d:/training [Or whatever folder from step 6.]
10. vagrant box add <friendly-box-name> <box-file-name>
11. vagrant init <friendly-box-name>

everyday usage

12. vagrant up
13. vagrant ssh

to end

14. vagrant halt

Troubleshooting common issues

  • Vagrant command not found.
Solution 1: Restart.
Solution 2: Set Path.
  • Headless error while "vagrant up"
Check if you have virtualization enabled. Some pointers beolow

http://stackoverflow.com/questions/19419563/vagrant-up-error-in-headless-ubuntu-the-guest-machine-entered-an-invalid-state
https://github.com/mitchellh/vagrant/issues/2157
https://github.com/protobox/protobox/issues/13
  • Some strange errors while doing "vagrant up"
Solution: Try downloading some other box image.
  • You have a 32 bit OS/Hardware.
Solution: Google it! Some info here:

https://github.com/mitchellh/vagrant/issues/932
  • The virtualization is disabled in bios.
Solution:
**Only for advanced users**

**You may make your computer unusable**

**You may like to call support instead**

**Do it on your own risk**

- Restart the computer. Go into BIOS settings (by pressing del or f10 etc..)
- Go to configuration > Virtualization [The option may be different in your machine]
- Enable virtualization.
- Save and exit (F10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment