I build a VM image for different visualiser types, and I would like it to use dhcp on all available network interfaces (wired only).
I'm using Ubuntu server.
Pre-creating /etc/network/interfaces
is not an option since I can't predict the number of network interfaces, nor their names.
I tried to use network-manager, it works fine (you just need to install it and it will try to connect via any network interface, using DHCP), but will bring 200MB of dependencies on a headless Ubuntu server.