VMware vSphere ESXi 7.0.3
cloud-init ver
< 23.1)or Datasource VMware(cloud-init ver
>= 23.1)is included in cloud-init Datasource search list.
{
"instance-id": "cloud-vm",
"local-hostname": "cloud-vm",
"network": {
"version":2,
"ethernets": {
"nics": {
"match": {
"name": "ens*"
},
"dhcp4": "yes"
}
}
}
}
instance-id: cloud-vm
local-hostname: cloud-vm
network:
version: 2
ethernets:
nics:
match:
name: ens*
dhcp4: yes
network:
config: disabled
cloud-init
will generate a fallback network which is usually DHCP.