Hi,
My host is Proxmox 6.1-8 and I've setup a privileged LXC (debian 10) container in which I want to run an NFS sever. The container's features are :
On first launch I installed nfs-kernel-server and it could run however, once I restarted the container, all processes inside the container are in an inactive state. Here's nfs-kernel-server's example :
When I run the container debugging I find the following error which seems to indicate it's apparmor related :
Furthermore, if I run dmesg -T inside the container I find more apparmor denied errors :
I have, however, tried to add
and even
to /etc/pve/lxc/myid.conf to no avail.
Can anyone help me ?
My host is Proxmox 6.1-8 and I've setup a privileged LXC (debian 10) container in which I want to run an NFS sever. The container's features are :
Code:
features: fuse=1,mount=nfs;nfs;cifs;nfs;cifs;nfs;cifs,nesting=1
On first launch I installed nfs-kernel-server and it could run however, once I restarted the container, all processes inside the container are in an inactive state. Here's nfs-kernel-server's example :
Code:
● nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled)
Active: inactive (dead)
When I run the container debugging I find the following error which seems to indicate it's apparmor related :
Code:
lxc-start 109 20200319183131.848 ERROR conf - conf.c:lxc_setup_boot_id:3527 - Permission denied - Failed to mount /dev/.lxc-boot-id to /proc/sys/kernel/random/boot_id
Furthermore, if I run dmesg -T inside the container I find more apparmor denied errors :
Code:
[Thu Mar 19 18:29:15 2020] audit: type=1400 audit(1584642542.625:155): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="/usr/bin/lxc-start" name="/proc/sys/kernel/random/boot_id" pid=10954 comm="lxc-start" srcname="/dev/.lxc-boot-id" flags="rw, bind"
[Thu Mar 19 18:29:16 2020] audit: type=1400 audit(1584642542.645:156): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxc-container-default-with-nfsd" name="/sys/fs/cgroup/unified/" pid=10954 comm="systemd" fstype="cgroup2" srcname="cgroup2" flags="rw, nosuid, nodev, noexec"
[Thu Mar 19 18:29:16 2020] audit: type=1400 audit(1584642542.645:157): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxc-container-default-with-nfsd" name="/sys/fs/cgroup/unified/" pid=10954 comm="systemd" fstype="cgroup2" srcname="cgroup2" flags="rw, nosuid, nodev, noexec"
I have, however, tried to add
Code:
lxc.apparmor.profile: unconfined
and even
Code:
lxc.apparmor.profile: unchanged
to /etc/pve/lxc/myid.conf to no avail.
Can anyone help me ?