Hello!
I tried to setup Gitlab in an unprivileged LXC.
As already discussed in other threads Gitlab wants to set some sysctls to specific values.
To be exact:
In older versions of PVE it was sufficient to set these values on the host and then they would get passed down into every LXC.
This commit in the LXC repository introduced the lxc.sysctl.* parameter: https://github.com/lxc/lxc/issues/989
And according to https://bugzilla.proxmox.com/show_bug.cgi?id=1785#c5 this should also work on PVE.
I added the following lines to my LXC config:
My problem is that the LXC fails to start when it is set to unprivileged.
The previous solution also worked with unprivileged LXCs. Is this a bug?
According to the linked GIthub issue this should also work with user namespaces / unprivileged LXCs.
I tried to setup Gitlab in an unprivileged LXC.
As already discussed in other threads Gitlab wants to set some sysctls to specific values.
To be exact:
Code:
kernel.shmall = 4194304
kernel.sem = 250 32000 32 262
net.core.somaxconn = 1024
kernel.shmmax = 17179869184
In older versions of PVE it was sufficient to set these values on the host and then they would get passed down into every LXC.
This commit in the LXC repository introduced the lxc.sysctl.* parameter: https://github.com/lxc/lxc/issues/989
And according to https://bugzilla.proxmox.com/show_bug.cgi?id=1785#c5 this should also work on PVE.
I added the following lines to my LXC config:
Code:
lxc.mount.auto: proc:rw
lxc.sysctl.kernel.shmall: 4194304
lxc.sysctl.kernel.sem: 250 32000 32 262
lxc.sysctl.kernel.shmmax: 17179869184
My problem is that the LXC fails to start when it is set to unprivileged.
The previous solution also worked with unprivileged LXCs. Is this a bug?
According to the linked GIthub issue this should also work with user namespaces / unprivileged LXCs.