-
Notifications
You must be signed in to change notification settings - Fork 18
/
virtualbox_windows_servercore_2016_1_base.json
45 lines (45 loc) · 1.48 KB
/
virtualbox_windows_servercore_2016_1_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
{
"builders": [
{
"type": "virtualbox-iso",
"output_directory": "./output-base/",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--natpf1", "guest_winrm,tcp,,55985,,5985" ],
[ "modifyvm", "{{.Name}}", "--memory", "2048" ],
[ "modifyvm", "{{.Name}}", "--cpus", "1" ]
],
"vm_name" : "vbox-base",
"guest_additions_mode": "disable",
"guest_os_type": "Windows2012_64",
"iso_url": "{{ user `iso_url` }}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"headless": true,
"communicator": "winrm",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "8h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"shutdown_timeout": "15m",
"floppy_files": [
"answer_files/2016_core/Autounattend.xml",
"scripts/oracle.cer",
"./scripts/bootstrap.ps1",
"./scripts/unattend.xml"
]
}
],
"provisioners" : [
{
"type": "powershell",
"elevated_user": "vagrant",
"elevated_password": "vagrant",
"script": "./scripts/windows-base.ps1"
}
],
"variables": {
"iso_url": "http://care.dlservice.microsoft.com/dl/download/1/4/9/149D5452-9B29-4274-B6B3-5361DBDA30BC/14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISO",
"iso_checksum_type": "md5",
"iso_checksum": "70721288bbcdfe3239d8f8c0fae55f1f"
}
}