Hi,

I’m trying to mount a remote NFS share (NAS) from a LXC container. I found this 
on the Proxmox forums and tried it. 

/etc/apparmor.d/lxc-default-with-nfs

# 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*,
}

reload

apparmor_parser -r /etc/apparmor.d/lxc-containers

add to container config

lxc.aa_profile: lxc-container-default-with-nfs

I add the above settings to my Proxmox host but when I restart the LXC 
container with the new settings I can’t access the web app in this container 
anymore. It looks like all network connectivity is gone. Also tried to ping 
Goolge.com <http://goolge.com/> within the LXC container but no go. When I 
remove  

lxc.aa_profile: lxc-container-default-with-nfs

everything is okay. Any idea?

Cheers,

Marcel
_______________________________________________
pve-user mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user

Reply via email to