-
Notifications
You must be signed in to change notification settings - Fork 0
/
xenial64-smackbox.json
79 lines (79 loc) · 2.92 KB
/
xenial64-smackbox.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
{
"variables": {
"ISO_URL": "http://releases.ubuntu.com/xenial/ubuntu-16.04-server-amd64.iso",
"ISO_SUM": "b8b172cbdf04f5ff8adc8c2c1b4007ccf66f00fc6a324a6da6eba67de71746f6",
"VBOX_VERSION": "5.0.20",
"VM_DISK_SIZE": "10240",
"VM_TYPE": "Ubuntu_64",
"VM_NAME": "xenial64-smackbox"
},
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/base.sh",
"scripts/virtualbox.sh",
"scripts/desktop.sh",
"scripts/vagrant.sh",
"scripts/dep.sh",
"scripts/logiciels.sh",
"scripts/cleanup.sh",
"scripts/zerodisk.sh"
],
"override": {
"virtualbox-iso": {
"execute_command": "echo 'vagrant'|sudo -S bash '{{.Path}}' '{{ user `VBOX_VERSION` }}' '{{ user `VM_TYPE` }}' "
}
}
}
],
"builders": [
{
"type": "virtualbox-iso",
"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",
" debconf/priority=critical",
" locale=fr_FR console-setup/layoutcode=fr",
" noapic hostname={{user `VM_NAME`}}",
" auto url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
" initrd=/install/initrd.gz",
" -- <enter>"
],
"headless": false,
"boot_wait": "10s",
"disk_size": "{{ user `VM_DISK_SIZE` }}",
"guest_os_type": "{{ user `VM_TYPE` }}",
"http_directory": "http",
"iso_checksum": "{{ user `ISO_SUM` }}",
"iso_checksum_type": "sha256",
"iso_url": "{{ user `ISO_URL` }}",
"output_directory": "output-{{ user `VM_NAME` }}-{{isotime \"2006-01-02\"}}",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo '/sbin/halt -h -p' > shutdown.sh; echo 'vagrant'|sudo -S bash 'shutdown.sh'",
"guest_additions_mode": "disable",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"virtualbox_version_file": ".vbox_version",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "1024"],
["modifyvm", "{{.Name}}", "--vram", "64"],
["storageattach", "{{.Name}}", "--storagectl", "IDE Controller", "--port", "1", "--device", "0", "--type", "dvddrive", "--medium", "C:\\Program Files\\Oracle\\VirtualBox\\VBoxGuestAdditions.iso"]
]
}
],
"post-processors": [
[{
"type": "vagrant",
"compression_level": 9,
"output": "builds/{{.Provider}}/{{ user `VM_NAME` }}-{{isotime \"2006-01-02\"}}.box"
}]
]
}