forked from mwrock/packer-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vbox-nano.json
89 lines (89 loc) · 3.01 KB
/
vbox-nano.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
{
"builders": [
{
"type": "virtualbox-iso",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "2048" ],
[ "modifyvm", "{{.Name}}", "--vram", "36" ],
[ "modifyvm", "{{.Name}}", "--cpus", "2" ],
[ "modifyvm", "{{.Name}}", "--hardwareuuid", "02f110e7-369a-4bbc-bbe6-6f0b6864ccb6" ]
],
"guest_os_type": "Windows2012_64",
"iso_url": "{{ user `iso_url` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_checksum_type": "md5",
"communicator": "winrm",
"disk_size": 61440,
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "6h",
"guest_additions_mode": "disable",
"headless": "{{ user `headless` }}",
"shutdown_command": "shutdown /r /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"shutdown_timeout": "1h",
"floppy_files": [
"answer_files/nano/vbox/Autounattend.xml",
"scripts/nano_create.ps1",
"scripts/nano_cleanup.ps1",
"scripts/nano_cleanup_after_reboot.ps1",
"scripts/SetupComplete.cmd",
"scripts/postunattend.xml"
]
},
{
"name": "virtualbox-iso-atlas",
"type": "virtualbox-iso",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "2048" ],
[ "modifyvm", "{{.Name}}", "--vram", "36" ],
[ "modifyvm", "{{.Name}}", "--cpus", "2" ],
[ "modifyvm", "{{.Name}}", "--hardwareuuid", "02f110e7-369a-4bbc-bbe6-6f0b6864ccb6" ]
],
"guest_os_type": "Windows2012_64",
"iso_url": "{{ user `iso_url` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_checksum_type": "md5",
"communicator": "winrm",
"disk_size": 61440,
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_port": 55985,
"winrm_timeout": "6h",
"guest_additions_mode": "disable",
"headless": "{{ user `headless` }}",
"shutdown_command": "shutdown /r /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"shutdown_timeout": "1h",
"floppy_files": [
"answer_files/nano/Autounattend.xml",
"scripts/nano_create.ps1",
"scripts/nano_cleanup.ps1",
"scripts/nano_cleanup_after_reboot.ps1",
"scripts/SetupComplete.cmd",
"scripts/postunattend.xml"
]
}
],
"post-processors": [
[{
"type": "vagrant",
"keep_input_artifact": true,
"output": "windowsNano-{{.Provider}}.box",
"vagrantfile_template": "vagrantfile-windows-nano.template"
},
{
"type": "atlas",
"only": ["virtualbox-iso-atlas"],
"artifact": "mwrock/WindowsNano",
"artifact_type": "vagrant.box",
"metadata": {
"provider": "virtualbox",
"version": "0.3.0"
}
}]
],
"variables": {
"headless": "false",
"iso_checksum": "18a4f00a675b0338f3c7c93c4f131beb",
"iso_url": "http://care.dlservice.microsoft.com/dl/download/1/6/F/16FA20E6-4662-482A-920B-1A45CF5AAE3C/14393.0.160715-1616.RS1_RELEASE_SERVER_EVAL_X64FRE_EN-US.ISO"
}
}