Find the answer to your Linux question:
Results 1 to 5 of 5
Hello, i have OVH server and when doing: Code: modprobe ip_gre I got this: Code: FATAL: Could not load /lib/modules/3.10.9-xxxx-grs-ipv6-64/modules.dep: No such file or directory In this thread: http://forums.gentoo.org/viewtopic-t...3-start-0.html someone ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User postcd's Avatar
    Join Date
    Apr 2011
    Posts
    347

    Could not load /lib/modules/3.10.9-xxxx-grs-ipv6-64/modules.dep


    Hello,

    i have OVH server and when doing:
    Code:
    modprobe ip_gre
    I got this:
    Code:
    FATAL: Could not load /lib/modules/3.10.9-xxxx-grs-ipv6-64/modules.dep: No such file or directory
    In this thread: http://forums.gentoo.org/viewtopic-t...3-start-0.html someone recommends doing:
    Code:
    make && make modules_install
    But when i do it, it tells:
    Code:
    No targets specified and no makefile found.
    Please how to solve this and do modprobe ip_gre ?


    Update:
    Code:
    mkdir /lib/modules/3.10.9-xxxx-grs-ipv6-64
    depmod -a
    modprobe ip_gre
    result:
    Code:
    FATAL: Module ip_gre not found
    Host provider told me if i need some modules, you can see kernel configuration on /proc/config.gz
    you can download kernel sources and build your own kernel based on it

    I did:
    Code:
    zgrep -i gre /proc/config.gz
    
    CONFIG_ACPI_PROCESSOR_AGGREGATOR=y
    # CONFIG_NET_IPGRE_DEMUX is not set
    # CONFIG_IPV6_GRE is not set
    CONFIG_NF_CT_PROTO_GRE=y
    CONFIG_NF_NAT_PROTO_GRE=y
    # CONFIG_NET_SCH_GRED is not set
    # CONFIG_HID_GREENASIA is not set
    CONFIG_NLS_MAC_GREEK=y
    
    pwd
    /lib/modules/3.10.9-xxxx-grs-ipv6-64
    
    ls
    modules.alias   modules.ieee1394map  modules.ofmap     modules.symbols
    modules.ccwmap  modules.inputmap     modules.pcimap    modules.usbmap
    modules.dep     modules.isapnpmap    modules.seriomap
    
    cat modules.dep
    ..empty..
    
    lsmod
    Opening /proc/modules: No such file or directory
    Please how to install ip_gre ?

    here: http://askubuntu.com/questions/13289...pper-not-found is guide on how to install ndiswrapper maybe it will work same for ip_gre?
    Last edited by atreyu; 09-11-2013 at 02:34 AM. Reason: linkified links and added CODE tags to aid in readability

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by postcd View Post
    i have OVH server
    as in OVH service provider? what is your Linux distro, kernel and version? try these commands:

    Code:
    grep -H . /etc/*release*
    uname -a
    I got this:
    Code:
    FATAL: Could not load /lib/modules/3.10.9-xxxx-grs-ipv6-64/modules.dep: No such file or directory
    have you compiled your own kernel? that file is usually installed when a kernel package is installed.

    In this thread: Gentoo Forums :: View topic - modprobe: FATAL: Could not load /lib/modules/2.6.8.1/modules someone recommends doing:
    Code:
    make && make modules_install
    again, those commands are used when recompiling your own custom kernel (or kernel modules).


    Code:
    mkdir /lib/modules/3.10.9-xxxx-grs-ipv6-64
    depmod -a
    modprobe ip_gre
    result:
    Code:
    FATAL: Module ip_gre not found
    you can't just create the kernel directory, it should already exist (provided you installed your kernel source). that may be all you need. let us know your Linux distro version, etc. and we can help make sure you have it installed.

    you can try this command, to look for the exact kernel driver:
    Code:
    find /lib/modules/$(uname -r)/ -type f -name 'ip_gre.*'
    if the kernel driver exists for your kernel, it will be found there, and the "modprobe ip_gre" command should work.

  3. #3
    Linux User postcd's Avatar
    Join Date
    Apr 2011
    Posts
    347
    Thank you,
    yes, it is OVH kernel..

    grep -H . /etc/*release*
    Code:
    /etc/redhat-release:CentOS release 5.9 (Final)
    uname -a
    Code:
    Linux hostnamethere 3.10.9-xxxx-grs-ipv6-64 #1 SMP Wed Aug 21 11:51:59 CEST 2013 x86_64 x86_64 x86_64 GNU/Linux
    find /lib/modules/$(uname -r)/ -type f -name 'ip_gre.*'
    Code:
    ..nothing found..
    vi /boot/grub/grub.conf
    contains:
    Code:
    default=0
    kernel /boot/bzImage-3.10.9-xxxx-grs-ipv6-64 root=/dev/md2  ro
    Any idea please what to do to get this ip_gre module in kernel?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User postcd's Avatar
    Join Date
    Apr 2011
    Posts
    347
    I installed default kernal using this manual: internetlifeforum.com/general-server-webmaster-discussion/837-how-change-ovh-kernel-default-one-install-ip_gre-module/ and the result is:

    modprobe -l | grep ip_gre
    Code:
    /lib/modules/2.6.18-348.16.1.el5.centos.plus/kernel/net/ipv4/ip_gre.ko
    lsmod | grep ip_gre
    Code:
    ip_gre 47457 0
    modinfo ip_gre
    Code:
    filename: /lib/modules/2.6.18-348.16.1.el5.centos.plus/kernel/net/ipv4/ip_gre.kolicense: GPL
    srcversion: .........
    depends:
    vermagic: ......
    module_sig: .........
    Does it mean i installed IP_GRE successfully?
    Is there any other option isntead of changing kernel?

  6. #5
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by postcd View Post
    Does it mean i installed IP_GRE successfully?
    well, it certainly means that the kernel driver successfully loaded. check the output of dmesg for kernel messages related to the module. to test the module, try an iptunnel command (or try whatever it was that you were doing that required ip_gre in the first place).

    Is there any other option isntead of changing kernel?
    from where did you get your 3.10.9-xxxx-grs-ipv6-64 kernel? they should provide the kernel source for that kernel, which should surely contain the ip_gre source code (c code, .h include files, makefiles, etc.).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •