-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.json
56 lines (56 loc) · 1.75 KB
/
main.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
{
"builders": [
{
"accelerator": "kvm",
"boot_command": [
"<tab> console=ttyS0 text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-8.ks<enter><wait>"
],
"boot_wait": "10s",
"disk_interface": "virtio",
"disk_size": 3072,
"format": "{{ user `format` }}",
"headless": true,
"http_directory": "http",
"iso_checksum": "a7993a0d4b7fef2433e0d4f53530b63c715d3aadbe91f152ee5c3621139a2cbc",
"iso_checksum_type": "sha256",
"iso_url": "http://mirror.cs.vt.edu/pub/CentOS/8/isos/x86_64/CentOS-8-x86_64-1905-boot.iso",
"net_device": "virtio-net",
"output_directory": "build",
"qemuargs": [
[
"-monitor",
"unix:qemu-monitor.sock,server,nowait"
],
[
"-serial",
"pipe:/tmp/qemu-serial"
],
[
"-m",
"896M"
]
],
"shutdown_command": "systemctl poweroff",
"ssh_password": "passwd",
"ssh_timeout": "10m",
"ssh_username": "root",
"type": "qemu",
"vm_name": "centos-8-amd64-{{ timestamp }}.{{ user `format` }}"
}
],
"post-processors": [
[
{
"s3_bucket_name": "{{ user `bucket_name` }}",
"tags": {
"Description": "packer amazon-import"
},
"type": "amazon-import"
}
]
],
"variables": {
"format": "qcow2",
"bucket_name": "vm-import-bucket"
}
}