Created
September 10, 2018 16:53
-
-
Save chris-gillatt/0d22a19286b4159680d4576a7b745ac3 to your computer and use it in GitHub Desktop.
Vagrant file for Windows Server 2012r2 w/RDP port forwarding
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
Vagrant.configure("2") do |config| | |
config.vm.box = "opentable/win-2012r2-standard-amd64-nocm" | |
config.vm.guest = :windows | |
config.vm.communicator = "winrm" | |
config.vm.boot_timeout = 600 | |
config.vm.graceful_halt_timeout = 600 | |
# Create a forwarded port mapping which allows access to a specific port | |
# within the machine from a port on the host machine. In the example below, | |
# accessing "localhost:8080" will access port 80 on the guest machine. | |
# config.vm.network "forwarded_port", guest: 80, host: 8080 | |
config.vm.network :forwarded_port, guest: 3389, host: 5987 | |
config.vm.network :forwarded_port, guest: 5985, host: 5985, id: "winrm", auto_correct: true | |
config.vm.provider "virtualbox" do |vb| | |
# Customize the name of VM in VirtualBox manager UI: | |
vb.name = "WinServer2012" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment