LXD and MACVLAN! HELP ME!

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:

  1. 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.
  2. To use macvlan, you do not make any changes to the host or the configuration of LXD. What you do, is create a beautiful lxc profile (assuming a recent LXD version), and attach that profile to the macvlan containers.
  3. For macvlan, you do not install or setup anything that relates to bridge. No bridge at all. Nada.
3 Likes