Skip to content

Instantly share code, notes, and snippets.

@ducke
Forked from ssugar/gist:284c7ed6a2cb764b3285
Last active August 29, 2015 14:14
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 ducke/3b3747cab61b000f1126 to your computer and use it in GitHub Desktop.
Save ducke/3b3747cab61b000f1126 to your computer and use it in GitHub Desktop.

#Install Vagrant Bleeding Edge on Win 8.1/2012R2#

###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 git

###Install Ruby###

choco install ruby

###Download Updated RubyGems

If you don't do this, you will most likely encounter SSL errors when running gem install bundler (or other gem install commands): RubyGems 2.2.3

###Update RubyGems###

gem install --local c:\path\you\downloaded\to\rubygems-update-2.2.3.gem
update_rubygems --no-ri --no-rdoc

###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.5 download

###Extract DevKit###

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

CD to Directory containing the extracted DevKit.

###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/ruby215

ruby dk.rb install

###Install Bundler###

gem install 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.

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