lxc view all machine resource

webparadoxer

Renowned Member
Aug 31, 2016
3
0
66
49
Hello. Help please. I installed proxmox 5.4. It was all great, until I decided to put docker inside lxc. And I do not know what I changed in the settings, but now the container in htop sees all the resources of the machine. With the exception of the reinstallation, how to rollback so that the containers do not see all the resources
 
hi,

with the current implementation of cgroups in the linux kernel, containers are unfortunately hard to isolate from the system in terms of showing available memory/cpu or similar resources.

however, there's an option for `lxcfs`, which enables the loadavg option. this options shows the average cpu load of the container and not the host.

the reason for this inconsistency is the fact that different tools use different methods for obtaining the information. some use syscalls and some use files from /proc or /sys or similar, which are mounted from the host system.