vagrantfile-windows_10.template 2.38 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.require_version ">= 1.6.2"

Vagrant.configure("2") do |config|
    config.vm.define "vagrant-windows-10-preview"
    config.vm.box = "windows_10_preview"
    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|
        #v.gui = true
        v.customize ["modifyvm", :id, "--memory", 2048]
        v.customize ["modifyvm", :id, "--cpus", 2]
Stefan Scherer's avatar
Stefan Scherer committed
24 25
        v.customize ["modifyvm", :id, "--vram", 128]
        v.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
26 27 28 29
        v.customize ["setextradata", "global", "GUI/SuppressMessages", "all" ]
    end

    config.vm.provider :vmware_fusion do |v, override|
Stefan Scherer's avatar
Stefan Scherer committed
30
        v.gui = true
31 32 33 34 35 36
        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"
Stefan Scherer's avatar
Stefan Scherer committed
37 38 39 40 41 42
        v.vmx["gui.fitguestusingnativedisplayresolution"] = "TRUE"
        v.vmx["mks.enable3d"] = "TRUE"
        v.vmx["mks.forceDiscreteGPU"] = "TRUE"
        v.vmx["gui.fullscreenatpoweron"] = "TRUE"
        v.vmx["gui.viewmodeatpoweron"] = "fullscreen"
        v.vmx["gui.lastPoweredViewMode"] = "fullscreen"
Stefan Scherer's avatar
Stefan Scherer committed
43 44
        v.vmx["sound.startconnected"] = "FALSE"
        v.vmx["sound.present"] = "FALSE"
Stefan Scherer's avatar
Stefan Scherer committed
45 46
        v.vmx["sound.autodetect"] = "TRUE"
        v.enable_vmrun_ip_lookup = false
47
        v.whitelist_verified = true
48
        v.vmx["hgfs.linkRootShare"] = "FALSE"
49 50 51
    end

    config.vm.provider :vmware_workstation do |v, override|
Stefan Scherer's avatar
Stefan Scherer committed
52
        v.gui = true
53 54 55 56 57 58
        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"
59
        v.enable_vmrun_ip_lookup = false
60
        v.whitelist_verified = true
61
        v.vmx["hgfs.linkRootShare"] = "FALSE"
62
    end
63 64 65 66

    config.vm.provider "hyperv" do |v|
        v.cpus = 2
        v.maxmemory = 2048
67
        v.linked_clone = true
68
    end
69
end