[pve-devel] [PATCH container 1/2] config: add `lxc.init.uid`/`gid`/`groups` keys
Filip Schauer
f.schauer at proxmox.com
Mon Dec 15 18:41:58 CET 2025
These config keys allow one to specify the uid, gid and groups of the
init process. This is useful for application containers.
Signed-off-by: Filip Schauer <f.schauer at proxmox.com>
---
src/PVE/LXC/Config.pm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm
index 6445528..6f54e9f 100644
--- a/src/PVE/LXC/Config.pm
+++ b/src/PVE/LXC/Config.pm
@@ -711,6 +711,9 @@ my $valid_lxc_conf_keys = {
'lxc.signal.stop' => 1,
'lxc.init.cmd' => 1,
'lxc.init.cwd' => 1,
+ 'lxc.init.uid' => 1,
+ 'lxc.init.gid' => 1,
+ 'lxc.init.groups' => 1,
'lxc.pty.max' => 1,
'lxc.console.logfile' => 1,
'lxc.console.path' => 1,
--
2.47.3
More information about the pve-devel
mailing list