So che posso assegnare manualmente un IP statico, usando /etc/network/interfaces.
So anche che posso leggere l'indirizzo MAC del contenitore LXC (ad es. Cercando la lxc.network.hwaddrvoce in entrata /var/lib/lxc/<container-name>/confige assegnando l'IP in base usando le voci dhcp-host=<mac-addr>,10.0.3.3in /etc/dnsmasq.d/<some file>.
Nel file che /etc/default/lxc-netho letto
# Uncomment the next line if you'd like to use a conf-file for the lxcbr0
# dnsmasq. For instance, you can use 'dhcp-host=mail1,10.0.3.100' to have
# container 'mail1' always get ip address 10.0.3.100.
#LXC_DHCP_CONFILE=/etc/lxc/dnsmasq.conf
Sarebbe adatto alle mie esigenze; purtroppo farlo non ha alcun effetto.
lxc-netnon aiuta se non si rimuove il bridge lxcbr0. Vedi la mia risposta