vagrantfile-windows_2016_core.template 1.77 KB
Newer Older
Stefan Scherer's avatar
Stefan Scherer committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.require_version ">= 1.6.2"

Vagrant.configure("2") do |config|
    config.vm.define "vagrant-windows-2016"
    config.vm.box = "windows_2016"
    config.vm.communicator = "winrm"

    # Admin user name and password
    config.winrm.username = "vagrant"
    config.winrm.password = "vagrant"

    config.vm.guest = :windows
    config.windows.halt_timeout = 15

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

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

    config.vm.provider :vmware_fusion do |v, override|
28
        #v.gui = true
Stefan Scherer's avatar
Stefan Scherer committed
29 30 31 32 33 34
        v.vmx["memsize"] = "2048"
        v.vmx["numvcpus"] = "2"
        v.vmx["ethernet0.virtualDev"] = "vmxnet3"
        v.vmx["RemoteDisplay.vnc.enabled"] = "false"
        v.vmx["RemoteDisplay.vnc.port"] = "5900"
        v.vmx["scsi0.virtualDev"] = "lsisas1068"
35
        v.vms["virtualhw.version"] = "11"
36
        v.enable_vmrun_ip_lookup = false
37
        v.whitelist_verified = true
Stefan Scherer's avatar
Stefan Scherer committed
38 39 40 41 42 43 44 45 46 47
    end

    config.vm.provider :vmware_workstation do |v, override|
        #v.gui = true
        v.vmx["memsize"] = "2048"
        v.vmx["numvcpus"] = "2"
        v.vmx["ethernet0.virtualDev"] = "vmxnet3"
        v.vmx["RemoteDisplay.vnc.enabled"] = "false"
        v.vmx["RemoteDisplay.vnc.port"] = "5900"
        v.vmx["scsi0.virtualDev"] = "lsisas1068"
48
        v.enable_vmrun_ip_lookup = false
49
        v.whitelist_verified = true
Stefan Scherer's avatar
Stefan Scherer committed
50
    end
51 52

    config.vm.provider "hyperv" do |v|
Patrick Lang's avatar
Patrick Lang committed
53 54 55
        v.cpus = 2
        v.maxmemory = 2048
        v.differencing_disk = true
56
    end
Stefan Scherer's avatar
Stefan Scherer committed
57
end