[14:49] <_NiC> I'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? [15:31] _NIC: afaik cloud-init will use the first non-lo interface (lo as usual is treated as a special case) [15:31] without 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 having [15:46] <_NiC> Yeah I'm probably missing something. My brain is about to boil now though, I'll continue this tomorrow.. [15:46] <_NiC> Just thought I'd ask in case it was something common and obvious that I missed. [15:47] _NIC: also have you tried network config v2? Personally I prefer it [15:47] <_NiC> I have yeah, and it seems to also work, even though I can't find any trace of netplan anywhere, which is surprising. [15:48] _NIC: v4 config is not netplan specific, I use it with /etc/network/interfaces [15:49] obviously depends on the distro you are using [15:50] <_NiC> debian (11) host and guest