Skip to content

Instantly share code, notes, and snippets.

@ssugar
Last active August 29, 2015 14:14
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ssugar/284c7ed6a2cb764b3285 to your computer and use it in GitHub Desktop.
Save ssugar/284c7ed6a2cb764b3285 to your computer and use it in GitHub Desktop.
Setup Vagrant Dev Environment on Windows 10

#Install Vagrant Bleeding Edge on Win 10#

###Install Chocolatey###

From elevated command prompt:

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin  

###Install Github for Windows###

choco install github

###Install GnuWin###

Ran into problems adding vagrant boxes, error related to bsdtar and to curl. Installing GnuWin with chocolatey is an easy way to fix this, although it might be overkill.

choco install gnuwin

###Install Ruby###

choco install ruby

###Download Ruby DevKit###

If you need 32 bit, check: http://rubyinstaller.org/downloads/ for the proper link. I needed this: 64bit devkit for ruby 2.1.6 download

###Extract DevKit###

Run the .exe file you downloaded. It's a self extracting executable.

CD to Directory containing the extracted DevKit. cd ###Install DevKit#######

ruby dk.rb init
ruby dk.rb review

!! At this point you might see errors, if you do check the config.yml file to ensure it contains the path to ruby (with forward slashes and include the leading hyphen and whitespace). In my case I added: - c:/tools/ruby21

ruby dk.rb install

###Install Bundler###

gem install bundler --version "=1.10.5"

*Vagrant currently (~1.7.4) requires <= version 1.10.5 of bundler

###Clone the Vagrant Repo###

git clone https://github.com/mitchellh/vagrant.git

###Install Vagrant###

CD to Directory containing Vagrant Repo

bundle install
rake install

###Running Vagrant###

If all works well, you should see a "You appear to be running Vagrant outside of the official installers" warning when running a vagrant command.

@ducke
Copy link

ducke commented Feb 4, 2015

👍
Thx! Great Info for Ruby Newbies like me 😄

@ssugar
Copy link
Author

ssugar commented Feb 5, 2015

no worries, happy to share!

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