11# -*- mode: ruby -*-
22# vi: set ft=ruby :
33
4+ Vagrant . require_version ">= 1.6.2"
5+
46Vagrant . configure ( "2" ) do |config |
57 config . vm . define "vagrant-windows-2008-r2"
68 config . vm . box = "windows_2008_r2"
7-
8- if !Vagrant . has_plugin? ( 'vagrant-windows' )
9- puts "vagrant-windows missing, please install the vagrant-windows plugin!"
10- puts "Run this command in your terminal:"
11- puts "vagrant plugin install vagrant-windows"
12- exit 1
13- end
9+ config . vm . communicator = "winrm"
1410
1511 # Admin user name and password
1612 config . winrm . username = "vagrant"
@@ -19,17 +15,20 @@ Vagrant.configure("2") do |config|
1915 config . vm . guest = :windows
2016 config . windows . halt_timeout = 15
2117
22- config . vm . network :forwarded_port , guest : 5985 , host : 5985 , id : "winrm" , auto_correct : true
18+ config . vm . network :forwarded_port , guest : 3389 , host : 3389 , id : "rdp" , auto_correct : true
19+
2320
2421 config . vm . provider :virtualbox do |v , override |
2522 #v.gui = true
2623 v . customize [ "modifyvm" , :id , "--memory" , 2048 ]
2724 v . customize [ "modifyvm" , :id , "--cpus" , 2 ]
25+ v . customize [ "setextradata" , "global" , "GUI/SuppressMessages" , "all" ]
2826 end
2927
3028 config . vm . provider :vmware_fusion do |v , override |
3129 #v.gui = true
3230 v . vmx [ "memsize" ] = "2048"
31+ v . vmx [ "numvcpus" ] = "2"
3332 v . vmx [ "ethernet0.virtualDev" ] = "vmxnet3"
3433 v . vmx [ "RemoteDisplay.vnc.enabled" ] = "false"
3534 v . vmx [ "RemoteDisplay.vnc.port" ] = "5900"
@@ -39,6 +38,7 @@ Vagrant.configure("2") do |config|
3938 config . vm . provider :vmware_workstation do |v , override |
4039 #v.gui = true
4140 v . vmx [ "memsize" ] = "2048"
41+ v . vmx [ "numvcpus" ] = "2"
4242 v . vmx [ "ethernet0.virtualDev" ] = "vmxnet3"
4343 v . vmx [ "RemoteDisplay.vnc.enabled" ] = "false"
4444 v . vmx [ "RemoteDisplay.vnc.port" ] = "5900"
0 commit comments