Closed alex14641 closed 1 month ago
Please provide the full incus info
output and also detail how Incus was installed and on what Linux distribution.
incus info: incus-info.txt
Incus was installed from source following the instructions in the "From source: Install" section of the "Install Incus" chapter.
Linux distro is Slackware current. I have modified the distro to use cgroups v2.
[~]$ grep cgroup /proc/mounts
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0
Did you also install and run LXCFS?
Running LXCFS fixed the issue. Thank you for your help. Note that security.syscalls.intercept.sysinfo doesn't seem to be needed.
Required information
Issue description
Memory limits not being displayed.
incus launch images:ubuntu/22.04 limited --config limits.cpu=1 --config limits.memory=192MiB
incus exec limited -- free -m
incus-env incus exec limited -- free -h
total used free shared buff/cache available
Mem: 31Gi 3.1Gi 20Gi 26Mi 8.0Gi 27Gi
Swap: 33Gi 0B 33Gi
incus config set limited security.syscalls.intercept.sysinfo=true
incus-env incus exec limited -- free -h
total used free shared buff/cache available
Mem: 31Gi 3.1Gi 20Gi 26Mi 8.0Gi 27Gi
Swap: 33Gi 0B 33Gi
I have stopped and restarted the instance; same result.