forked from rgl/windows-vagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
windows-2019.json
144 lines (144 loc) · 4.51 KB
/
windows-2019.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"variables": {
"disk_size": "61440",
"iso_url": "https://software-download.microsoft.com/download/pr/17763.737.190906-2324.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us_1.iso",
"iso_checksum": "549bca46c055157291be6c22a3aaaed8330e78ef4382c99ee82c896426a1cee1",
"iso_checksum_type": "sha256"
},
"builders": [
{
"name": "windows-2019-amd64-libvirt",
"type": "qemu",
"accelerator": "kvm",
"cpus": 2,
"memory": 4096,
"qemuargs": [
["-cpu", "host"],
["-soundhw", "hda"],
["-usbdevice", "tablet"],
["-device", "virtio-net,netdev=user.0"],
["-vga", "qxl"],
["-device", "virtio-serial-pci"],
["-chardev", "socket,path=/tmp/{{.Name}}-qga.sock,server,nowait,id=qga0"],
["-device", "virtserialport,chardev=qga0,name=org.qemu.guest_agent.0"],
["-chardev", "spicevmc,id=spicechannel0,name=vdagent"],
["-device", "virtserialport,chardev=spicechannel0,name=com.redhat.spice.0"],
["-spice", "unix,addr=/tmp/{{.Name}}-spice.socket,disable-ticketing"]
],
"headless": true,
"format": "qcow2",
"disk_size": "{{user `disk_size`}}",
"disk_interface": "virtio",
"iso_url": "{{user `iso_url`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"communicator": "winrm",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "4h",
"shutdown_command": "shutdown /s /t 0 /f /d p:4:1 /c \"Packer Shutdown\"",
"http_directory": ".",
"floppy_files": [
"windows-2019/autounattend.xml",
"winrm.ps1",
"drivers/vioserial/2k19/amd64/*.cat",
"drivers/vioserial/2k19/amd64/*.inf",
"drivers/vioserial/2k19/amd64/*.sys",
"drivers/viostor/2k19/amd64/*.cat",
"drivers/viostor/2k19/amd64/*.inf",
"drivers/viostor/2k19/amd64/*.sys",
"drivers/NetKVM/2k19/amd64/*.cat",
"drivers/NetKVM/2k19/amd64/*.inf",
"drivers/NetKVM/2k19/amd64/*.sys",
"drivers/qxldod/2k19/amd64/*.cat",
"drivers/qxldod/2k19/amd64/*.inf",
"drivers/qxldod/2k19/amd64/*.sys"
]
},
{
"name": "windows-2019-amd64-virtualbox",
"type": "virtualbox-iso",
"guest_os_type": "Windows2016_64",
"guest_additions_mode": "attach",
"headless": true,
"cpus": 2,
"memory": 4096,
"vboxmanage": [
["modifyvm", "{{.Name}}", "--vram", "64"],
["modifyvm", "{{.Name}}", "--audio", "none"],
["modifyvm", "{{.Name}}", "--nictype1", "82540EM"],
["modifyvm", "{{.Name}}", "--nictype2", "82540EM"],
["modifyvm", "{{.Name}}", "--nictype3", "82540EM"],
["modifyvm", "{{.Name}}", "--nictype4", "82540EM"]
],
"disk_size": "{{user `disk_size`}}",
"hard_drive_interface": "sata",
"iso_url": "{{user `iso_url`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"communicator": "winrm",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "4h",
"shutdown_command": "shutdown /s /t 0 /f /d p:4:1 /c \"Packer Shutdown\"",
"floppy_files": [
"windows-2019/autounattend.xml",
"winrm.ps1"
]
}
],
"provisioners": [
{
"type": "powershell",
"script": "disable-windows-updates.ps1"
},
{
"type": "powershell",
"inline": "Uninstall-WindowsFeature Windows-Defender"
},
{
"type": "powershell",
"script": "virtualbox-prevent-vboxsrv-resolution-delay.ps1"
},
{
"type": "windows-restart"
},
{
"type": "powershell",
"script": "provision.ps1"
},
{
"type": "windows-update"
},
{
"type": "powershell",
"script": "enable-remote-desktop.ps1"
},
{
"type": "powershell",
"script": "provision-openssh.ps1"
},
{
"type": "windows-restart"
},
{
"type": "powershell",
"script": "provision-cloudbase-init.ps1"
},
{
"type": "powershell",
"script": "eject-media.ps1"
},
{
"type": "powershell",
"script": "optimize.ps1"
}
],
"post-processors": [
{
"type": "vagrant",
"output": "{{.BuildName}}.box",
"vagrantfile_template": "Vagrantfile.template"
}
]
}