I’m running Ubuntu 16.04 and LXD 2.0.10-0ubuntu1~16.04.1.
All my containers are currently NAted behind lxdbr0 but I’ve set a newly created container to use macvlan with this command: lxc config device add new-container eth0 nic nictype=macvlan parent=ens3 name=eth0 However, the container does not get any dhcp reply.
Even if I set the IP static it still cannot communicate with anything else on the network.
The LXD host is a virtual machine running on a KVM host and is itself running macvlan, can that cause an issue?
macvlan doesn’t hit the firewall so iptables isn’t going to matter here.
I suspect that it’s either macvlan somehow failing when chained the way you have it done, or your VM host is somehow doing MAC filtering and dropping any packet that doesn’t come from the VM’s main mac address (that’s a very common issue with VMWare but the same can be done with kvm, especially if run on OpenStack).