-
Notifications
You must be signed in to change notification settings - Fork 251
/
vbox-2012r2-wmf5.json
109 lines (109 loc) · 3.35 KB
/
vbox-2012r2-wmf5.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"builders": [
{
"type": "virtualbox-iso",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "2048" ],
[ "modifyvm", "{{.Name}}", "--vram", "48" ],
[ "modifyvm", "{{.Name}}", "--cpus", "2" ]
],
"guest_additions_mode": "{{ user `guest_additions_mode` }}",
"guest_additions_path": "C:/users/vagrant/VBoxGuestAdditions.iso",
"guest_os_type": "Windows2012_64",
"headless": "{{ user `headless` }}",
"iso_url": "{{ user `iso_url` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_checksum_type": "sha1",
"communicator": "winrm",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "12h",
"shutdown_command": "a:/PackerShutdown.bat",
"shutdown_timeout": "15m",
"floppy_files": [
"answer_files/2012_r2{{user `core`}}/Autounattend.xml",
"scripts/postunattend.xml",
"scripts/boxstarter.ps1",
"scripts/PackerShutdown.bat",
"scripts/package.ps1",
"scripts/SetupComplete-2012.cmd",
"scripts/Test-Command.ps1"
]
},
{
"name": "virtualbox-iso-atlas",
"type": "virtualbox-iso",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "2048" ],
[ "modifyvm", "{{.Name}}", "--vram", "36" ],
[ "modifyvm", "{{.Name}}", "--cpus", "2" ]
],
"guest_os_type": "Windows2012_64",
"headless": "{{ user `headless` }}",
"iso_url": "{{ user `iso_url` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_checksum_type": "sha1",
"communicator": "winrm",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_port": 55985,
"winrm_timeout": "12h",
"shutdown_command": "a:/PackerShutdown.bat",
"shutdown_timeout": "15m",
"floppy_files": [
"answer_files/2012_r2{{user `core`}}/Autounattend.xml",
"scripts/postunattend.xml",
"scripts/boxstarter.ps1",
"scripts/PackerShutdown.bat",
"scripts/package.ps1",
"scripts/SetupComplete-2012.cmd",
"scripts/Test-Command.ps1"
]
}
],
"provisioners": [
{
"type": "powershell",
"inline": ["choco install powershell -y"],
"elevated_user": "vagrant",
"elevated_password": "vagrant",
"valid_exit_codes": [
0,
3010
]
},
{
"type": "windows-restart",
"restart_timeout": "1h"
},
{
"type": "powershell",
"script": "scripts/provision.ps1"
}
],
"post-processors": [
[{
"type": "vagrant",
"keep_input_artifact": true,
"output": "windows2012r2min-wmf5-{{.Provider}}.box",
"vagrantfile_template": "vagrantfile-windows.template"
},
{
"type": "atlas",
"only": ["virtualbox-iso-atlas"],
"artifact": "mwrock/Windows2012R2{{user `core`}}WMF5",
"artifact_type": "vagrant.box",
"metadata": {
"provider": "virtualbox",
"version": "0.5.2"
}
}]
],
"variables": {
"core": "",
"guest_additions_mode": "attach",
"headless": "true",
"iso_checksum": "849734f37346385dac2c101e4aacba4626bb141c",
"iso_url": "http://care.dlservice.microsoft.com/dl/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO"
}
}