Results 1 to 3 of 3
  1. #1

    centos 5.3 xen ip_tables module

    I'm trying to install the ip_tables module on a xen vps without success.

    This is what I've done and the error message I'm receiving:

    Code:
    [[email protected] ~]$ uname -a
    Linux sql0 2.6.18-128.4.1.el5xen #1 SMP Tue Aug 4 20:51:12 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
    Code:
    [[email protected] ~]$ cd
    [[email protected] ~]$ mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
    [[email protected] ~]$ echo '%_topdir %(echo $HOME)/rpmbuild' > .rpmmacros
    [[email protected] ~]$ rpm -i http://mirror.centos.org/centos/5/updates/SRPMS/kernel-2.6.18-128.4.1.el5.src.rpm 2> /dev/null
    Code:
    [[email protected] ~]$ cd ~/rpmbuild/SPECS/
    [[email protected] ~]$ rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log
    Code:
    [[email protected] ~]$ cd ~/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.x86_64/
    [[email protected] linux-2.6.18.x86_64]$ make oldconfig
    [[email protected] linux-2.6.18.x86_64]$ make menuconfig
    [[email protected] linux-2.6.18.x86_64]$ make prepare
    [[email protected] linux-2.6.18.x86_64]$ make modules_prepare
    Code:
    [[email protected] linux-2.6.18.x86_64]$ make M=net/ipv4/netfilter
    This generates the following warning but then makes the modules anyway:
    Code:
    WARNING: Symbol version dump /home/peter/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.x86_64/Module.symvers
               is missing; modules will have no dependencies and modversions.
    Code:
    [[email protected] linux-2.6.18.x86_64]$ strip --strip-debug net/ipv4/netfilter/ip_tables.ko
    [[email protected] linux-2.6.18.x86_64]$ su
    bash-3.2# cp net/ipv4/netfilter/ip_tables.ko /lib/modules/2.6.18-128.4.1.el5xen/extra/
    bash-3.2# /sbin/depmod -a
    Code:
    bash-3.2# /sbin/modprobe ip_tables
    FATAL: Error inserting ip_tables (/lib/modules/2.6.18-128.4.1.el5xen/extra/ip_tables.ko): Unknown symbol in module, or unknown parameter (see dmesg)
    Code:
    bash-3.2# dmesg | grep ip_tables
    ip_tables: no version for "struct_module" found: kernel tainted.
    ip_tables: Unknown symbol xt_compat_unlock
    ip_tables: Unknown symbol xt_free_table_info
    ip_tables: Unknown symbol xt_register_match
    ip_tables: Unknown symbol xt_find_match
    ip_tables: Unknown symbol xt_alloc_table_info
    ip_tables: Unknown symbol xt_check_match
    ip_tables: Unknown symbol xt_unregister_match
    ip_tables: Unknown symbol xt_compat_match
    ip_tables: Unknown symbol xt_register_target
    ip_tables: Unknown symbol xt_register_table
    ip_tables: Unknown symbol xt_proto_init
    ip_tables: Unknown symbol xt_replace_table
    ip_tables: Unknown symbol xt_find_table_lock
    ip_tables: Unknown symbol xt_table_unlock
    ip_tables: Unknown symbol xt_proto_fini
    ip_tables: Unknown symbol xt_check_target
    ip_tables: Unknown symbol xt_compat_target
    ip_tables: Unknown symbol xt_find_revision
    ip_tables: Unknown symbol xt_compat_lock
    ip_tables: Unknown symbol xt_unregister_table
    ip_tables: Unknown symbol xt_find_target
    ip_tables: Unknown symbol xt_unregister_target
    ip_tables: Unknown symbol xt_compat_unlock
    ip_tables: Unknown symbol xt_free_table_info
    ip_tables: Unknown symbol xt_register_match
    ip_tables: Unknown symbol xt_find_match
    ip_tables: Unknown symbol xt_alloc_table_info
    ip_tables: Unknown symbol xt_check_match
    ip_tables: Unknown symbol xt_unregister_match
    ip_tables: Unknown symbol xt_compat_match
    ip_tables: Unknown symbol xt_register_target
    ip_tables: Unknown symbol xt_register_table
    ip_tables: Unknown symbol xt_proto_init
    ip_tables: Unknown symbol xt_replace_table
    ip_tables: Unknown symbol xt_find_table_lock
    ip_tables: Unknown symbol xt_table_unlock
    ip_tables: Unknown symbol xt_proto_fini
    ip_tables: Unknown symbol xt_check_target
    ip_tables: Unknown symbol xt_compat_target
    ip_tables: Unknown symbol xt_find_revision
    ip_tables: Unknown symbol xt_compat_lock
    ip_tables: Unknown symbol xt_unregister_table
    ip_tables: Unknown symbol xt_find_target
    ip_tables: Unknown symbol xt_unregister_target
    ip_tables: Unknown symbol xt_compat_unlock
    ip_tables: Unknown symbol xt_free_table_info
    ip_tables: Unknown symbol xt_register_match
    ip_tables: Unknown symbol xt_find_match
    ip_tables: Unknown symbol xt_alloc_table_info
    ip_tables: Unknown symbol xt_check_match
    ip_tables: Unknown symbol xt_unregister_match
    ip_tables: Unknown symbol xt_compat_match
    ip_tables: Unknown symbol xt_register_target
    ip_tables: Unknown symbol xt_register_table
    ip_tables: Unknown symbol xt_proto_init
    ip_tables: Unknown symbol xt_replace_table
    ip_tables: Unknown symbol xt_find_table_lock
    ip_tables: Unknown symbol xt_table_unlock
    ip_tables: Unknown symbol xt_proto_fini
    ip_tables: Unknown symbol xt_check_target
    ip_tables: Unknown symbol xt_compat_target
    ip_tables: Unknown symbol xt_find_revision
    ip_tables: Unknown symbol xt_compat_lock
    ip_tables: Unknown symbol xt_unregister_table
    ip_tables: Unknown symbol xt_find_target
    ip_tables: Unknown symbol xt_unregister_target
    ip_tables: Unknown symbol xt_compat_unlock
    ip_tables: Unknown symbol xt_free_table_info
    ip_tables: Unknown symbol xt_register_match
    ip_tables: Unknown symbol xt_find_match
    ip_tables: Unknown symbol xt_alloc_table_info
    ip_tables: Unknown symbol xt_check_match
    ip_tables: Unknown symbol xt_unregister_match
    ip_tables: Unknown symbol xt_compat_match
    ip_tables: Unknown symbol xt_register_target
    ip_tables: Unknown symbol xt_register_table
    ip_tables: Unknown symbol xt_proto_init
    ip_tables: Unknown symbol xt_replace_table
    ip_tables: Unknown symbol xt_find_table_lock
    ip_tables: Unknown symbol xt_table_unlock
    ip_tables: Unknown symbol xt_proto_fini
    ip_tables: Unknown symbol xt_check_target
    ip_tables: Unknown symbol xt_compat_target
    ip_tables: Unknown symbol xt_find_revision
    ip_tables: Unknown symbol xt_compat_lock
    ip_tables: Unknown symbol xt_unregister_table
    ip_tables: Unknown symbol xt_find_target
    ip_tables: Unknown symbol xt_unregister_target
    ip_tables: Unknown symbol xt_compat_unlock
    ip_tables: Unknown symbol xt_free_table_info
    ip_tables: Unknown symbol xt_register_match
    ip_tables: Unknown symbol xt_find_match
    ip_tables: Unknown symbol xt_alloc_table_info
    ip_tables: Unknown symbol xt_check_match
    ip_tables: Unknown symbol xt_unregister_match
    ip_tables: Unknown symbol xt_compat_match
    ip_tables: Unknown symbol xt_register_target
    ip_tables: Unknown symbol xt_register_table
    ip_tables: Unknown symbol xt_proto_init
    ip_tables: Unknown symbol xt_replace_table
    ip_tables: Unknown symbol xt_find_table_lock
    ip_tables: Unknown symbol xt_table_unlock
    ip_tables: Unknown symbol xt_proto_fini
    ip_tables: Unknown symbol xt_check_target
    ip_tables: Unknown symbol xt_compat_target
    ip_tables: Unknown symbol xt_find_revision
    ip_tables: Unknown symbol xt_compat_lock
    ip_tables: Unknown symbol xt_unregister_table
    ip_tables: Unknown symbol xt_find_target
    ip_tables: Unknown symbol xt_unregister_target
    ip_tables: Unknown symbol xt_compat_unlock
    ip_tables: Unknown symbol xt_free_table_info
    ip_tables: Unknown symbol xt_register_match
    ip_tables: Unknown symbol xt_find_match
    ip_tables: Unknown symbol xt_alloc_table_info
    ip_tables: Unknown symbol xt_check_match
    ip_tables: Unknown symbol xt_unregister_match
    ip_tables: Unknown symbol xt_compat_match
    ip_tables: Unknown symbol xt_register_target
    ip_tables: Unknown symbol xt_register_table
    ip_tables: Unknown symbol xt_proto_init
    ip_tables: Unknown symbol xt_replace_table
    ip_tables: Unknown symbol xt_find_table_lock
    ip_tables: Unknown symbol xt_table_unlock
    ip_tables: Unknown symbol xt_proto_fini
    ip_tables: Unknown symbol xt_check_target
    ip_tables: Unknown symbol xt_compat_target
    ip_tables: Unknown symbol xt_find_revision
    ip_tables: Unknown symbol xt_compat_lock
    ip_tables: Unknown symbol xt_unregister_table
    ip_tables: Unknown symbol xt_find_target
    ip_tables: Unknown symbol xt_unregister_target
    ip_tables: Unknown symbol xt_compat_unlock
    ip_tables: Unknown symbol xt_free_table_info
    ip_tables: Unknown symbol xt_register_match
    ip_tables: Unknown symbol xt_find_match
    ip_tables: Unknown symbol xt_alloc_table_info
    ip_tables: Unknown symbol xt_check_match
    ip_tables: Unknown symbol xt_unregister_match
    ip_tables: Unknown symbol xt_compat_match
    ip_tables: Unknown symbol xt_register_target
    ip_tables: Unknown symbol xt_register_table
    ip_tables: Unknown symbol xt_proto_init
    ip_tables: Unknown symbol xt_replace_table
    ip_tables: Unknown symbol xt_find_table_lock
    ip_tables: Unknown symbol xt_table_unlock
    ip_tables: Unknown symbol xt_proto_fini
    ip_tables: Unknown symbol xt_check_target
    ip_tables: Unknown symbol xt_compat_target
    ip_tables: Unknown symbol xt_find_revision
    ip_tables: Unknown symbol xt_compat_lock
    ip_tables: Unknown symbol xt_unregister_table
    ip_tables: Unknown symbol xt_find_target
    ip_tables: Unknown symbol xt_unregister_target
    ip_tables: Unknown symbol xt_compat_unlock
    ip_tables: Unknown symbol xt_free_table_info
    ip_tables: Unknown symbol xt_register_match
    ip_tables: Unknown symbol xt_find_match
    ip_tables: Unknown symbol xt_alloc_table_info
    ip_tables: Unknown symbol xt_check_match
    ip_tables: Unknown symbol xt_unregister_match
    ip_tables: Unknown symbol xt_compat_match
    ip_tables: Unknown symbol xt_register_target
    ip_tables: Unknown symbol xt_register_table
    ip_tables: Unknown symbol xt_proto_init
    ip_tables: Unknown symbol xt_replace_table
    ip_tables: Unknown symbol xt_find_table_lock
    ip_tables: Unknown symbol xt_table_unlock
    ip_tables: Unknown symbol xt_proto_fini
    ip_tables: Unknown symbol xt_check_target
    ip_tables: Unknown symbol xt_compat_target
    ip_tables: Unknown symbol xt_find_revision
    ip_tables: Unknown symbol xt_compat_lock
    ip_tables: Unknown symbol xt_unregister_table
    ip_tables: Unknown symbol xt_find_target
    ip_tables: Unknown symbol xt_unregister_target
    Any ideas?

    Many thanks!

  2. #2
    I had similar trouble inside a xen vps.

    What solved it for me was to install kernel-xen and kernel-xen-devel

    From root bash shell, I did these two commands:

    # yum install kernel-xen kernel-xen-devel
    # /sbin/depmod

  3. #3
    Thanks this is now resolved.

Similar Threads

  1. No module uhci-hcd found for kernel 2.6.24.2 on CENTOS 5???
    By gurika in forum Hosting Security and Technology
    Replies: 3
    Last Post: 07-03-2008, 05:12 AM
  2. APF Firewall Without Module ip_tables?
    By Lethanialist in forum Hosting Security and Technology
    Replies: 5
    Last Post: 10-12-2007, 04:44 PM
  3. CentOS 3.1 and Kernel 2.6 and module-init-tools
    By qm8309 in forum Dedicated Server
    Replies: 3
    Last Post: 08-19-2004, 12:17 AM
  4. How to install ip_tables?
    By null in forum Hosting Security and Technology
    Replies: 1
    Last Post: 01-02-2004, 04:56 PM
  5. Debian ip_tables compile-in doesn't work
    By telnettro in forum Hosting Security and Technology
    Replies: 1
    Last Post: 06-13-2003, 05:21 AM

Posting Permissions

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