-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubuntu-18.04.3-server-amd64-standard-hu.json
76 lines (75 loc) · 3.17 KB
/
ubuntu-18.04.3-server-amd64-standard-hu.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
{
"builders": [{
"type": "virtualbox-iso",
"guest_os_type": "Ubuntu_64",
"iso_url": "{{user `ubuntu_cd_mirror`}}/{{user `ubuntu_version`}}/release/ubuntu-{{user `ubuntu_version`}}-server-{{user `ubuntu_port`}}.iso",
"iso_checksum" :"{{user `iso_checksum`}}",
"iso_checksum_type": "sha256",
"iso_checksum_url": "{{user `ubuntu_cd_mirror`}}/{{user `ubuntu_version`}}/SHA256SUMS",
"output_directory": "build/ubuntu/{{user `ubuntu_version`}}",
"vm_name": "packer-ubuntu-{{user `ubuntu_version`}}-{{user `ubuntu_port`}}-standard-hu-{{build_type}}",
"disk_size": "{{user `vb_disk_size`}}",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--cpus", "{{user `vb_cpus`}}"],
["modifyvm", "{{.Name}}", "--memory", "{{user `vb_memory`}}"],
["modifyvm", "{{.Name}}", "--vram", "{{user `vb_vram`}}"],
["modifyvm", "{{.Name}}", "--nictype1", "{{user `vb_nictype1`}}"]
],
"http_directory": "http",
"boot_wait": "5s",
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz <wait>",
"auto <wait>",
"console-setup/ask_detect=false <wait>",
"console-setup/layoutcode=us <wait>",
"console-setup/modelcode=pc105 <wait>",
"debconf/frontend=noninteractive <wait>",
"debian-installer=en_US.UTF-8 <wait>",
"fb=false <wait>",
"initrd=/install/initrd.gz <wait>",
"kbd-chooser/method=us <wait>",
"keyboard-configuration/layout=USA <wait>",
"keyboard-configuration/variant=USA <wait>",
"locale=en_US.UTF-8 <wait>",
"netcfg/get_domain=vm <wait>",
"netcfg/get_hostname=ubuntu-bionic <wait>",
"grub-installer/bootdev=/dev/sda <wait>",
"noapic <wait>",
"preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/ubuntu/{{user `ubuntu_version`}}/{{user `ubuntu_port`}}/preseed-standard-hu.cfg <wait>",
"-- <wait>",
"<enter><wait>"
],
"ssh_username": "{{user `ssh_username`}}",
"ssh_password": "{{user `ssh_password`}}",
"ssh_timeout": "{{user `ssh_timeout`}}",
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now"
}],
"provisioners": [{
"type": "shell",
"execute_command": "{{.Vars}} sudo -S -E sh -eux '{{.Path}}'",
"expect_disconnect": true,
"scripts": [
"scripts/ubuntu/{{user `ubuntu_version`}}/{{user `ubuntu_port`}}/networking.sh",
"scripts/ubuntu/{{user `ubuntu_version`}}/{{user `ubuntu_port`}}/sshd.sh",
"scripts/ubuntu/{{user `ubuntu_version`}}/{{user `ubuntu_port`}}/virtualbox.sh",
"scripts/ubuntu/{{user `ubuntu_version`}}/{{user `ubuntu_port`}}/cleanup.sh"
]
}],
"variables": {
"ubuntu_cd_mirror": "http://cdimage.ubuntu.com/releases",
"ubuntu_version": "18.04.3",
"ubuntu_port": "amd64",
"iso_checksum" :"7d8e0055d663bffa27c1718685085626cb59346e7626ba3d3f476322271f573e",
"vb_cpus": "1",
"vb_memory": "1024",
"vb_vram": "16",
"vb_disk_size": "12288",
"vb_nictype1": "82545EM",
"ssh_username": "uadmin",
"ssh_password": "p4sSW0rD",
"ssh_timeout": "60m"
}
}