Last active
November 19, 2016 04:40
-
-
Save ferventcoder/6251225 to your computer and use it in GitHub Desktop.
Install Vagrant-Windows plugin from source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WINDOWS | |
# ======= | |
# This assumes you already have chocolatey installed: | |
# From cmd.exe: | |
# @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin | |
# From powershell: | |
# iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) | |
# | |
# This assumes you have vagrant already installed: | |
# cinst vagrant | |
# or (for specific version): | |
# cinst vagrant -version 1.2.7 | |
# NOTE: It really needs to be 1.2.7-ish | |
# | |
# This assumes you already have virtualbox installed: | |
# cinst virtualbox | |
# | |
# Check your ruby version: | |
# ruby -v | |
# if you don't have 1.9.3 installed, install it with the command below: | |
# cinst ruby -version 1.9.3.44800 | |
# once installed, please restart the command line. This is important, so don't miss it. | |
# | |
# do you have Dev Kit installed? | |
# cinst ruby.devkit | |
# ======= | |
# OSX / Linux | |
# =========== | |
# You should be ready if you have vagrant installed. Make sure you are using the offical installer | |
# and NOT the deprecated vagrant gem. | |
# =========== | |
# any system | |
gem install bundler | |
git clone https://github.com/WinRb/vagrant-windows.git vagrant-windows | |
cd vagrant-windows | |
git checkout -t origin/vagrant-1.2 | |
bundle install | |
bundle exec rake | |
vagrant plugin install pkg/vagrant-windows-1.2.0.gem |
@cdmoye Gists do not do notifications - I later found that you want 1.3.5 as the minimum required version. You already know since this is over two years later that Vagrant natively supports Windows as of 1.6.0, so the plugin is deprecated.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can't seem to get the installation to work with vagrant 1.3.4. Has there been any updates to vagrant-windows to provide support for the newer versions of vagrant?
It's a RHEL 6 box, and the offender seems to be the compilation of libxml2 (it's dying with an undefinied reference to gzopen64)... This is with a fresh box and running "vagrant plugin install vagrant-windows" (though the same sort of symptoms occur when following this gist).