Last active
July 6, 2016 17:36
-
-
Save mwrock/dc7351f3e9da6a9f527d to your computer and use it in GitHub Desktop.
Running win 2012R2 via vagrant on hyper-v
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
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 |
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
# -*- 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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