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

Vagrant.configure("2") do |config|
    config.vm.define "vagrant-windows-81"
    config.vm.box = "windows_81"

8
9
10
11
12
13
14
    if !Vagrant.has_plugin?('vagrant-windows')
      puts "vagrant-windows missing, please install the vagrant-windows plugin!"
      puts "Run this command in your terminal:"
      puts "vagrant plugin install vagrant-windows"
      exit 1
    end

pandrew's avatar
pandrew committed
15
16
17
    # Admin user name and password
    config.winrm.username = "vagrant"
    config.winrm.password = "vagrant"
18
19

    config.vm.guest = :windows
pandrew's avatar
pandrew committed
20
    config.windows.halt_timeout = 15
21

pandrew's avatar
pandrew committed
22
    config.vm.network :forwarded_port, guest: 5985, host: 5985, id: "winrm", auto_correct: true
pandrew's avatar
pandrew committed
23

pandrew's avatar
pandrew committed
24
25
26
    config.vm.provider :virtualbox do |v, override|
        #v.gui = true
        v.customize ["modifyvm", :id, "--memory", 2048]
27
        v.customize ["modifyvm", :id, "--cpus", 2]
pandrew's avatar
pandrew committed
28
    end
29

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

pandrew's avatar
pandrew committed
39
40
41
42
43
44
45
46
47
    config.vm.provider :vmware_workstation do |v, override|
        #v.gui = true
        v.vmx["memsize"] = "2048"
        v.vmx["ethernet0.virtualDev"] = "vmxnet3"
        v.vmx["RemoteDisplay.vnc.enabled"] = "false"
        v.vmx["RemoteDisplay.vnc.port"] = "5900"
        v.vmx["scsi0.virtualDev"] = "lsisas1068"
    end
end