Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agents on LXC Containers show RAM Usage of Proxmox Host #176

Open
heeelga opened this issue Sep 20, 2024 · 4 comments
Open

Agents on LXC Containers show RAM Usage of Proxmox Host #176

heeelga opened this issue Sep 20, 2024 · 4 comments
Labels
troubleshooting Maybe bug, maybe not

Comments

@heeelga
Copy link

heeelga commented Sep 20, 2024

I have deployed the Beszel agent on several LXC containers on Proxmox which have different amounts of RAM.
Unfortunately every agent is showing 32GB of RAM in the UI which is the total amount of RAM of the Proxmox host. RAM usage is also showing the exact same value for every agent.

I tried changing the corresponding LXCs to unprivileged/privileged, turned on and off Nesting without any effect.

CPU and disk usage seem to work fine.

Am I missing an option here?

@heeelga
Copy link
Author

heeelga commented Sep 20, 2024

PS: I just figured out that this only occurs when using the dockerized agent.

@henrygd henrygd added the troubleshooting Maybe bug, maybe not label Sep 20, 2024
@henrygd
Copy link
Owner

henrygd commented Sep 20, 2024

Thanks for the info, I'll look into it.

@henrygd
Copy link
Owner

henrygd commented Sep 24, 2024

To clarify, the binary agent correctly shows the memory allocated to the LXC container?

But installing Docker in the container and running the agent with Docker shows the memory info for the host?

Could you please tell me what free -h and cat /sys/fs/cgroup/memory.max output in the container?

@heeelga
Copy link
Author

heeelga commented Sep 25, 2024

Yes, exactly. The docker agent shows the memory for the host and the binary agent shows the correct memory allocated to the specific LXC container it is running on.

Sure thing. I checked on a exemplary LXC and the amount of memory (1G) is correct.

free -h:
total used free shared buff/cache available
Mem: 1.0Gi 178Mi 659Mi 48Ki 186Mi 845Mi
Swap: 1.0Gi 122Mi 901Mi

cat /sys/fs/cgroup/memory.max:
max

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
troubleshooting Maybe bug, maybe not
Projects
None yet
Development

No branches or pull requests

2 participants