I’ve had this issue across several containers, with different loads, across different hosts. They are all LXD 5.13, mostly on Ubuntu 22.04 and one on Debian 11. They all use the DIR driver, and the host is on LVM.
The container loses network connectivity with the outside, and after a while it loses its IP (presumably when DHCP renewal comes along and it doesn’t work). Operations from the outside (enter the CT, or stopping it, also do not work anymore). As soon as I force stop the CT and restart it, everything is fine.
I will keep adding details to this post, but here are a couple of instances where the container became unreachable
This issue has been so prevalent, and for so long, I am starting to question whether LXC is reliable enough for my needs.