-
Notifications
You must be signed in to change notification settings - Fork 17
/
ubuntu_iso_to_ovf_template.json
executable file
·60 lines (59 loc) · 1.42 KB
/
ubuntu_iso_to_ovf_template.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
{
"builders": [
{
"boot_command": "BOOTCOMMAND",
"boot_wait": "BOOTWAIT",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"guest_os_type": "Ubuntu_64",
"hard_drive_interface": "sata",
"sata_port_count": "8",
"headless": true,
"http_directory": "http",
"iso_checksum": "ISO_CHECKSUM",
"iso_checksum_type": "sha256",
"iso_url": "ISO_URL",
"shutdown_command": "echo 'shutdown -P now' > shutdown.sh; echo 'vagrant'|sudo -S sh 'shutdown.sh'",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"type": "virtualbox-iso",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"2048"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "packer-virtualbox-iso-ubuntu-UBUNTU_VERSION_FULL"
}
],
"provisioners": [
{
"override": {
"virtualbox-iso": {
"execute_command": "echo 'vagrant' | sudo -S sh '{{ .Path }}'"
}
},
"expect_disconnect": true,
"scripts": [
"scripts/ubuntu_ovf_setup_1.sh"
],
"type": "shell"
},
{
"scripts": [
"scripts/ubuntu_ovf_setup_2.sh"
],
"type": "shell"
}
]
}