forked from lavabit/robox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeneric-libvirt-x32.json
128 lines (128 loc) · 4.38 KB
/
generic-libvirt-x32.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"variables": {
"box_version": "{{env `VERSION`}}"
},
"provisioners": [
{
"scripts": [
"scripts/debian9/apt.sh",
"scripts/debian9/network.sh"
],
"type": "shell",
"start_retry_timeout": "15m",
"expect_disconnect": "true",
"only": [
"generic-debian9-x32-libvirt"
]
},
{
"scripts": [
"scripts/debian9/floppy.sh",
"scripts/debian9/profile.sh",
"scripts/debian9/vagrant.sh",
"scripts/debian9/motd.sh",
"scripts/debian9/fixtty.sh",
"scripts/debian9/fixuuid.sh",
"scripts/debian9/virtualbox.sh",
"scripts/debian9/parallels.sh",
"scripts/debian9/vmware.sh",
"scripts/debian9/qemu.sh"
],
"type": "shell",
"pause_before": "120s",
"start_retry_timeout": "15m",
"expect_disconnect": "true",
"only": [
"generic-debian9-x32-libvirt"
]
}
],
"builders": [
{
"type": "qemu",
"name": "generic-debian9-x32-libvirt",
"vm_name": "generic-debian9-x32-libvirt",
"output_directory": "output/generic-debian9-x32-libvirt",
"accelerator": "kvm",
"qemu_binary": "/usr/libexec/qemu-kvm",
"boot_wait": "10s",
"boot_command": [
"<esc><wait><esc><wait><esc><wait><esc><wait><esc><wait><esc><wait>",
"<esc><wait><esc><wait><esc><wait><esc><wait><esc><wait><esc><wait>",
"<esc><wait><esc><wait><esc><wait><esc><wait><esc><wait><esc><wait>",
"<esc><wait><esc><wait><esc><wait><esc><wait><esc><wait><esc><wait>",
"<esc><wait><esc><wait><esc><wait><esc><wait><esc><wait><esc><wait>",
"<esc><wait><esc><wait><esc><wait><esc><wait><esc><wait><esc><wait>",
"<esc><wait><esc><wait><esc><wait><esc><wait><esc><wait><esc><wait>",
"<esc><wait><esc><wait><esc><wait><esc><wait><esc><wait><esc><wait>",
"<esc><wait><esc><wait><esc><wait><esc><wait><esc><wait><esc><wait>",
"<esc><wait><esc><wait><esc><wait><esc><wait><esc><wait><esc><wait>",
"auto ",
"ipv6.disable_ipv6=1 net.ifnames=0 biosdevname=0 preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/generic.debian9.vagrant.cfg ",
"<enter>"
],
"format": "qcow2",
"disk_size": "131072",
"disk_discard": "unmap",
"disk_detect_zeroes": "unmap",
"disk_cache": "unsafe",
"disk_image": false,
"disk_compression": true,
"disk_interface": "virtio-scsi",
"net_device": "virtio-net",
"cpus": 2,
"memory": 2048,
"http_directory": "http",
"headless": true,
"iso_url": "https://ftp.acc.umu.se/mirror/cdimage/archive/9.13.0/i386/iso-cd/debian-9.13.0-i386-netinst.iso",
"iso_checksum": "sha256:27de998af87007bf5daa3030d3863d3ef801b948c29f5bbce232be4f928eedba",
"ssh_username": "root",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_timeout": "3600s",
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now"
}
],
"post-processors": [
[
{
"type": "vagrant",
"compression_level": 9,
"keep_input_artifact": false,
"vagrantfile_template": "tpl/generic-{{split build_name \"-\" 1}}.rb",
"output": "output/generic-{{split build_name \"-\" 1}}-{{split build_name \"-\" 2}}-{{split build_name \"-\" 3}}-{{user `box_version`}}.box",
"include": [
"tpl/generic/info.json"
]
},
{
"type": "checksum",
"checksum_types": [
"sha256"
],
"keep_input_artifact": false,
"output": "output/generic-{{split build_name \"-\" 1}}-{{split build_name \"-\" 2}}-{{split build_name \"-\" 3}}-{{user `box_version`}}.box.sha256"
}
],
[
{
"type": "vagrant",
"compression_level": 9,
"keep_input_artifact": false,
"vagrantfile_template": "tpl/roboxes-{{split build_name \"-\" 1}}.rb",
"output": "output/roboxes-{{split build_name \"-\" 1}}-{{split build_name \"-\" 2}}-{{split build_name \"-\" 3}}-{{user `box_version`}}.box",
"include": [
"tpl/roboxes/info.json"
]
},
{
"type": "checksum",
"checksum_types": [
"sha256"
],
"keep_input_artifact": false,
"output": "output/roboxes-{{split build_name \"-\" 1}}-{{split build_name \"-\" 2}}-{{split build_name \"-\" 3}}-{{user `box_version`}}.box.sha256"
}
]
]
}