Unable to load Kernel module?

General support questions
Post Reply
epretorious
Posts: 38
Joined: 2005/06/13 20:06:38
Location: Truckee, CA
Contact:

Unable to load Kernel module?

Post by epretorious » 2017/12/29 16:20:59

Hello:

The nf_conntrack_ftp module exists in the /lib/modules directory:

Code: Select all

[root@cp ~]# find /lib/modules/ -name 'nf*' | grep ftp
/lib/modules/2.6.32-696.16.1.el6.x86_64.debug/kernel/net/netfilter/nf_conntrack_ftp.ko
/lib/modules/2.6.32-696.16.1.el6.x86_64.debug/kernel/net/netfilter/nf_conntrack_tftp.ko
/lib/modules/2.6.32-696.16.1.el6.x86_64.debug/kernel/net/ipv4/netfilter/nf_nat_ftp.ko
/lib/modules/2.6.32-696.16.1.el6.x86_64.debug/kernel/net/ipv4/netfilter/nf_nat_tftp.ko
and is listed in the /sys/modules directory:

Code: Select all

[root@cp ~]# ls -l /sys/module/ | grep nf_conntrack
drwxr-xr-x 3 root root 0 Dec 29 16:18 nf_conntrack
drwxr-xr-x 3 root root 0 Dec 29 16:18 nf_conntrack_amanda
drwxr-xr-x 3 root root 0 Dec 29 16:18 nf_conntrack_ftp
drwxr-xr-x 3 root root 0 Dec 29 16:18 nf_conntrack_h323
drwxr-xr-x 3 root root 0 Dec 29 16:18 nf_conntrack_ipv4
drwxr-xr-x 3 root root 0 Dec 29 16:18 nf_conntrack_irc
drwxr-xr-x 3 root root 0 Dec 29 16:18 nf_conntrack_netbios_ns
drwxr-xr-x 3 root root 0 Dec 29 16:18 nf_conntrack_sip
drwxr-xr-x 3 root root 0 Dec 29 16:18 nf_conntrack_snmp
drwxr-xr-x 3 root root 0 Dec 29 16:18 nf_conntrack_tftp
But I'm not able to load the module:

Code: Select all

[root@cp ~]# modprobe nf_conntrack_ftp
FATAL: Module nf_conntrack_ftp not found.
What am I overlooking here?

TIA!

User avatar
avij
Forum Moderator
Posts: 2505
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Unable to load Kernel module?

Post by avij » 2017/12/29 16:30:10

What does uname -a report? You can edit out the hostname, that's not relevant here. If you have recently updated your kernel, you may need to reboot to start using the new kernel.

Also note the .debug in your directory name. Non-debug kernel modules would be in /lib/modules/2.6.32-696.16.1.el6.x86_64.

epretorious
Posts: 38
Joined: 2005/06/13 20:06:38
Location: Truckee, CA
Contact:

Re: Unable to load Kernel module?

Post by epretorious » 2017/12/29 20:18:43

avij wrote:What does uname -a report?

Also note the .debug in your directory name. Non-debug kernel modules would be in /lib/modules/2.6.32-696.16.1.el6.x86_64.
Thanks, Avij! You are correct: The modules are not the correct version for the kernel that my VPS is running...

Code: Select all

[root@cp ~]# uname -r
4.9.68-x86_64-linode89

[root@cp ~]# find /lib/modules/ -name 'nf*' | grep ftp
/lib/modules/2.6.32-696.16.1.el6.x86_64.debug/kernel/net/netfilter/nf_conntrack_ftp.ko
/lib/modules/2.6.32-696.16.1.el6.x86_64.debug/kernel/net/netfilter/nf_conntrack_tftp.ko
/lib/modules/2.6.32-696.16.1.el6.x86_64.debug/kernel/net/ipv4/netfilter/nf_nat_ftp.ko
/lib/modules/2.6.32-696.16.1.el6.x86_64.debug/kernel/net/ipv4/netfilter/nf_nat_tftp.ko
Apparently there are a few Kernel-related RPM's installed that are mismatched:

Code: Select all

[root@cp ~]# rpm -qa | grep kernel
kernel-firmware-2.6.32-696.16.1.el6.noarch
kernel-debug-2.6.32-696.16.1.el6.x86_64
kernel-headers-2.6.32-696.1.1.el6.x86_64
dracut-kernel-004-409.el6_8.2.noarch
...but, ultimately, the root cause is the custom kernel used by Linode.

I've located the article "Run a Distribution-Supplied Kernel on a KVM Linode" (https://www.linode.com/docs/tools-refer ... -with-kvm/) and will begin using the distribution-supplied kernel so that I may load the distribution's modules (i.e., ip_conntrack_ftp and others).

User avatar
avij
Forum Moderator
Posts: 2505
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Unable to load Kernel module?

Post by avij » 2017/12/29 20:26:33

Yes, that's indeed the reason and the article you linked to sounds like it would do the trick. Good luck.

Post Reply