Hi,
I cannot get permissions from a mounted nfs drive, it's always assigned to "nobody nogroup".
I've tried this in /etc/pve/lxc/XXX.conf
lxc.idmap = u 0 100000 2000
lxc.idmap = g 0 100000 2000
lxc.idmap = u 2000 2000 1
lxc.idmap = g 2000 2000 1
lxc.idmap = u 2001 102001 65536
lxc.idmap = g 2001 102001 65536
also added `root:2000:1` in `/etc/subgid` and `/etc/subuid`. I've tried by adding it or replacing the existing one, doesn't change…
The error when I start the container with `sudo lxc-start -F -n XXX` is :
cgroups/cgfsng.c: mkdir_eexist_on_last: 1301 File exists - Failed to create directory "/sys/fs/cgroup/systemd//lxc/101"
lxc-start: 101: cgroups/cgfsng.c: container_create_path_for_hierarchy: 1353 Failed to create cgroup "/sys/fs/cgroup/systemd//lxc/101"
lxc-start: 101: cgroups/cgfsng.c: cgfsng_payload_create: 1526 Failed to create cgroup "/sys/fs/cgroup/systemd//lxc/101"
lxc-start: 101: cgroups/cgfsng.c: mkdir_eexist_on_last: 1301 File exists - Failed to create directory "/sys/fs/cgroup/systemd//lxc/101-1"
lxc-start: 101: cgroups/cgfsng.c: container_create_path_for_hierarchy: 1353 Failed to create cgroup "/sys/fs/cgroup/systemd//lxc/101-1"
lxc-start: 101: cgroups/cgfsng.c: cgfsng_payload_create: 1526 Failed to create cgroup "/sys/fs/cgroup/systemd//lxc/101-1"
lxc-start: 101: conf.c: lxc_map_ids: 3053 newuidmap failed to write mapping "newuidmap: uid range [2001-67537) -> [102001-167537) not allowed": newuidmap 11598 0 100000 2000 2000 2000 1 2001 102001 65536
lxc-start: 101: start.c: lxc_spawn: 1727 Failed to set up id mapping.
lxc-start: 101: start.c: __lxc_start: 1989 Failed to spawn container "101"
lxc-start: 101: tools/lxc_start.c: main: 330 The container failed to start
lxc-start: 101: tools/lxc_start.c: main: 336 Additional information can be obtained by setting the --logfile and --logpriority options
Regards.
I cannot get permissions from a mounted nfs drive, it's always assigned to "nobody nogroup".
I've tried this in /etc/pve/lxc/XXX.conf
lxc.idmap = u 0 100000 2000
lxc.idmap = g 0 100000 2000
lxc.idmap = u 2000 2000 1
lxc.idmap = g 2000 2000 1
lxc.idmap = u 2001 102001 65536
lxc.idmap = g 2001 102001 65536
also added `root:2000:1` in `/etc/subgid` and `/etc/subuid`. I've tried by adding it or replacing the existing one, doesn't change…
The error when I start the container with `sudo lxc-start -F -n XXX` is :
cgroups/cgfsng.c: mkdir_eexist_on_last: 1301 File exists - Failed to create directory "/sys/fs/cgroup/systemd//lxc/101"
lxc-start: 101: cgroups/cgfsng.c: container_create_path_for_hierarchy: 1353 Failed to create cgroup "/sys/fs/cgroup/systemd//lxc/101"
lxc-start: 101: cgroups/cgfsng.c: cgfsng_payload_create: 1526 Failed to create cgroup "/sys/fs/cgroup/systemd//lxc/101"
lxc-start: 101: cgroups/cgfsng.c: mkdir_eexist_on_last: 1301 File exists - Failed to create directory "/sys/fs/cgroup/systemd//lxc/101-1"
lxc-start: 101: cgroups/cgfsng.c: container_create_path_for_hierarchy: 1353 Failed to create cgroup "/sys/fs/cgroup/systemd//lxc/101-1"
lxc-start: 101: cgroups/cgfsng.c: cgfsng_payload_create: 1526 Failed to create cgroup "/sys/fs/cgroup/systemd//lxc/101-1"
lxc-start: 101: conf.c: lxc_map_ids: 3053 newuidmap failed to write mapping "newuidmap: uid range [2001-67537) -> [102001-167537) not allowed": newuidmap 11598 0 100000 2000 2000 2000 1 2001 102001 65536
lxc-start: 101: start.c: lxc_spawn: 1727 Failed to set up id mapping.
lxc-start: 101: start.c: __lxc_start: 1989 Failed to spawn container "101"
lxc-start: 101: tools/lxc_start.c: main: 330 The container failed to start
lxc-start: 101: tools/lxc_start.c: main: 336 Additional information can be obtained by setting the --logfile and --logpriority options
Regards.