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_universal.json
59 lines (59 loc) · 2.11 KB
/
windows_10_universal.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
{
"variables": {
"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`}}-universal",
"vm_description": "Windows 10 {{user `vm_release`}} {{user `vm_arch`}} Evaluation version for testing with Univerals dependencies"
},
"builders": [
{
"type": "virtualbox-ovf",
"source_path": "./output/windows10-{{user `vm_release`}}-eval-{{user `vm_arch`}}-base/windows10-{{user `vm_release`}}-eval-{{user `vm_arch`}}-base-v{{user `vm_version`}}.ovf",
"communicator": "winrm",
"vm_name": "{{user `vm_product`}}-v{{user `vm_version`}}",
"output_directory": "output/{{user `vm_product`}}",
"headless": true,
"boot_wait": "2m",
"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",
"export_opts":
[
"--manifest",
"--vsys", "0",
"--product", "{{user `vm_product`}}",
"--description", "{{user `vm_description`}}",
"--version", "v{{user `vm_version`}}"
],
"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/universal-tools.ps1"
]
}
],
"post-processors": [
{
"type": "vagrant",
"keep_input_artifact": false,
"output": "boxes/{{user `vm_product`}}-{{.Provider}}-v{{user `vm_version`}}.box",
"vagrantfile_template": "vagrantfile-windows_10-{{user `vm_arch`}}.template"
}
]
}