<div dir="ltr">Hi,<div><br></div><div>I tried to install basically autofs in the container and mount directories with automount, but as a newbie, everything failed ;)</div><div><br></div><div><div>automount -f --debug</div><div>automount: test mount forbidden or incorrect kernel protocol version, kernel protocol version 5.00 or above required.</div></div><div><br></div><div>I know that in OpenVZ, you need to mount the filesystem on the host and then use simfs on the container through a container "mount" file.<br></div><div>Then, I saw problems with LXC here:</div><div><a href="http://comments.gmane.org/gmane.linux.kernel.containers.lxc.general/894">http://comments.gmane.org/gmane.linux.kernel.containers.lxc.general/894</a><br></div><div>And after reading <a href="https://github.com/lxc/lxd/issues/714">https://github.com/lxc/lxd/issues/714</a> , I tried:<br></div><div><br></div><div>lxc config device add my-container autofs unix-char path=/dev/autofs<br></div><div><br></div><div>Now on container side:</div><div><div>#ls -l /dev/autofs </div><div>crw-rw---- 1 root root 10, 235 Jul  1 14:06 /dev/autofs</div></div><div><br></div><div><br></div><div>However, the issue is still here:</div><div><div>automount -f --debug</div><div>automount: test mount forbidden or incorrect kernel protocol version, kernel protocol version 5.00 or above required.</div></div><div><br></div><div>"autofs4" module is loaded in the kernel. </div><div><br></div><div>I tried to remove/purge autofs and switch to autofs5 package and I have also the same error.</div><div><br></div><div>The container, like the host are ubuntu16.04.</div><div><br></div><div>Any help would be useful !</div><div><br></div><div>Best regards,<br>Remy</div><div><br></div><div><br></div></div>