This repository has been archived by the owner on Nov 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
win10.json
110 lines (110 loc) · 3.66 KB
/
win10.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
{
"variables": {
"boot_wait": "5s",
"disk_size": "40960",
"iso_checksum": "D5B2F95E3DD658517FE7C14DF4F36DE633CA4845",
"iso_url": "http://cdn.digiboy.ir/?b=dlir-s3&f=SW_DVD5_WIN_ENT_LTSC_2019_64-bit_English_MLF_X21-96425.ISO",
"memsize": "2048",
"numvcpus": "2",
"vm_name": "Win10_1809",
"winrm_password" : "packer",
"winrm_username" : "Administrator"
},
"builders": [
{
"type": "vmware-iso",
"guest_os_type": "windows9-64",
"vm_name":"{{user `vm_name`}}",
"boot_wait": "{{user `boot_wait`}}",
"disk_size": "{{user `disk_size`}}",
"disk_type_id": "0",
"headless": false,
"http_directory": "http",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_url": "{{user `iso_url`}}",
"communicator":"winrm",
"winrm_username": "{{user `winrm_username`}}",
"winrm_password": "{{user `winrm_password`}}",
"winrm_use_ssl": true,
"winrm_insecure": true,
"winrm_timeout": "4h",
"floppy_files": ["scripts/bios/autounattend.xml"],
"shutdown_command": "shutdown /s /t 5 /f /d p:4:1 /c \"Packer Shutdown\"",
"shutdown_timeout": "30m",
"skip_compaction": false,
"vmx_data": {
"memsize": "{{user `memsize`}}",
"numvcpus": "{{user `numvcpus`}}",
"virtualHW.version": "14",
"scsi0.virtualDev": "lsisas1068"
}
},
{
"type": "virtualbox-iso",
"guest_os_type": "Windows10_64",
"vm_name": "{{user `vm_name`}}",
"iso_url": "{{user `iso_url`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"guest_additions_mode": "disable",
"headless": false,
"boot_wait": "{{user `boot_wait`}}",
"disk_size": "{{user `disk_size`}}",
"communicator":"winrm",
"winrm_username": "{{user `winrm_username`}}",
"winrm_password": "{{user `winrm_password`}}",
"winrm_use_ssl": true,
"winrm_insecure": true,
"winrm_timeout": "4h",
"floppy_files": ["scripts/bios/autounattend.xml"],
"shutdown_command": "shutdown /s /t 5 /f /d p:4:1 /c \"Packer Shutdown\"",
"shutdown_timeout": "30m",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "{{user `memsize`}}"],
["modifyvm", "{{.Name}}", "--cpus", "{{user `numvcpus`}}"]
]
}
],
"provisioners": [
{
"type": "powershell",
"only": ["vmware-iso"],
"scripts": ["scripts/vmware-tools.ps1"],
"pause_before": "1m"
},
{
"type": "powershell",
"only": ["virtualbox-iso"],
"scripts": ["scripts/virtualbox-guest-additions.ps1"],
"pause_before": "1m"
},
{
"type": "powershell",
"scripts": ["scripts/setup.ps1"]
},
{
"type": "windows-restart",
"restart_timeout": "30m"
},
{
"type": "powershell",
"scripts": ["scripts/win-update.ps1"]
},
{
"type": "windows-restart",
"restart_timeout": "30m"
},
{
"type": "powershell",
"scripts": ["scripts/win-update.ps1"]
},
{
"type": "windows-restart",
"restart_timeout": "30m"
},
{
"type": "powershell",
"scripts": ["scripts/cleanup.ps1"],
"pause_before": "1m"
}
]
}