-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathvb-win2012r2-base.json
64 lines (64 loc) · 1.83 KB
/
vb-win2012r2-base.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
{
"variables": {
"os_name": "win2012r2",
"image_name": "base",
"guest_os_type": "Windows2012_64",
"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"
},
"builders": [
{
"type": "virtualbox-iso",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"2048"
],
[
"modifyvm",
"{{.Name}}",
"--vram",
"48"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
]
],
"disk_size": 81920,
"vm_name": "{{ user `os_name` }}-{{ user `image_name` }}",
"guest_additions_mode": "attach",
"guest_os_type": "{{ user `guest_os_type` }}",
"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": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"shutdown_timeout": "1h",
"floppy_files": [
"Answerfiles/2012r2/Autounattend.xml",
"Scripts/Boxstarter.ps1",
"Scripts/Test-Command.ps1",
"Scripts/Package.ps1"
],
"output_directory": "./output-{{ user `os_name` }}-{{ user `image_name` }}/"
}
],
"provisioners": [
{
"type": "powershell",
"elevated_user": "vagrant",
"elevated_password": "vagrant",
"script": "Scripts/Install-VirtualboxGuestAdditions.ps1"
}
]
}