LXC 容器内的 modprobe

Lar*_*sky 2 virtualization linux modprobe lxc

我需要在 LXC 容器内运行 WebDAV 服务器,但有人告诉我 modprobe 不可用(即使作为 root)。我已经看到这是开发人员要求的,但是我该如何解决呢?

在 Debian Squeeze 上运行。

这是我在主服务器上加载 dav2fs 后收到的消息:

Please enter the username to authenticate with server
http://10.102.42.101/owncloud/files/webdav.php or hit enter for none.
  Username: lwapnitsky
Please enter the password to authenticate user lwapnitsky with server
http://10.102.42.101/owncloud/files/webdav.php or hit enter for none.
  Password:
/sbin/mount.davfs: sh: 1: can't open fuse device
/sbin/modprobe: not found/sbin/mount.davfs:
trying coda kernel file system
sh: 1: /sbin/modprobe: not found
/sbin/mount.davfs: no free coda device to mount
Run Code Online (Sandbox Code Playgroud)

Nil*_*ils 7

LXC 是 - 根据它自己的主页“chroot on steroids”。所以基本上你确实使用了“主”内核(容器外)——而不是——就像在虚拟化中——你的“自己的”内核。

因此,如果您确实需要某个内核模块,则必须将其加载到您的 LXC 服务器上。