On the proxmox host
add
mount fstype=nfs,
to
/etc/apparmor.d/lxc/lxc-default-with-mounting
then reload apparmor
service apparmor reload
diumenge, 18 de juny del 2017
Subscriure's a:
Comentaris del missatge (Atom)
lloc de creació de configuracions de servidors, el manual del dia a dia del servidor. Linux i Windows, dominis, ldaps, servidors de correu, web, dns, dhcp, proxy-catxés, nfs . . .
1 comentari:
So you also need to edit /etc/apparmod.d/lxc/lxc-container-default-cgns and make it look like so:
# 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-cgns flags=(attach_disconnected,mediate_deleted) {
#include
# the container may never be allowed to mount devpts. If it does, it
# will remount the host's devpts. We could allow it to do it with
# the newinstance option (but, right now, we don't).
deny mount fstype=devpts,
mount fstype=nfs,
mount fstype=cgroup -> /sys/fs/cgroup/**,
}
and then subsequently do:
service apparmor reload
Publica un comentari a l'entrada