Here is the trivial case with macvlan
, https://blog.simos.info/how-to-make-your-lxd-container-get-ip-addresses-from-your-lan/
You need to note with macvlan:
- IF YOU USE A VM (Virtual Machine) FOR THE HOST, THEN IT MIGHT FILTER OUT THE ATTEMPTS OF THE CONTAINERS TO GET AN IP ADDRESS FROM THE LAN. This affects VirtualBox. With VMWare, I think there is a workaround in the settings.
- To use
macvlan
, you do not make any changes to the host or the configuration of LXD. What you do, is create a beautifullxc profile
(assuming a recent LXD version), and attach that profile to themacvlan
containers. - For
macvlan
, you do not install or setup anything that relates to bridge. No bridge at all. Nada.