I was wondering if it's possible to mount a cephfs volume inside an LXC container.
I have an ubuntu LXC container, installed ceph-common, and tried a mount, but it failed as shown below:
root@vis-lxc-02:~# mount.ceph vis-mgmt-1:6789:/ /ceph
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.0.21-3-pve/modules.dep.bin'
modprobe: FATAL: Module ceph not found in directory /lib/modules/5.0.21-3-pve
failed to load ceph kernel module (1)
mount error 110 = Connection timed out
root@vis-lxc-02:~# lsmod | grep ceph
ceph 385024 1
libceph 323584 2 ceph,rbd
fscache 368640 3 ceph,nfsv4,nfs
libcrc32c 16384 5 nf_conntrack,nf_nat,dm_persistent_data,btrfs,libceph
root@vis-lxc-02:~#
the ceph kernel module exists because the host node already has ceph installed.
Thoughts?
Thanks!
george
I have an ubuntu LXC container, installed ceph-common, and tried a mount, but it failed as shown below:
root@vis-lxc-02:~# mount.ceph vis-mgmt-1:6789:/ /ceph
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.0.21-3-pve/modules.dep.bin'
modprobe: FATAL: Module ceph not found in directory /lib/modules/5.0.21-3-pve
failed to load ceph kernel module (1)
mount error 110 = Connection timed out
root@vis-lxc-02:~# lsmod | grep ceph
ceph 385024 1
libceph 323584 2 ceph,rbd
fscache 368640 3 ceph,nfsv4,nfs
libcrc32c 16384 5 nf_conntrack,nf_nat,dm_persistent_data,btrfs,libceph
root@vis-lxc-02:~#
the ceph kernel module exists because the host node already has ceph installed.
Thoughts?
Thanks!
george