-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathvirtualbox_windows_server_2016_2_updates.json
55 lines (55 loc) · 1.46 KB
/
virtualbox_windows_server_2016_2_updates.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
{
"builders": [
{
"type": "virtualbox-ovf",
"source_path": "./output-base/vbox-base.ovf",
"output_directory": "./output-updates/",
"vm_name": "vbox-updates",
"guest_additions_mode" : "disable",
"headless": false,
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "2048" ],
[ "modifyvm", "{{.Name}}", "--vram", "128" ],
[ "modifyvm", "{{.Name}}", "--cpus", "1" ]
],
"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"
}
],
"provisioners": [
{
"type": "powershell",
"elevated_user": "vagrant",
"elevated_password": "vagrant",
"script": "./scripts/windows-updates.ps1"
},
{
"type": "windows-restart",
"restart_timeout": "1h"
},
{
"type": "powershell",
"elevated_user": "vagrant",
"elevated_password": "vagrant",
"inline": ["Get-WUInstall -MicrosoftUpdate -AcceptAll -IgnoreReboot"]
},
{
"type": "windows-restart",
"restart_timeout": "1h"
},
{
"type": "powershell",
"elevated_user": "vagrant",
"elevated_password": "vagrant",
"inline": ["Get-WUInstall -MicrosoftUpdate -AcceptAll -IgnoreReboot"]
},
{
"type": "windows-restart",
"restart_timeout": "1h"
}
]
}