-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubuntu-20.04.json
64 lines (64 loc) · 2.09 KB
/
ubuntu-20.04.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
{
"builders": [
{
"CPUs": 2,
"RAM": 2048,
"RAM_reserve_all": true,
"firmware": "bios",
"boot_command": [
"<esc><esc><esc>",
"<enter><wait>",
"/casper/vmlinuz ",
"root=/dev/sr0 ",
"initrd=/casper/initrd ",
"autoinstall ",
"ds=nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/",
"<enter>"
],
"boot_wait": "2s",
"convert_to_template": "true",
"create_snapshot": "false",
"datacenter": "{{user `vsphere-datacenter`}}",
"datastore": "{{user `vsphere-datastore`}}",
"disk_controller_type": "pvscsi",
"folder": "{{user `vsphere-folder`}}",
"guest_os_type": "ubuntu64Guest",
"host": "{{user `vsphere-cluster`}}",
"http_directory": "{{user `http_directory`}}",
"insecure_connection": "true",
"iso_checksum": "none",
"iso_url": "{{user `ubuntu_iso_paths`}}",
"name": "Ubuntu-20.04",
"network_adapters": [
{
"network": "{{user `vsphere-network`}}",
"network_card": "vmxnet3"
}
],
"notes": "Default SSH User: {{user `ubuntu_ssh_username`}}\nDefault SSH Pass: {{user `ubuntu_ssh_password`}}\nBuilt by Packer @ {{isotime \"2006-01-02 03:04\"}}.",
"password": "{{user `vsphere-password`}}",
"shutdown_command": "echo 'ubuntu'|sudo -S shutdown -P now",
"ssh_password": "{{user `ubuntu_ssh_password`}}",
"ssh_timeout": "20m",
"ssh_handshake_attempts": "100000",
"ssh_username": "{{user `ubuntu_ssh_username`}}",
"storage": [
{
"disk_size": 20480,
"disk_thin_provisioned": true
}
],
"type": "vsphere-iso",
"username": "{{user `vsphere-user`}}",
"vcenter_server": "{{user `vsphere-server`}}",
"vm_name": "{{user `ubuntu_vm_name`}}"
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'ubuntu' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "scripts/setup_ubuntu2004.sh"
}
]
}