-
Notifications
You must be signed in to change notification settings - Fork 3
/
instant-veins.json
102 lines (98 loc) · 3.38 KB
/
instant-veins.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
{
"_comment": [
"Packer Template for building Instant Veins",
"Copyright (C) 2018 Christoph Sommer <[email protected]>",
"",
"Documentation for this template is at http://veins.car2x.org/",
"",
"This program is free software; you can redistribute it and/or modify",
"it under the terms of the GNU General Public License as published by",
"the Free Software Foundation; either version 2 of the License, or",
"(at your option) any later version.",
"",
"This program is distributed in the hope that it will be useful,",
"but WITHOUT ANY WARRANTY; without even the implied warranty of",
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the",
"GNU General Public License for more details.",
"",
"You should have received a copy of the GNU General Public License",
"along with this program; if not, write to the Free Software",
"Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA",
""
],
"variables": {
"version": "5.2-i1"
},
"builders": [
{
"type": "virtualbox-iso",
"iso_urls": [
"files/debian-11.1.0-amd64-netinst.iso",
"https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.1.0-amd64-netinst.iso"
],
"iso_checksum": "8488abc1361590ee7a3c9b00ec059b29dfb1da40f8ba4adf293c7a30fa943eb2",
"iso_checksum_type": "sha256",
"headless": true,
"disk_size": "20480",
"guest_additions_mode": "disable",
"guest_os_type": "Debian_64",
"post_shutdown_delay": "1m",
"shutdown_command": "echo 'veins' | sudo -S shutdown -P now",
"boot_wait": "5s",
"http_directory": "scripts",
"ssh_username": "veins",
"ssh_password": "veins",
"ssh_wait_timeout": "10000s",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "4096" ],
[ "modifyvm", "{{.Name}}", "--cpus", "2" ],
[ "modifyvm", "{{.Name}}", "--vram", "128" ]
],
"vboxmanage_post": [
[ "storageattach", "{{.Name}}", "--storagectl", "IDE Controller", "--port", "0", "--device", "1", "--type", "dvddrive", "--medium", "emptydrive" ]
],
"boot_command": [
"<esc><wait>",
"install ",
"auto ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
"locale=en_US.UTF-8 ",
"kbd-chooser/method=us ",
"keyboard-configuration/xkb-keymap=us ",
"netcfg/get_hostname=instant-veins ",
"netcfg/get_domain=car2x.org ",
"<enter>"
],
"format": "ova",
"output_directory": "output/instant-veins-{{user `version`}}",
"vm_name": "instant-veins-{{user `version`}}",
"export_opts": [
"--manifest",
"--vsys", "0",
"--description", "Instant Veins {{user `version`}}",
"--version", "{{user `version`}}"
]
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'veins' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"script": "scripts/pre.sh"
},
{
"type": "ansible-local",
"playbook_file": "ansible/instant-veins.yml",
"playbook_dir": "ansible",
"extra_arguments": [
"-e",
"'ansible_python_interpreter=/usr/bin/python3'"
]
},
{
"type": "shell",
"execute_command": "echo 'veins' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"script": "scripts/post.sh"
}
]
}