How might I mount a host directory into a container and set raw.idmap in one command?

NFS, CIFS/SMB, or SSHFS don’t appear to be available disk device types. :slightly_frowning_face:

Today I discovered that Incus idmap shifting does work on Proxmox running Linux kernel 6.5.13-3-pve, but fails when I attempt to mount into a container a host directory to which I’ve already mounted an SMB/CIFS share. I found, however, that this works on Linux Mint Debian Edition (LMDE) 6 running Linux kernel 6.5.

Any idea why mounting an SMB/CIFS share to a host directory might prevent idmap shifting for that directory? How might I instruct Incus to report a more detailed error message than “Error: Failed to start device “sftpgo”: Required idmapping abilities not available”?

This might help:

Thank you for the reference! I’ll consider smbnetfs.

Note that my test using idmap shifting to mount a host directory into a container on LMDE 6 worked only because I had mounted a normal directory, not a mounted CIFS share! When I tried the same test using a mounted CIFS share, it failed.