vagrantfile-windows_2012_r2.template 1.59 KB
Newer Older
1 2 3
# -*- mode: ruby -*-
# vi: set ft=ruby :

4
Vagrant.require_version ">= 1.6.2"
Blair Hamilton's avatar
Blair Hamilton committed
5

6
Vagrant.configure("2") do |config|
7 8
    config.vm.define "vagrant-windows-2012-r2"
    config.vm.box = "windows_2012_r2"
Blair Hamilton's avatar
Blair Hamilton committed
9
    config.vm.communicator = "winrm"
10

11 12 13
    # Admin user name and password
    config.winrm.username = "vagrant"
    config.winrm.password = "vagrant"
14 15

    config.vm.guest = :windows
16
    config.windows.halt_timeout = 15
pandrew's avatar
pandrew committed
17

18
    config.vm.network :forwarded_port, guest: 3389, host: 3389, id: "rdp", auto_correct: true
19

20 21 22
    config.vm.provider :virtualbox do |v, override|
        #v.gui = true
        v.customize ["modifyvm", :id, "--memory", 2048]
23
        v.customize ["modifyvm", :id, "--cpus", 2]
Blair Hamilton's avatar
Blair Hamilton committed
24
        v.customize ["setextradata", "global", "GUI/SuppressMessages", "all" ]
25
    end
26

27 28 29
    config.vm.provider :vmware_fusion do |v, override|
        #v.gui = true
        v.vmx["memsize"] = "2048"
Blair Hamilton's avatar
Blair Hamilton committed
30
        v.vmx["numvcpus"] = "2"
31 32 33
        v.vmx["ethernet0.virtualDev"] = "vmxnet3"
        v.vmx["RemoteDisplay.vnc.enabled"] = "false"
        v.vmx["RemoteDisplay.vnc.port"] = "5900"
Joe Fitzgerald's avatar
Joe Fitzgerald committed
34
        v.vmx["scsi0.virtualDev"] = "lsisas1068"
Stefan Scherer's avatar
Stefan Scherer committed
35
        v.vmx["gui.fitguestusingnativedisplayresolution"] = "FALSE"
36
    end
37

38 39 40
    config.vm.provider :vmware_workstation do |v, override|
        #v.gui = true
        v.vmx["memsize"] = "2048"
Blair Hamilton's avatar
Blair Hamilton committed
41
        v.vmx["numvcpus"] = "2"
42 43 44
        v.vmx["ethernet0.virtualDev"] = "vmxnet3"
        v.vmx["RemoteDisplay.vnc.enabled"] = "false"
        v.vmx["RemoteDisplay.vnc.port"] = "5900"
Joe Fitzgerald's avatar
Joe Fitzgerald committed
45
        v.vmx["scsi0.virtualDev"] = "lsisas1068"
Stefan Scherer's avatar
Stefan Scherer committed
46
        v.vmx["gui.fitguestusingnativedisplayresolution"] = "FALSE"
47
    end
48
end