-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Trying to figure out a path forward to get OpenWRT running in an LXC container on proxmox and have it report the correct memory/swap/uptime/etc values pulled from /proc.
see: https://www.reddit.com/r/Proxmox/comments/1gbgrky/openwrt_vm_memory_readings_waaaaay_off_and/ for the effect.
On the latest versions of proxmox, lxcfs should be automatically mounted to /proc in any container. I can see this when logged in to SSH because cat /proc/meminfo returns the values I'd expect to see in the contianer (2g ram) but ubus call system info reports the 92GB of my server.
I apologize, I'm not familiar with how this is put together, but I've been doing some digging through the code. I suspect that we're dealing with a race condition where procd is iniitalizing before the bind mount is complete, opening the file handle, and then keeping it open. I could be way off, though. Any assistance would be appreciated.