cloud-init
is absolute cancer. Its code is horrible. It has no documentation at all.
It took me 5 fucking hours to figure out how to properly configure networking on recent
cloud-init
(Ubuntu 16.04 cloud image
) with local datasource.
It's not mentioned anywhere you need to provide dsmode: local
. (but only if you need network-config,
besides that everything is fine; someone below noted that -m
flag does the same thing, good to know) Of course nobody needs documentation for network-config
format
either. (cloudinit/net/__init__.py
is a protip, enjoy the feces dive)
Oh, and by the way - no, it's not possible to provide network-config
to uvt-kvm
without patching shit.
Use -N
flag for cloud-localds for network-config
.
@mcbenjemaa
I think the CIDR you're using for your address is incorrect too.
10.10.10.84/32
should be10.10.10.84/24
It should match the network range of the gateway whereas/32
is restricted to just a single IP.Netplan example:
https://github.com/canonical/netplan/blob/main/examples/static.yaml#L7
Docs:
https://netplan.readthedocs.io/en/stable/netplan-tutorial/#using-static-ip-addresses