-
Notifications
You must be signed in to change notification settings - Fork 0
/
packer_basebox.json
50 lines (44 loc) · 1.45 KB
/
packer_basebox.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
{
"variables": {
"template_name": "HAB-01-amd64-basebox",
"template_version": "2019-05-26",
"template_description": "Hack AB CTF 01 Base Box"
},
"builders": [{
"type": "virtualbox-iso",
"iso_url": "packer_input/debian-9.9.0-amd64-netinst.iso",
"iso_checksum": "d4a22c81c76a66558fb92e690ef70a5d67c685a08216701b15746586520f6e8e",
"iso_checksum_type": "sha256",
"vm_name": "{{user `template_name`}}",
"guest_os_type": "Debian_64",
"cpus": 2,
"disk_size": 8000,
"memory": 1024,
"guest_additions_mode": "disable",
"ssh_username": "root",
"ssh_password": "root",
"ssh_timeout": "10m",
"headless": false,
"keep_registered": false,
"format": "ova",
"export_opts": [
"--vsys", "0",
"--description", "{{user `template_description`}}",
"--version", "{{user `template_version`}}"
],
"vboxmanage": [["modifyvm", "{{.Name}}", "--macaddress1", "080000C0FFEE"]],
"vboxmanage_post": [["modifyvm", "{{.Name}}", "--vrde", "off"]],
"boot_wait": "3s",
"http_directory": "d-i",
"boot_command": [
"<esc><wait>",
".linux /install.amd/vmlinuz initrd=/install.amd/initrd.gz ",
"netcfg/get_hostname={{user `template_name`}} netcfg/get_domain= ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
"debian-installer=en_US auto locale=en_US ",
"keyboard-configuration/xkb-keymap=se<enter>"],
"output_directory": "packer_output",
"shutdown_command": "shutdown -P now",
"post_shutdown_delay": "30s"
}]
}