9.2 idmap problem

anarelion

New Member
May 21, 2026
3
0
1
Hi, I have defined this mountpoint. /mnt/pve/containers is a NFS mount
Code:
mp0: /mnt/pve/containers/media/immich,mp=/opt/immich/upload,idmap=u:999:1026:1;g:991:100:1

and when I try to start the container I get the following error

Code:
DEBUG    utils - ../src/lxc/utils.c:run_buffer:558 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook '220' 'lxc' 'pre-start' produced output: mount_setattr: Invalid argument

Not sure if I am doing something wrong. It works without the idmap config, but then I need to squash permissions in the NFS server, which I would like to avoid doing.
 
Last edited:
the default mapping happens by just entering a user namespace. the custom mapping per mountpoint happens as part of mounting, which is a different kernel feature.
 
the default mapping happens by just entering a user namespace. the custom mapping per mountpoint happens as part of mounting, which is a different kernel feature.
This is sort of what I was suspected was going on. Thanks for clarifying!
 
the default mapping happens by just entering a user namespace. the custom mapping per mountpoint happens as part of mounting, which is a different kernel feature.
Thanks for clarifying! This would be a very nice feature to have, but I guess it's on the linux kernel to provide