forked from lavabit/robox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lineage-vmware.json
239 lines (234 loc) · 8.65 KB
/
lineage-vmware.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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
{
"variables": {
"box_version": "{{env `VERSION`}}"
},
"provisioners": [
{
"scripts": [
"scripts/ubuntu1604/apt.sh",
"scripts/ubuntu1604/network.sh"
],
"type": "shell",
"start_retry_timeout": "15m",
"expect_disconnect": "true",
"only": [
"lineage-vmware",
"lineage-nash-vmware"
]
},
{
"scripts": [
"scripts/ubuntu1604/limits.sh",
"scripts/ubuntu1604/floppy.sh",
"scripts/ubuntu1604/vagrant.sh",
"scripts/ubuntu1604/profile.sh",
"scripts/ubuntu1604/motd.sh",
"scripts/ubuntu1604/fixtty.sh",
"scripts/ubuntu1604/virtualbox.sh",
"scripts/ubuntu1604/parallels.sh",
"scripts/ubuntu1604/vmware.sh",
"scripts/ubuntu1604/qemu.sh",
"scripts/ubuntu1604/cleanup.sh"
],
"type": "shell",
"pause_before": "120s",
"start_retry_timeout": "15m",
"expect_disconnect": "true",
"only": [
"lineage-vmware",
"lineage-nash-vmware"
]
},
{
"type": "file",
"direction": "upload",
"source": "res/blobs/system-blobs.tar.gz",
"destination": "/home/vagrant/system-blobs.tar.gz",
"only": [
"lineage-vmware",
"lineage-nash-vmware"
]
},
{
"scripts": [
"scripts/ubuntu1604/lineage.sh"
],
"type": "shell",
"start_retry_timeout": "15m",
"expect_disconnect": "true",
"only": [
"lineage-vmware",
"lineage-nash-vmware"
]
},
{
"scripts": [
"scripts/common/keys.sh",
"scripts/common/machine.sh",
"scripts/common/leases.sh",
"scripts/common/localtime.sh",
"scripts/common/zerodisk.sh",
"scripts/common/lockout.sh"
],
"type": "shell",
"start_retry_timeout": "15m",
"expect_disconnect": "true",
"except": [
]
}
],
"builders": [
{
"type": "vmware-iso",
"name": "lineage-vmware",
"vm_name": "lineage-vmware",
"vmdk_name": "lineage-vmware",
"output_directory": "output/lineage-vmware",
"boot_wait": "20s",
"boot_command": [
"<enter><wait>",
"<f6><esc>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs>",
"/install/vmlinuz ",
"initrd=/install/initrd.gz ",
"auto-install/enable=true ",
"debconf/priority=critical ",
"ipv6.disable_ipv6=1 net.ifnames=0 biosdevname=0 preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/lineage.ubuntu1604.vagrant.cfg<wait> ",
"<enter>"
],
"disk_size": 196608,
"disk_type_id": "0",
"cpus": 4,
"memory": 2048,
"version": "12",
"vmx_data_post": {
"virtualHW.version": "12",
"cleanShutdown": "TRUE",
"softPowerOff": "FALSE",
"ethernet0.virtualDev": "e1000",
"ethernet0.startConnected": "TRUE",
"ethernet0.wakeonpcktrcv": "false"
},
"guest_os_type": "ubuntu-64",
"skip_compaction": false,
"http_directory": "http",
"headless": true,
"vnc_disable_password": true,
"vnc_bind_address": "127.0.0.1",
"vmx_remove_ethernet_interfaces": true,
"iso_url": "https://mirrors.kernel.org/ubuntu-releases/16.04.7/ubuntu-16.04.7-server-amd64.iso",
"iso_checksum": "sha256:b23488689e16cad7a269eb2d3a3bf725d3457ee6b0868e00c8762d3816e25848",
"ssh_username": "root",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_timeout": "3600s",
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
"tools_upload_flavor": "linux"
},
{
"type": "vmware-iso",
"name": "lineage-nash-vmware",
"vm_name": "lineage-nash-vmware",
"vmdk_name": "lineage-nash-vmware",
"output_directory": "output/lineage-nash-vmware",
"boot_wait": "20s",
"boot_command": [
"<enter><wait>",
"<f6><esc>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs>",
"/install/vmlinuz ",
"initrd=/install/initrd.gz ",
"auto-install/enable=true ",
"debconf/priority=critical ",
"ipv6.disable_ipv6=1 net.ifnames=0 biosdevname=0 preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/lineage.ubuntu1604.vagrant.cfg<wait> ",
"<enter>"
],
"disk_size": 196608,
"disk_type_id": "0",
"cpus": 4,
"memory": 2048,
"version": "12",
"vmx_data_post": {
"virtualHW.version": "12",
"cleanShutdown": "TRUE",
"softPowerOff": "FALSE",
"ethernet0.virtualDev": "e1000",
"ethernet0.startConnected": "TRUE",
"ethernet0.wakeonpcktrcv": "false"
},
"guest_os_type": "ubuntu-64",
"skip_compaction": false,
"http_directory": "http",
"headless": true,
"vnc_disable_password": true,
"vnc_bind_address": "127.0.0.1",
"vmx_remove_ethernet_interfaces": true,
"iso_url": "https://mirrors.kernel.org/ubuntu-releases/16.04.7/ubuntu-16.04.7-server-amd64.iso",
"iso_checksum": "sha256:b23488689e16cad7a269eb2d3a3bf725d3457ee6b0868e00c8762d3816e25848",
"ssh_username": "root",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_timeout": "3600s",
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
"tools_upload_flavor": "linux"
}
],
"post-processors": [
[
{
"type": "vagrant",
"compression_level": 9,
"keep_input_artifact": false,
"vagrantfile_template": "tpl/lineage.rb",
"output": "output/{{build_name}}-{{user `box_version`}}.box",
"include": [
"tpl/lineage/info.json"
]
},
{
"type": "checksum",
"checksum_types": [
"sha256"
],
"keep_input_artifact": false,
"output": "output/{{build_name}}-{{user `box_version`}}.box.sha256"
}
],
[
{
"type": "vagrant",
"compression_level": 9,
"keep_input_artifact": false,
"vagrantfile_template": "tpl/lineageos.rb",
"output": "output/{{ replace_all \"lineage\" \"lineageos\" build_name }}-{{user `box_version`}}.box",
"include": [
"tpl/lineage/info.json"
]
},
{
"type": "checksum",
"checksum_types": [
"sha256"
],
"keep_input_artifact": false,
"output": "output/{{ replace_all \"lineage\" \"lineageos\" build_name }}-{{user `box_version`}}.box.sha256"
}
]
]
}