forked from gwagner/packer-centos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpacker-virtualbox-centos.json
42 lines (42 loc) · 1.34 KB
/
packer-virtualbox-centos.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
{
"builders": [
{
"boot_command": [
"<esc>",
"<wait>linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/anaconda-ks.cfg<enter>"
],
"boot_wait": "5s",
"disk_size": 40000,
"guest_os_type": "RedHat_64",
"http_directory": "./http_directory",
"iso_checksum": "d8aaf698408c0c01843446da4a20b1ac03d27f87aad3b3b7b7f42c6163be83b9",
"iso_checksum_type": "sha256",
"iso_url": "http://mirrors.kernel.org/centos/6.5/isos/x86_64/CentOS-6.5-x86_64-netinstall.iso",
"ssh_password": "vagrant",
"ssh_username": "root",
"ssh_wait_timeout": "30m",
"type": "virtualbox-iso",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "1024"],
["modifyvm", "{{.Name}}", "--cpus", "2"]
],
"vm_name": "packer-centos-6_5-64"
}
],
"provisioners": [
{
"type": "shell",
"script": "provisioners/install-virtualbox-guest-additions.sh"
},
{
"type": "shell",
"script": "provisioners/clean-empty-space.sh"
}
],
"post-processors": [
{
"type": "vagrant",
"output": "centos-6_4-64_virtualbox.box"
}
]
}