It is not possible to assign both a virtual network interface and a passthrough network interface to an LXC container.

liuhonglu

New Member
Aug 5, 2023
22
1
3
I created an lxc container for an openwrt system. I assigned four network interfaces to the openwrt container, two virtual interfaces and two pass-through interfaces. After the configuration was completed, the container failed to start and displayed the following error:
1720497062720.jpeg
I can only start openwrt by restarting PVE.This is the container configuration:
1720497280863.jpeg
After the container is started successfully, openwrt can only recognize the virtual interface eth0 and the pass-through interfaces enp2s0 and enp3s0. The wan and iptv interfaces cannot be displayed. If I remove the pass-through interface, the wan and iptv interfaces can be recognized normally. I don't understand why this happens. eth0 can coexist with enp2s0 and enp3s0, but it cannot be done after one of the pass-through interfaces is converted into a virtual interface. Now I can only add all virtual interfaces to use openwrt normally.