This repository has been archived by the owner on Aug 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhyperv-windows-2019.json
72 lines (72 loc) · 2.15 KB
/
hyperv-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
{
"variables": {
"vm_name": "hyperv-windows-2019",
"hyperv_switchname": "External Network",
"output_directory": "output",
"cpu": "4",
"ram_size": "8192",
"disk_size": "41440",
"iso_checksum": "C1037A8E120CD017AA2C7555D21812D4AE32BDF5CA7231E558D2377DBACEBA80",
"iso_checksum_type": "sha256",
"iso_url": "./iso/Windows_InsiderPreview_Server_vNext_en-us_17650.iso",
"manually_download_iso_from": "https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewserver"
},
"builders": [
{
"vm_name": "{{ user `vm_name` }}",
"switch_name": "{{user `hyperv_switchname`}}",
"type": "hyperv-iso",
"communicator": "winrm",
"iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"output_directory": "{{user `output_directory`}}",
"boot_wait": "0s",
"boot_command": [
"a<enter><wait>a<enter><wait>a<enter><wait>a<enter>"
],
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "6h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"skip_compaction": true,
"ram_size": "{{user `ram_size`}}",
"cpu": "{{user `cpu`}}",
"generation": 2,
"disk_size": "{{user `disk_size`}}",
"floppy_files": [],
"secondary_iso_images": [
"./windows/windows-2019/answer.iso"
]
}
],
"provisioners": [
{
"type": "powershell",
"elevated_user": "vagrant",
"elevated_password": "vagrant",
"scripts": [
"./scripts/install-chocolatey.ps1",
"./scripts/install-psgallerymodules.ps1",
"./scripts/compile-dotnet-assemblies.ps1",
"./scripts/cleanup.ps1",
"./scripts/ultradefrag.ps1",
"./scripts/optimize-drive.ps1",
"./scripts/sdelete.ps1",
"./scripts/pin-powershell.bat"
],
"valid_exit_codes": [
0,
3010,
1641
]
}
],
"post-processors": [
{
"type": "vagrant",
"keep_input_artifact": false,
"output": "hyperv_windows-2019.box"
}
]
}