-
Notifications
You must be signed in to change notification settings - Fork 0
/
windows_2016_uefi.json
81 lines (80 loc) · 2.24 KB
/
windows_2016_uefi.json
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"builders": [
{
"boot_wait": "0s",
"boot_command": [
"<enter><tab><enter><tab><enter><tab>"
],
"communicator": "winrm",
"cpus": 6,
"disk_size": "{{user `disk_size`}}",
"enable_secure_boot": true,
"enable_virtualization_extensions": false,
"generation": 2,
"guest_additions_mode": "disable",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_url": "{{user `iso_url`}}",
"memory": 12288,
"secondary_iso_images": [
"./iso/windows_server_2016_unattend.iso"
],
"shutdown_command": "e:/sysprep.bat",
"switch_name": "{{user `hyperv_switchname`}}",
"type": "hyperv-iso",
"vm_name": "WindowsServer2016UEFI",
"winrm_password": "vagrant",
"winrm_timeout": "{{user `winrm_timeout`}}",
"winrm_username": "vagrant"
}
],
"post-processors": [
{
"keep_input_artifact": false,
"output": "windows_server_2016_uefi_{{.Provider}}.box",
"type": "vagrant",
"vagrantfile_template": "vagrantfile-windows_2016.template"
}
],
"provisioners": [
{
"execute_command": "{{ .Vars }} cmd /c \"{{ .Path }}\"",
"scripts": [
"./scripts/enable-rdp.bat"
],
"type": "windows-shell"
},
{
"restart_timeout": "{{user `restart_timeout`}}",
"type": "windows-restart"
},
{
"type": "windows-update",
"filters": [
"include:$_.Title -like '*Servicing Stack Update for Windows*'"
]
},
{
"type": "windows-update"
},
{
"execute_command": "{{ .Vars }} cmd /c \"{{ .Path }}\"",
"scripts": [
"./scripts/set-winrm-automatic.bat",
"./scripts/compile-dotnet-assemblies.bat"
],
"type": "windows-shell"
}
],
"variables": {
"autounattend": "./answer_files/2016_uefi/Autounattend.xml",
"disk_size": "61440",
"disk_type_id": "1",
"headless": "false",
"iso_checksum": "1CE702A578A3CB1AC3D14873980838590F06D5B7101C5DAACCBAC9D73F1FB50F",
"iso_checksum_type": "sha256",
"iso_url": "./iso/Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO",
"restart_timeout": "5m",
"winrm_timeout": "20m"
}
}