-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpacker-fuzzvm.json
More file actions
95 lines (95 loc) · 3.19 KB
/
packer-fuzzvm.json
File metadata and controls
95 lines (95 loc) · 3.19 KB
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
{
"variables": {
"account_file": "",
"project_id": "",
"aws_access_key": "",
"aws_secret_key": ""
},
"builders": [{
"name": "gcloud",
"type": "googlecompute",
"account_file": "{{user `account_file`}}",
"project_id": "{{user `project_id`}}",
"source_image": "ubuntu-1604-xenial-v20161020",
"zone": "europe-west1-d",
"disk_size": "10",
"disk_type": "pd-standard",
"image_description": "cloudfuzzer fuzzing image",
"image_family": "cloudfuzzer-fuzzvm",
"image_name": "cloudfuzzer-fuzzvm",
"machine_type": "n1-standard-1",
"ssh_username": "ubuntu"
},
{
"name": "aws",
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "eu-central-1",
"instance_type": "t2.micro",
"source_ami": "ami-b87881d7",
"ami_name": "cloudfuzzer-fuzzvm",
"ssh_username": "ubuntu"
},
{
"name": "virtualbox",
"type": "virtualbox-iso",
"guest_os_type": "Ubuntu_64",
"iso_url": "http://releases.ubuntu.com/16.04/ubuntu-16.04.2-server-amd64.iso",
"iso_checksum": "737ae7041212c628de5751d15c3016058b0e833fdc32e7420209b76ca3d0a535",
"iso_checksum_type": "sha256",
"headless": "false",
"output_directory": "fuzzvm-img",
"vm_name": "fuzzvm",
"disk_size": "4000",
"ssh_timeout": "30m",
"ssh_username": "ubuntu",
"ssh_password": "ubuntu",
"shutdown_command": "sudo shutdown -P now",
"http_directory": ".",
"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 ",
"net.ifnames=0 ",
"auto-install/enable=true ",
"debconf/priority=critical ",
"preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/ubuntu-16.04.preseed.cfg ",
"<enter>"]
}],
"provisioners": [
{
"type": "file",
"source": "../vm-keys/fuzzvm-key",
"destination": "/tmp/fuzzvm-key"
},
{
"type": "file",
"source": "../fuzzvm",
"destination": "/tmp/scripts"
},
{
"type": "file",
"source": "../vm-keys/bastion-key.pub",
"destination": "/tmp/bastion-key.pub"
},
{
"type": "file",
"source": "../vm-keys/fuzzvm-key.pub",
"destination": "/tmp/fuzzvm-key.pub"
},
{
"type": "shell",
"script": "provisioner-scripts/fuzzvm-setup.sh"
}]
}