-
Notifications
You must be signed in to change notification settings - Fork 5
/
Vagrantfile
34 lines (31 loc) · 1.23 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
driver = ENV['DRIVER'] || "KVM"
nested = ENV['NESTED'] || true
cpus = ENV['CPU'] || 2
memory = ENV['RAM'] || 4096
Vagrant.configure("2") do |config|
config.vm.box = "windev"
config.vm.guest = :windows
config.vm.hostname = "windev"
config.vm.network :forwarded_port, guest: 3389, host: 3389, id: "rdp", auto_correct: true
config.vm.network :forwarded_port, guest: 22, host: 32022, id: "ssh", auto_correct: true
config.vm.network :forwarded_port, guest: 5985, host: 55986, id: "winrm", auto_correct: true
config.vm.network :forwarded_port, guest: 5901, host: 5901, id: "vnc1", auto_correct: true
config.vm.network :forwarded_port, guest: 5900, host: 5900, id: "vnc2", auto_correct: true
config.vm.communicator = "winrm"
config.winrm.ssl_peer_verification = false
config.winrm.transport = :plaintext
config.winrm.basic_auth_only = true
config.winrm.username = "vagrant"
config.winrm.password = "vagrant"
config.vm.boot_timeout = 14400
config.winrm.timeout = 14400
config.winrm.retry_delay = 20
config.winrm.max_tries = 1000
config.vm.provider :libvirt do |libvirt|
libvirt.driver = driver
libvirt.nested = nested
libvirt.cpus = cpus
libvirt.memory = memory
libvirt.graphics_ip = "0.0.0.0"
end
end