-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdebian-8-jessie-virtualbox.json
76 lines (75 loc) · 2.24 KB
/
debian-8-jessie-virtualbox.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
{
"variables": {
"core": "2",
"memory": "1024",
"disk_size": "140000",
"ssh_port": "22",
"ssh_wait_timeout": "10000s",
"iso_url": "https://cdimage.debian.org/cdimage/archive/8.9.0/amd64/iso-cd/debian-8.9.0-amd64-netinst.iso",
"iso_md5": "45cb6f0f1123d265d82614b9d4093c76",
"vm_name": "debian89"
},
"builders": [
{
"boot_command": [
"<esc><wait>",
"install <wait>",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>",
"debian-installer=en_US <wait>",
"auto <wait>",
"locale=en_US <wait>",
"kbd-chooser/method=us <wait>",
"netcfg/get_hostname={{ .Name }} <wait>",
"netcfg/get_domain=vagrantup.com <wait>",
"fb=false <wait>",
"debconf/frontend=noninteractive <wait>",
"console-setup/ask_detect=false <wait>",
"console-keymaps-at/keymap=us <wait>",
"keyboard-configuration/xkb-keymap=us <wait>",
"<enter><wait>"
],
"disk_size": "{{user `disk_size`}}",
"guest_os_type": "Debian_64",
"headless": true,
"http_directory": "http",
"iso_checksum": "{{user `iso_md5`}}",
"iso_checksum_type": "md5",
"iso_url": "{{user `iso_url`}}",
"shutdown_command": "echo 'halt -p' > shutdown.sh; echo 'vagrant'|sudo -S sh 'shutdown.sh'",
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"ssh_port": "{{user `ssh_port`}}",
"ssh_wait_timeout": "{{user `ssh_wait_timeout`}}",
"type": "virtualbox-iso",
"vm_name": "{{user `vm_name`}}",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "{{user `memory`}}"],
["modifyvm", "{{.Name}}", "--cpus", "{{user `core`}}"]
]
}
],
"post-processors": [
{
"type": "vagrant",
"output": "{{user `vm_name`}}.box"
}
],
"provisioners": [
{
"type": "shell",
"pause_before": "5s",
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'",
"override": {
"virtualbox-iso": {
"scripts": [
"scripts/base.sh",
"scripts/vagrant.sh",
"scripts/virtualbox.sh",
"scripts/cleanup.sh",
"scripts/minimize.sh"
]
}
}
}
]
}