Sorry if this question have already asked but I've not found the solution.
I've a LXC container with Debian Wheezy (converted from OpenVZ).
The NFS shared directory don't want to mount at container startup.
I've added to /etc/apparmor.d/lxc/lxc-default-cgns:
mount fstype=nfs,
mount fstype=rpc_pipefs,
I've added to /etc/apparmor.d/lxc/lxc-default-with-mounting:
mount fstype=nfs,
I can use mount -t nfs ... now in the container.
I added to /etc/fstab, the mount point.
xx.xx.xx.xx:/data /home/data nfs defaults 0 0
But when I restart the container, the NFS volume don't mount at boot automatically.
Do I have forgotten something?
I've a LXC container with Debian Wheezy (converted from OpenVZ).
The NFS shared directory don't want to mount at container startup.
I've added to /etc/apparmor.d/lxc/lxc-default-cgns:
mount fstype=nfs,
mount fstype=rpc_pipefs,
I've added to /etc/apparmor.d/lxc/lxc-default-with-mounting:
mount fstype=nfs,
I can use mount -t nfs ... now in the container.
I added to /etc/fstab, the mount point.
xx.xx.xx.xx:/data /home/data nfs defaults 0 0
But when I restart the container, the NFS volume don't mount at boot automatically.
Do I have forgotten something?