-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwindows-7.json
73 lines (73 loc) · 2.72 KB
/
windows-7.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
{
"builders": [
{
"type": "virtualbox-iso",
"iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"headless": "{{ user `headless` }}",
"boot_wait": "2m",
"communicator": "winrm",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "8h",
"shutdown_command": "a:/PackerShutdown.bat",
"shutdown_timeout": "20m",
"output_directory": "packer-{{ user `template` }}-virtualbox",
"guest_os_type": "Windows7_64",
"http_directory": "blobs/client",
"disk_size": 61440,
"floppy_files": [
"{{user `autounattend`}}",
"./scripts/windows/PackerShutdown.bat",
"./scripts/windows/updates.ps1",
"./scripts/windows/oracle-cert.cer",
"./scripts/windows/SetupComplete-2012.cmd",
"./scripts/windows/postunattend.xml",
"./scripts/windows/Test-Command.ps1",
"./scripts/windows/package.ps1",
"./scripts/windows/hotfix-KB3102810.bat"
],
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--natpf1", "guest_winrm,tcp,,55985,,5985" ],
[ "modifyvm", "{{.Name}}", "--memory", "4096" ],
[ "modifyvm", "{{.Name}}", "--vram", "48" ],
[ "modifyvm", "{{.Name}}", "--cpus", "2" ],
[ "modifyvm", "{{.Name}}", "--ioapic", "on" ],
[ "storagectl", "{{.Name}}", "--name", "SataController", "--add", "sata", "--controller", "IntelAHCI"],
[ "storageattach", "{{.Name}}", "--storagectl", "SataController", "--port", "0", "--device", "0", "--type", "dvddrive", "--medium", "./blobs/wsusoffline-w61-x64.iso"]
],
"vm_name": "{{ user `template ` }}"
}
],
"provisioners": [
{
"type": "windows-shell",
"script": "./scripts/windows/vm-guest-tools.bat",
"pause_before": "5m"
},
{
"type": "powershell",
"script": "./scripts/windows/provision.ps1"
}
],
"post-processors": [
{
"type": "vagrant",
"keep_input_artifact": true,
"output": "builds/{{ user `box_basename` }}.{{.Provider}}.box",
"vagrantfile_template": "./vagrant_templates/vagrantfile-windows_7.template"
}
],
"variables": {
"box_basename": "windows-7",
"headless": "true",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"no_proxy": "{{env `no_proxy`}}",
"iso_url": "http://care.dlservice.microsoft.com/dl/download/evalx/win7/x64/EN/7600.16385.090713-1255_x64fre_enterprise_en-us_EVAL_Eval_Enterprise-GRMCENXEVAL_EN_DVD.iso",
"iso_checksum_type": "md5",
"iso_checksum": "1d0d239a252cb53e466d39e752b17c28",
"autounattend": "./answer_files/7/Autounattend.xml"
}
}