User Tools

Site Tools


nfsv4

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

nfsv4.txt · Last modified: 2023/01/02 16:22 by 127.0.0.1