vagrantfile-windows_81.template 1.54 KB
Newer Older
pandrew's avatar
pandrew committed
1
2
3
# -*- mode: ruby -*-
# vi: set ft=ruby :

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

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

pandrew's avatar
pandrew committed
11
12
13
    # Admin user name and password
    config.winrm.username = "vagrant"
    config.winrm.password = "vagrant"
14
15

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

18
    config.vm.network :forwarded_port, guest: 3389, host: 3389, id: "rdp", auto_correct: true
19
    config.vm.network :forwarded_port, guest: 22, host: 2222, id: "ssh", auto_correct: true
pandrew's avatar
pandrew committed
20

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

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

pandrew's avatar
pandrew committed
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"
pandrew's avatar
pandrew committed
42
43
44
45
46
47
        v.vmx["ethernet0.virtualDev"] = "vmxnet3"
        v.vmx["RemoteDisplay.vnc.enabled"] = "false"
        v.vmx["RemoteDisplay.vnc.port"] = "5900"
        v.vmx["scsi0.virtualDev"] = "lsisas1068"
    end
end