LXC Containers no Internet connection

AkiMisaka

New Member
Jun 21, 2024
2
0
1
Recently when my pve host machine rebooted, sometimes all LXC containers lost their Internet connection.
When I tried to manually ifup ethxxx in the LXC container, it stuck at DHCPDISCOVER and got no answer.
Changing the MAC address of container may work for a little while (about 5 min) and it lost connection again. Manually set static address does not work either.
All LXC containers have no firewall.
A typical configuration:1760712237239.png
LXC Shell:1760712482177.png

Host dmesg:
Code:
[20214.123116] vmbr0: port 22(veth122i0) entered blocking state
[20214.123126] vmbr0: port 22(veth122i0) entered disabled state
[20214.123169] veth122i0: entered allmulticast mode
[20214.123281] veth122i0: entered promiscuous mode
[20214.185436] eth122: renamed from veth07gEJu
[20214.753821] vmbr0: port 22(veth122i0) entered blocking state
[20214.753833] vmbr0: port 22(veth122i0) entered forwarding state
[20214.756230] veth122i0: left allmulticast mode
[20214.756237] veth122i0: left promiscuous mode
[20214.756282] vmbr0: port 22(veth122i0) entered disabled state

All VM btw always have Internet connection on the same bridge vmbr0. I have no idea what is going on. Please help me.
 

Attachments

  • 1760712312862.png
    1760712312862.png
    28.6 KB · Views: 1