/srv/irclogs.ubuntu.com/2022/06/16/#cloud-init.txt

_NiCI'm trying to configure a network interface on VM creation with cloud-init, and I get it to work with e.g. Network Config Format v1, specifying the interface and IP and all that. But what if I don't know what the interface name is, and the MAC address is randomly generated? Can I somehow make cloud-init use the first non-lo interface found?14:49
minimal_NIC: afaik cloud-init will use the first non-lo interface (lo as usual is treated as a special case)15:31
minimalwithout seeing your network-config and some details of what the cloud-init logfile may show it is hard to comment on any issue you are having15:31
_NiCYeah I'm probably missing something. My brain is about to boil now though, I'll continue this tomorrow..15:46
_NiCJust thought I'd ask in case it was something common and obvious that I missed.15:46
minimal_NIC: also have you tried network config v2? Personally I prefer it15:47
_NiCI have yeah, and it seems to also work, even though I can't find any trace of netplan anywhere, which is surprising.15:47
minimal_NIC: v4 config is not netplan specific, I use it with /etc/network/interfaces15:48
minimalobviously depends on the distro you are using15:49
_NiCdebian (11) host and guest15:50

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!