You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running CasaOS inside an LXC container on Proxmox, network statistics are not displayed. This issue occurs because CasaOS incorrectly filters the main network interface eth0 due to its presence in /sys/devices/virtual/net, which is typical in LXC environments. As a result, CasaOS fails to detect and display network usage statistics.
To Reproduce
Steps to reproduce the behavior:
Deploy CasaOS inside an LXC container on Proxmox.
Configure the container with a virtual network interface (veth) connected to a Proxmox bridge (e.g., vmbr0).
Start CasaOS and navigate to the network statistics page.
Observe that no network statistics are displayed.
Expected behavior
Network statistics should be displayed correctly, and the primary network interface (eth0) should be detected regardless of its presence in /sys/devices/virtual/net.
Screenshots
Desktop (please complete the following information):
- OS: Windows 11
- Browser Chrome
- Version 131.0.6778.265
System Time
Run timedatectl and share the output
Local time: Sun 2025-01-26 01:57:11 UTC
Universal time: Sun 2025-01-26 01:57:11 UTC
RTC time: n/a
Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
NTP service: inactive
RTC in local TZ: no
Logs
Run following command to collect corresponding logs:
The root cause of this issue is the logic in CasaOS that filters interfaces listed in /sys/devices/virtual/net. Inside an LXC container, even the main network interface (eth0) is treated as virtual and listed in this directory.
Solution
To resolve this, CasaOS should adapt its detection logic:
Avoid excluding eth0 or other primary interfaces from the network statistics.
Use a more robust method, such as ip link, to list active network interfaces and filter irrelevant ones.
The text was updated successfully, but these errors were encountered:
Describe the bug
When running CasaOS inside an LXC container on Proxmox, network statistics are not displayed. This issue occurs because CasaOS incorrectly filters the main network interface
eth0
due to its presence in/sys/devices/virtual/net
, which is typical in LXC environments. As a result, CasaOS fails to detect and display network usage statistics.To Reproduce
Steps to reproduce the behavior:
veth
) connected to a Proxmox bridge (e.g.,vmbr0
).Expected behavior
Network statistics should be displayed correctly, and the primary network interface (
eth0
) should be detected regardless of its presence in/sys/devices/virtual/net
.Screenshots
Desktop (please complete the following information):
System Time
Logs
Additional context
The root cause of this issue is the logic in CasaOS that filters interfaces listed in
/sys/devices/virtual/net
. Inside an LXC container, even the main network interface (eth0
) is treated as virtual and listed in this directory.Solution
To resolve this, CasaOS should adapt its detection logic:
eth0
or other primary interfaces from the network statistics.ip link
, to list active network interfaces and filter irrelevant ones.The text was updated successfully, but these errors were encountered: