File size: 1,274 Bytes
4aa5fce |
1 2 3 4 5 6 7 8 9 10 11 |
[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] <minimal> _NIC: afaik cloud-init will use the first non-lo interface (lo as usual is treated as a special case) [15:31] <minimal> 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] <minimal> _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] <minimal> _NIC: v4 config is not netplan specific, I use it with /etc/network/interfaces [15:49] <minimal> obviously depends on the distro you are using [15:50] <_NiC> debian (11) host and guest |