I’m struggling to raise a secondary nic into an LXC container, that runs inside a VM (KVM guest).
The VM itself is a centos, and the LXC container that runs inside it is a debian, managed through LXD.
This container needs to be reachable from 2 vlans, and the 2 LXD bridges that sits on top of them have already been created and proven to work properly with both vlans. (other containers attached to them are reachable)
Centos VM :
virbr10 <-> LAN 10 : 192.168.10.0/24
virbr40 <-> LAN 40 : 192.168.40.0/24
eth10 : parent = virbr10 WORKS
eth40 : parent = virbr40 FAILS TO RAISE
Now the problem is whenever i attach this secondary eth40 inside my LXC container using :
lxc config device add mydebian eth40 nic name=eth40 nictype=bridged parent=virbr40
i get a systematic
ifup: failed to bring up eth40 when i go check the logs inside it, without any other meaningful information …
Is there any workaround this ?