forked from mwrock/packer-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vbox-2012r2.json
96 lines (96 loc) · 3.16 KB
/
vbox-2012r2.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
{
"builders": [
{
"type": "virtualbox-iso",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "4096" ],
[ "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",
"winrm_port" : "5985",
"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",
"script": "scripts/provision.ps1"
}
],
"post-processors": [
[{
"type": "vagrant",
"keep_input_artifact": true,
"output": "windows2012r2min-{{.Provider}}.box",
"vagrantfile_template": "vagrantfile-windows.template"
},
{
"type": "atlas",
"only": ["virtualbox-iso-atlas"],
"artifact": "mwrock/Windows2012R2{{user `core`}}",
"artifact_type": "vagrant.box",
"metadata": {
"provider": "virtualbox",
"version": "0.5.2"
}
}]
],
"variables": {
"core": "",
"guest_additions_mode": "attach",
"headless": "false",
"iso_checksum": "7e3f89dbff163e259ca9b0d1f078daafd2fed513",
"iso_url": "http://download.microsoft.com/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.16384.WINBLUE_RTM.130821-1623_X64FRE_SERVER_EVAL_EN-US-IRM_SSS_X64FREE_EN-US_DV5.ISO"
}
}