-
Notifications
You must be signed in to change notification settings - Fork 1
/
esxi.json
110 lines (110 loc) · 2.84 KB
/
esxi.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"variables": {
"disk_size": "32G",
"version": "8.0.0",
"iso_url": "VMware-VMvisor-Installer-8.0-20513097.x86_64.iso",
"iso_checksum": "sha256:78b8ee5613019f8d92da2b74fae674707679379803cb7b01b526747a849138c1"
},
"builders": [
{
"name": "esxi-{{user `version`}}-amd64-libvirt",
"type": "qemu",
"accelerator": "kvm",
"cpus": 4,
"memory": 4096,
"qemuargs": [
["-cpu", "host"]
],
"headless": true,
"http_directory": ".",
"format": "qcow2",
"disk_size": "{{user `disk_size`}}",
"disk_interface": "ide",
"disk_discard": "unmap",
"net_bridge": "virbr0",
"net_device": "vmxnet3",
"iso_url": "{{user `iso_url`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"ssh_username": "root",
"ssh_password": "HeyH0Password!",
"ssh_timeout": "60m",
"boot_wait": "3s",
"boot_command": [
"<enter>",
"<wait>",
"<leftShiftOn>O<leftShiftOff>",
"<wait>",
" netdevice=vmnic0",
" bootproto=dhcp",
" ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks.cfg",
"<enter>"
],
"shutdown_command": "poweroff; while true; do sleep 10; done;"
},
{
"name": "esxi-{{user `version`}}-uefi-amd64-libvirt",
"type": "qemu",
"accelerator": "kvm",
"cpus": 4,
"memory": 4096,
"qemuargs": [
["-bios", "/usr/share/ovmf/OVMF.fd"],
["-cpu", "host"]
],
"headless": false,
"http_directory": ".",
"format": "qcow2",
"disk_size": "{{user `disk_size`}}",
"disk_interface": "ide",
"disk_discard": "unmap",
"net_bridge": "virbr0",
"net_device": "vmxnet3",
"iso_url": "{{user `iso_url`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"ssh_username": "root",
"ssh_password": "HeyH0Password!",
"ssh_timeout": "60m",
"boot_wait": "3s",
"boot_command": [
"<enter>",
"<wait>",
"<leftShiftOn>O<leftShiftOff>",
"<wait>",
" netdevice=vmnic0",
" bootproto=dhcp",
" ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks.cfg",
"<enter>"
],
"shutdown_command": "poweroff; while true; do sleep 10; done;"
}
],
"provisioners": [
{
"type": "shell",
"script": "info.sh",
"pause_before": "30s"
},
{
"type": "shell",
"script": "sysprep.sh"
}
],
"post-processors": [
{
"type": "vagrant",
"output": "{{.BuildName}}.box",
"vagrantfile_template": "Vagrantfile.template",
"only": [
"esxi-{{user `version`}}-amd64-libvirt"
]
},
{
"type": "vagrant",
"output": "{{.BuildName}}.box",
"vagrantfile_template": "Vagrantfile-uefi.template",
"only": [
"esxi-{{user `version`}}-uefi-amd64-libvirt"
]
}
]
}