-
Notifications
You must be signed in to change notification settings - Fork 0
/
win10 copy.json
98 lines (97 loc) · 3.21 KB
/
win10 copy.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
{
"variables": {
"boot_wait": "5s",
"disk_size": "60720",
"iso_checksum": "aa04213f1ecb1f2de8a4ec37d37785fb",
"iso_url": "Win10/Win10_21H1.ISO",
"iso_path": "Win10/Win10_21H1.ISO",
"memsize": "6072",
"numvcpus": "2",
"vm_name": "Win10_21H1",
"winrm_password" : "packer",
"winrm_username" : "Administrator"
},
"builders": [
{
"name": "vmware",
"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,
"network": "vmnet8",
"output_directory": "out",
"vnc_bind_address": "0.0.0.0",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_url": "{{user `iso_path`}}",
"communicator":"winrm",
"winrm_username": "{{user `winrm_username`}}",
"winrm_password": "{{user `winrm_password`}}",
"winrm_use_ssl": true,
"winrm_insecure": true,
"winrm_timeout": "4h",
"floppy_files": ["Win10/scripts/bios/autounattend.xml"],
"shutdown_command": "shutdown /s /t 5 /f /d p:4:1 /c \"Packer Shutdown\"",
"shutdown_timeout": "30m",
"skip_compaction": false
},
{
"name":"vbox",
"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": ["Win10/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",
"scripts": ["Win10/scripts/setup.ps1"]
},
{
"type": "windows-restart",
"restart_timeout": "30m"
},
{
"type": "powershell",
"scripts": ["Win10/scripts/win-update.ps1"]
},
{
"type": "windows-restart",
"restart_timeout": "30m"
},
{
"type": "powershell",
"scripts": ["Win10/scripts/win-update.ps1"]
},
{
"type": "windows-restart",
"restart_timeout": "30m"
},
{
"type": "powershell",
"scripts": ["Win10/scripts/cleanup.ps1"],
"pause_before": "1m"
}
]
}