This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
packer.json
79 lines (78 loc) · 2.09 KB
/
packer.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
{
"builders": [
{
"accelerator": "{{user `accelerator`}}",
"boot_command": [
"<esc><wait>",
"auto url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>",
"locale=en_US <wait>",
"keymap=us <wait>",
"<enter><wait>"
],
"cpus": "{{ user `cpus`}}",
"disk_compression": "true",
"disk_interface": "virtio",
"disk_size": "{{user `disk_size`}}",
"format": "qcow2",
"headless": "{{user `headless`}}",
"http_directory": "http",
"iso_checksum": "{{user `iso_checksum_type`}}:{{user `iso_checksum`}}",
"iso_url": "{{user `iso_url`}}",
"memory": "{{ user `memory_size`}}",
"net_device": "virtio-net",
"qemuargs": [
[
"--no-acpi"
],
[
"-vga",
"qxl"
]
],
"shutdown_command": "",
"ssh_password": "vagrant",
"ssh_timeout": "120m",
"ssh_username": "root",
"type": "qemu",
"vm_name": "{{user `vm_name`}}"
}
],
"post-processors": [
{
"keep_input_artifact": true,
"only": [
"qemu"
],
"output": "builds/{{user `vm_name`}}.box",
"type": "vagrant",
"vagrantfile_template": "Vagrantfile.template"
}
],
"provisioners": [
{
"pause_before": "20s",
"scripts": [
"scripts/common/update.sh",
"scripts/common/install.sh",
"scripts/common/sshd.sh",
"scripts/common/networking.sh",
"scripts/common/vagrant.sh",
"scripts/kali/custom.sh",
"scripts/common/cleanup.sh"
],
"type": "shell"
}
],
"variables": {
"accelerator": "kvm",
"cpus": "4",
"disk_size": "40960",
"headless": "true",
"iso_checksum": "",
"iso_checksum_type": "sha256",
"iso_checksum_url": "https://http.kali.org/kali/dists/kali-rolling/main/installer-amd64/current/images/netboot/SHA256SUMS",
"iso_url": "https://http.kali.org/kali/dists/kali-rolling/main/installer-amd64/current/images/netboot/mini.iso",
"memory_size": "4096",
"vm_name": "kali-linux-rolling"
}
}