Hi,
I tried to install gitlab into LXC CT, but during the installation I received an error that PostgreSQL requires kernel.shmmax = 17179869184
I verify kernel.shmmax in CT:
# cat /proc/sys/kernel/shmmax
18446744073692774399
If I try set this parameter in CT, I get error:
sysctl -w kernel.shmmax=17179869184
sysctl: setting key "kernel.shmmax": Read-only file system
Ok, I set kernel.shmmax in Hardware Node (HN/PVE), restarted
Checking on HN:
# sysctl kernel.shmmax
kernel.shmmax = 17179869184
I started LXC CT
Checking on CT:
# sysctl kernel.shmmax
kernel.shmmax = 18446744073692774399
If I try to set this parameter again in CT, I get the error message again: "Read-only file system"
As I understand it, sysctl parameters can be set in LXC CT, starting from LXC 3.0.0, through lxc.sysctl.[kernel parameters name] (linuxcontainers.org/lxc/manpages/man5/lxc.container.conf.5.html)
I tried add string lxc.sysctl.kernel.shmmax = 17179869184
in /etc/pve/lxc/<VMID>.conf or in /var/lib/lxc/<VMID>/config
but all without success
How can I set the parameters /proc/sys/kernel/shm* in LXC CT ?
Thanks!
I tried to install gitlab into LXC CT, but during the installation I received an error that PostgreSQL requires kernel.shmmax = 17179869184
I verify kernel.shmmax in CT:
# cat /proc/sys/kernel/shmmax
18446744073692774399
If I try set this parameter in CT, I get error:
sysctl -w kernel.shmmax=17179869184
sysctl: setting key "kernel.shmmax": Read-only file system
Ok, I set kernel.shmmax in Hardware Node (HN/PVE), restarted
Checking on HN:
# sysctl kernel.shmmax
kernel.shmmax = 17179869184
I started LXC CT
Checking on CT:
# sysctl kernel.shmmax
kernel.shmmax = 18446744073692774399
If I try to set this parameter again in CT, I get the error message again: "Read-only file system"
As I understand it, sysctl parameters can be set in LXC CT, starting from LXC 3.0.0, through lxc.sysctl.[kernel parameters name] (linuxcontainers.org/lxc/manpages/man5/lxc.container.conf.5.html)
I tried add string lxc.sysctl.kernel.shmmax = 17179869184
in /etc/pve/lxc/<VMID>.conf or in /var/lib/lxc/<VMID>/config
but all without success
How can I set the parameters /proc/sys/kernel/shm* in LXC CT ?
Thanks!