-
Notifications
You must be signed in to change notification settings - Fork 26
/
windows_2012_r2.json
69 lines (68 loc) · 2.14 KB
/
windows_2012_r2.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
{
"builders": [
{
"boot_wait": "2m",
"communicator": "winrm",
"disk_size": "{{user `disk_size`}}",
"floppy_files": [
"{{user `autounattend`}}",
"scripts/windows/disable-winrm.ps1",
"scripts/windows/enable-winrm.ps1",
"scripts/windows/microsoft-updates.bat",
"scripts/windows/unattend.xml",
"scripts/windows/win-updates.ps1"
],
"headless": "{{user `headless`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_url": "{{user `iso_url`}}",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"type": "qemu",
"output_directory": "packer-windows_2012_r2",
"qemuargs": [
[ "-m", "2048M" ],
[ "-fdb", "floppy/virtio.vfd" ]
],
"qemu_binary": "/usr/libexec/qemu-kvm",
"disk_interface": "virtio-scsi",
"accelerator": "kvm",
"vnc_bind_address": "0.0.0.0",
"vm_name": "windows_2012_r2",
"winrm_password": "Admin",
"winrm_timeout": "{{user `winrm_timeout`}}",
"winrm_username": "Admin"
}
],
"provisioners": [
{
"scripts": [
"scripts/windows/install_cloudbase_init.ps1",
"scripts/windows/install_chocolatey.ps1",
"scripts/windows/install_openssh.ps1"
],
"type": "powershell"
},
{
"destination": "C:/ProgramData/ssh/sshd_config",
"source": "http/windows/sshd_config",
"type": "file"
},
{
"scripts": [
"scripts/windows/enable-rdp.bat",
"scripts/windows/compile-dotnet-assemblies.bat",
"scripts/windows/compact.bat"
],
"type": "windows-shell"
}
],
"variables": {
"autounattend": "answer_files/2012_r2/Autounattend.xml",
"disk_size": "30720",
"headless": "true",
"iso_checksum": "5b5e08c490ad16b59b1d9fab0def883a",
"iso_checksum_type": "md5",
"iso_url": "http://download.microsoft.com/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",
"winrm_timeout": "6h"
}
}