[Users] Missing /dev/autofs inside containers
Mark Johanson
mjohanson at a2hosting.com
Tue Mar 7 13:43:32 PST 2017
Hello,
Is there a a way to add a /dev/autofs to a container like you would nfs (ie vzctl set 101 --features "nfs:on" --save )? I tried using it as a autofs:on, but it failed. Asking because I have a centos7 and debian8 template that are failing to do automounting because the /dev/autofs is non-existant. I've read as much as I can find on the errors, but the threads I have come across just seem to end with no resolution and the newest being a little over a year old. I'm not sure if this is just not duable until the RHEL7 kernels come out of testing or if there is just something I do not have enabled (module, config,etc) on the node that it needs.
[root at server]/home/mjohan# vzctl --version
vzctl version 4.9.4
[root at server]/home/mjohan# uname -a
Linux soltest.a2hosting.com 2.6.32-042stab120.19 #1 SMP Mon Feb 20 20:05:53 MSK 2017 x86_64 x86_64 x86_64 GNU/Linux
[root at soltest]/home/mjohan# ls -l /dev/autofs
crw-rw---- 1 root root 10, 56 Mar 7 15:11 /dev/autofs
The error is similar in both centos7/debian8:
root at server:/# systemctl status proc-sys-fs-binfmt_misc.automount
● proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point
Loaded: loaded (/lib/systemd/system/proc-sys-fs-binfmt_misc.automount; static)
Active: failed (Result: resources)
Where: /proc/sys/fs/binfmt_misc
Docs: https://www.kernel.org/doc/Documentation/binfmt_misc.txt
http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
root at server:/# journalctl -xn
Mar 07 16:34:17 server systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
-- Subject: Unit proc-sys-fs-binfmt_misc.automount has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit proc-sys-fs-binfmt_misc.automount has begun starting up.
Mar 07 16:34:17 server systemd[1]: Failed to open /dev/autofs: No such file or directory
Mar 07 16:34:17 server systemd[1]: Failed to initialize automounter: No such file or directory
Mar 07 16:34:17 server systemd[1]: Failed to set up automount Arbitrary Executable File Formats File System Automount Point.
-- Subject: Unit proc-sys-fs-binfmt_misc.automount has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit proc-sys-fs-binfmt_misc.automount has failed.
--
-- The result is failed.
Node
[root at sserver]/home/root# cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev cgroup
nodev cpuset
nodev tmpfs
nodev devtmpfs
nodev binfmt_misc
nodev debugfs
nodev securityfs
nodev sockfs
nodev usbfs
nodev pipefs
nodev anon_inodefs
nodev inotifyfs
nodev devpts
nodev ramfs
nodev pram
nodev hugetlbfs
iso9660
nodev pstore
nodev mqueue
ext3
nodev rpc_pipefs
nodev nfs
nodev nfs4
nodev delayfs
nodev simfs
nodev autofs
Container
root at server:/# cat /proc/filesystems
nodev cgroup
nodev devpts
nodev mqueue
ext3
nodev nfs
nodev nfs4
nodev delayfs
nodev autofs
nodev devtmpfs
nodev sysfs
nodev proc
nodev tmpfs
nodev binfmt_misc
More information about the Users
mailing list