Table of Contents

nfs avec conteneur

Créer le fichier /etc/apparmor.d/lxc/lxc-default-with-nfs avec ce contenu:

# Do not load this file.  Rather, load /etc/apparmor.d/lxc-containers, which
# will source all profiles under /etc/apparmor.d/lxc

profile lxc-container-default-with-nfs flags=(attach_disconnected,mediate_deleted) {
  #include <abstractions/lxc/container-base>

# allow NFS (nfs/nfs4) mounts.
  mount fstype=nfs*,
}

Et ajouter les lignes suivantes à la conf /etc/pve/lxc/ID.conf:

lxc.apparmor.profile: lxc-container-default-with-nfs
lxc.apparmor.profile: unconfined

idmapd

/etc/idmapd.conf:

[General]

Verbosity = 0
Pipefs-Directory = /run/rpc_pipefs
# set your own domain here, if id differs from FQDN minus hostname
Domain = famillever.net

[Mapping]

Nobody-User = nobody
Nobody-Group = nogroup

[Translation]
Method=nsswitch

Bibliographie

https://forum.proxmox.com/threads/advice-for-file-sharing-between-containers.25704/#post-129006