This repository has been archived by the owner on Oct 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathwindows_10_base.json
89 lines (89 loc) · 3.01 KB
/
windows_10_base.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
{
"variables": {
"iso_url": "{{env `ISO_URL`}}",
"iso_checksum_type": "md5",
"iso_checksum": "{{env `ISO_MD5`}}",
"autounattend": "./answer_files/10_{{user `vm_arch`}}_{{user `vm_release`}}/Autounattend.xml",
"vm_arch": "{{env `ARCH`}}",
"vm_version": "{{env `VERSION`}}",
"vm_release": "{{env `RELEASE`}}",
"vm_gest_os_type": "{{env `GUEST_OS_TYPE`}}",
"vm_product": "windows10-{{user `vm_release`}}-eval-{{user `vm_arch`}}-base",
"vm_description": "Windows 10 {{user `vm_release`}} {{user `vm_arch`}} Evaluation version for testing"
},
"builders": [
{
"type": "virtualbox-iso",
"vm_name": "{{user `vm_product`}}-v{{isotime \"20060102\"}}",
"iso_urls": [
"{{ user `iso_path` }}/{{ user `iso_name` }}",
"{{ user `iso_url` }}"
],
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"output_directory": "output/{{user `vm_product`}}",
"headless": true,
"communicator": "winrm",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "6h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"shutdown_timeout": "15m",
"guest_additions_mode" : "attach",
"guest_os_type": "{{user `vm_gest_os_type`}}",
"disk_size": 61440,
"hard_drive_interface": "sata",
"hard_drive_nonrotational": true,
"hard_drive_discard": true,
"floppy_files": [
"{{user `autounattend`}}",
"./scripts/bootstrap.ps1",
"./scripts/vm-gest-tools.ps1",
"./scripts/install-bootstrap-tools.ps1",
"./scripts/win-updates.ps1",
"./doit/doitclient_x86.exe",
"./doit/doit_x86.exe",
"./doit/doitclient_x64.exe",
"./doit/doit_x64.exe",
"./doit/doit-secret",
"./doit/doitrc",
"./doit/do.ps1",
"./doit/doit-server.bat",
"./doit/mount-drive.bat"
],
"export_opts":
[
"--manifest",
"--vsys", "0",
"--product", "{{user `vm_product`}}",
"--description", "{{user `vm_description`}}",
"--version", "v{{isotime \"20060102\"}}"
],
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "8192" ],
[ "modifyvm", "{{.Name}}", "--vrde", "off" ],
[ "modifyvm", "{{.Name}}", "--vram", "128" ],
[ "modifyvm", "{{.Name}}", "--cpus", "4" ],
[ "modifyvm", "{{.Name}}", "--graphicscontroller", "vboxsvga" ],
[ "storagectl", "{{.Name}}", "--name", "SATA Controller", "--hostiocache", "on" ]
]
}
],
"provisioners": [
{
"type": "powershell",
"scripts": [
"./scripts/vm-gest-tools.ps1",
"./scripts/clean.ps1"
]
}
],
"post-processors": [
{
"type": "vagrant",
"keep_input_artifact": true,
"output": "boxes/{{user `vm_product`}}-{{.Provider}}-v{{isotime \"20060102\"}}.box",
"vagrantfile_template": "vagrantfile-windows_10-{{user `vm_arch`}}.template"
}
]
}