Skip to content

Instantly share code, notes, and snippets.

@mwrock
Last active July 6, 2016 17:36
Show Gist options
  • Save mwrock/dc7351f3e9da6a9f527d to your computer and use it in GitHub Desktop.
Save mwrock/dc7351f3e9da6a9f527d to your computer and use it in GitHub Desktop.
Running win 2012R2 via vagrant on hyper-v
cinst vagrant
git clone -b smb_sync https://github.com/mwrock/vagrant
copy-item vagrant\lib C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.6.3 -recursive -force
copy-item vagrant\plugins C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.6.3 -recursive -force
# Assuming the above Vagrant file is in the current directory
vagrant up
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "mwrock/Windows2012R2"
config.vm.box_url = "https://vagrantcloud.com/mwrock/Windows2012R2/version/1/provider/hyperv.box"
# Change "." to a local folder you want to sync
config.vm.synced_folder ".", "/chocolateypackages", disabled: true
config.vm.guest = :windows
config.vm.communicator = "winrm"
config.winrm.username = "administrator"
config.winrm.password = "Pass@word1"
end
@mwrock
Copy link
Author

mwrock commented Aug 9, 2014

The gistfile will install vagrant and add my PR that allows .vhd files and fixes SMB synced folders.

Download the Vagrantfile and while in the same directory, run vagrant up

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