-
Notifications
You must be signed in to change notification settings - Fork 65
/
macos.json
171 lines (171 loc) · 6.2 KB
/
macos.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
{
"_command": "Build with `packer build macos.json`",
"builders": [
{
"boot_wait": "2s",
"disk_size": "{{ user `disk_size` }}",
"guest_os_type": "{{ user `vmware_guest_os_type` }}",
"iso_checksum_type": "none",
"iso_url": "{{ user `iso_url` }}",
"output_directory": "output-{{ user `vm_name` }}-vmware-iso",
"shutdown_command": "echo '{{ user `ssh_username` }}'|sudo -S shutdown -h now",
"skip_compaction": true,
"ssh_password": "{{ user `ssh_password` }}",
"ssh_port": 22,
"ssh_timeout": "10000s",
"ssh_username": "{{ user `ssh_username` }}",
"ssh_wait_timeout": "10000s",
"tools_upload_flavor": "darwin",
"type": "vmware-iso",
"vm_name": "{{ user `vm_name` }}",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"ehci.present": "TRUE",
"firmware": "efi",
"hpet0.present": "TRUE",
"ich7m.present": "TRUE",
"keyboardAndMouseProfile": "macProfile",
"memsize": "{{ user `memory` }}",
"numvcpus": "{{ user `cpus` }}",
"smc.present": "TRUE",
"usb.present": "TRUE"
}
},
{
"boot_wait": "2s",
"disk_size": "{{ user `disk_size` }}",
"guest_additions_mode": "disable",
"guest_os_type": "{{ user `virtualbox_guest_os_type` }}",
"hard_drive_interface": "sata",
"iso_checksum_type": "none",
"iso_interface": "sata",
"iso_url": "{{ user `iso_url` }}",
"output_directory": "output-{{ user `vm_name` }}-virtualbox-iso",
"post_shutdown_delay": "1m",
"shutdown_command": "echo '{{ user `ssh_username` }}'|sudo -S shutdown -h now",
"ssh_password": "{{ user `ssh_password` }}",
"ssh_port": 22,
"ssh_username": "{{ user `ssh_username` }}",
"ssh_wait_timeout": "10000s",
"type": "virtualbox-iso",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--audiocontroller", "hda" ],
[ "modifyvm", "{{.Name}}", "--boot1", "dvd" ],
[ "modifyvm", "{{.Name}}", "--boot2", "disk" ],
[ "modifyvm", "{{.Name}}", "--chipset", "ich9" ],
[ "modifyvm", "{{.Name}}", "--firmware", "efi" ],
[ "modifyvm", "{{.Name}}", "--hpet", "on" ],
[ "modifyvm", "{{.Name}}", "--keyboard", "usb" ],
[ "modifyvm", "{{.Name}}", "--memory", "{{ user `memory` }}" ],
[ "modifyvm", "{{.Name}}", "--mouse", "usbtablet" ],
[ "modifyvm", "{{.Name}}", "--vram", "128" ]
],
"vm_name": "{{ user `vm_name` }}"
},
{
"boot_wait": "5s",
"disk_size": "{{ user `disk_size` }}",
"guest_os_type": "{{ user `parallels_guest_os_type` }}",
"iso_checksum_type": "none",
"iso_url": "{{ user `iso_url` }}",
"output_directory": "output-{{ user `vm_name` }}-parallels-iso",
"parallels_tools_flavor": "mac",
"prlctl": [
[ "set", "{{.Name}}", "--memsize", "{{ user `memory` }}" ],
[ "set", "{{.Name}}", "--memquota", "512:{{ user `memory` }}" ],
[ "set", "{{.Name}}", "--cpus", "{{ user `cpus` }}" ],
[ "set", "{{.Name}}", "--distribution", "macosx" ],
[ "set", "{{.Name}}", "--3d-accelerate", "highest" ],
[ "set", "{{.Name}}", "--high-resolution", "off" ],
[ "set", "{{.Name}}", "--auto-share-camera", "off" ],
[ "set", "{{.Name}}", "--auto-share-bluetooth", "off" ],
[ "set", "{{.Name}}", "--on-window-close", "keep-running" ],
[ "set", "{{.Name}}", "--isolate-vm", "off" ],
[ "set", "{{.Name}}", "--shf-host", "off" ]
],
"shutdown_command": "echo '{{ user `ssh_username` }}'|sudo -S shutdown -h now",
"ssh_password": "{{ user `ssh_password` }}",
"ssh_port": 22,
"ssh_username": "{{ user `ssh_username` }}",
"ssh_wait_timeout": "10000s",
"type": "parallels-iso",
"vm_name": "{{ user `vm_name` }}"
}
],
"post-processors": [
{
"keep_input_artifact": false,
"output": "box/{{.Provider}}/{{user `vm_name`}}-{{user `version`}}.box",
"type": "vagrant",
"vagrantfile_template": "{{ user `vagrantfile_template` }}"
}
],
"provisioners": [
{
"destination": "/private/tmp/set_kcpassword.py",
"source": "script/support/set_kcpassword.py",
"type": "file"
},
{
"environment_vars": [
"AUTOLOGIN={{user `autologin`}}",
"UPDATE={{user `update`}}",
"INSTALL_XCODE_CLI_TOOLS={{user `install_xcode_cli_tools`}}",
"INSTALL_VAGRANT_KEYS={{user `install_vagrant_keys`}}",
"SSH_USERNAME={{ user `ssh_username` }}",
"SSH_PASSWORD={{ user `ssh_password` }}"
],
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E -S bash '{{ .Path }}'",
"expect_disconnect": true,
"scripts": [
"script/vagrant.sh",
"script/vmware.sh",
"script/parallels.sh",
"script/xcode-cli-tools.sh",
"script/add-network-interface-detection.sh",
"script/energy.sh",
"script/autologin.sh",
"script/update.sh",
"script/update.sh",
"script/update.sh",
"script/update.sh"
],
"type": "shell"
},
{
"environment_vars": [
"AUTOLOGIN={{user `autologin`}}",
"UPDATE={{user `update`}}",
"INSTALL_XCODE_CLI_TOOLS={{user `install_xcode_cli_tools`}}",
"INSTALL_VAGRANT_KEYS={{user `install_vagrant_keys`}}",
"SSH_USERNAME={{ user `ssh_username` }}",
"SSH_PASSWORD={{ user `ssh_password` }}"
],
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E -S bash '{{ .Path }}'",
"expect_disconnect": true,
"scripts": [
"script/minimize.sh"
],
"start_retry_timeout": "10000s",
"type": "shell"
}
],
"variables": {
"autologin": "true",
"cpus": "1",
"disk_size": "65536",
"install_vagrant_keys": "true",
"install_xcode_cli_tools": "true",
"iso_url": "dmg/OSX_InstallESD_10.11_15A284.dmg",
"memory": "2048",
"parallels_guest_os_type": "win-8",
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"update": "true",
"vagrantfile_template": "",
"version": "0.1.0",
"vm_name": "macos1011",
"virtualbox_guest_os_type": "MacOS1011_64",
"vmware_guest_os_type": "darwin15-64"
}
}