The Perfect Xen 3.0.3 Setup For Debian Sarge

Discussion in 'HOWTO-Related Questions' started by the_idol, Oct 25, 2006.

  1. the_idol

    the_idol New Member

    This was the first time that I could get Xen to work on my hardware, binaries did not work, compiling from source worked perfectly. Everything worked as described except iptables. I checked every stage as I did it creating the Xen kernel section [4.1] iptables were in it. When I created the dom0 kernel section [4.2] and followed the menuconfig instructions saved and compiled. I lost iptables at that point. Needless to say section [4.3] did not result in iptables either.
    Both were created as modules.

    The private network stuff was also very informative.

    Any help on this would be appreciated

    The Idol
     
  2. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    iptables -L
    and
    Code:
    uname -a
    on dom0 and domu?
     
  3. the_idol

    the_idol New Member

    here is the outputs you requested, thanks for your help.

    Code:
    iptables -L 
    dom0: 
    iptables v1.2.11: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
    Perhaps iptables or your kernel needs to be upgraded.
    
    domu:
    Note: /etc/modules.conf is more recent than /lib/modules/2.6.16.29-xenU/modules.dep
    modprobe: QM_MODULES: Function not implemented
    
    modprobe: QM_MODULES: Function not implemented
    
    modprobe: Can't locate module ip_tables
    iptables v1.2.11: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
    Perhaps iptables or your kernel needs to be upgraded.
    Code:
    uname -a
    dom0:
    Linux vs2.openxyz.com 2.6.16.29-xen0 #2 Tue Oct 24 19:59:46 PDT 2006 i686 GNU/Linux
    domu:
    Linux vm01 2.6.16.29-xenU #2 SMP Tue Oct 24 20:18:12 PDT 2006 i686 GNU/Linux

    The Idol
     
  4. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    updatedb
    locate iptables
    on dom0?
     
  5. the_idol

    the_idol New Member

    here it is:

    Code:
    vs2:~# updatedb
    vs2:~# locate iptables
    /lib/iptables
    /lib/iptables/libip6t_ah.so
    /lib/iptables/libip6t_condition.so
    /lib/iptables/libip6t_dst.so
    /lib/iptables/libip6t_esp.so
    /lib/iptables/libip6t_eui64.so
    /lib/iptables/libip6t_frag.so
    /lib/iptables/libip6t_fuzzy.so
    /lib/iptables/libip6t_hbh.so
    /lib/iptables/libip6t_hl.so
    /lib/iptables/libip6t_HL.so
    /lib/iptables/libip6t_icmpv6.so
    /lib/iptables/libip6t_ipv6header.so
    /lib/iptables/libip6t_length.so
    /lib/iptables/libip6t_limit.so
    /lib/iptables/libip6t_LOG.so
    /lib/iptables/libip6t_mac.so
    /lib/iptables/libip6t_mark.so
    /lib/iptables/libip6t_MARK.so
    /lib/iptables/libip6t_multiport.so
    /lib/iptables/libip6t_nth.so
    /lib/iptables/libip6t_owner.so
    /lib/iptables/libip6t_policy.so
    /lib/iptables/libip6t_random.so
    /lib/iptables/libip6t_REJECT.so
    /lib/iptables/libip6t_ROUTE.so
    /lib/iptables/libip6t_rt.so
    /lib/iptables/libip6t_standard.so
    /lib/iptables/libip6t_tcp.so
    /lib/iptables/libip6t_TRACE.so
    /lib/iptables/libip6t_udp.so
    /lib/iptables/libipt_addrtype.so
    /lib/iptables/libipt_ah.so
    /lib/iptables/libipt_CLASSIFY.so
    /lib/iptables/libipt_condition.so
    /lib/iptables/libipt_connlimit.so
    /lib/iptables/libipt_connmark.so
    /lib/iptables/libipt_CONNMARK.so
    /lib/iptables/libipt_conntrack.so
    /lib/iptables/libipt_DNAT.so
    /lib/iptables/libipt_dscp.so
    /lib/iptables/libipt_DSCP.so
    /lib/iptables/libipt_dstlimit.so
    /lib/iptables/libipt_ecn.so
    /lib/iptables/libipt_ECN.so
    /lib/iptables/libipt_esp.so
    /lib/iptables/libipt_fuzzy.so
    /lib/iptables/libipt_helper.so
    /lib/iptables/libipt_icmp.so
    /lib/iptables/libipt_IPMARK.so
    /lib/iptables/libipt_iprange.so
    /lib/iptables/libipt_ipv4options.so
    /lib/iptables/libipt_IPV4OPTSSTRIP.so
    /lib/iptables/libipt_length.so
    /lib/iptables/libipt_limit.so
    /lib/iptables/libipt_LOG.so
    /lib/iptables/libipt_mac.so
    /lib/iptables/libipt_mark.so
    /lib/iptables/libipt_MARK.so
    /lib/iptables/libipt_MASQUERADE.so
    /lib/iptables/libipt_MIRROR.so
    /lib/iptables/libipt_mport.so
    /lib/iptables/libipt_multiport.so
    /lib/iptables/libipt_NETLINK.so
    /lib/iptables/libipt_NETMAP.so
    /lib/iptables/libipt_NOTRACK.so
    /lib/iptables/libipt_nth.so
    /lib/iptables/libipt_osf.so
    /lib/iptables/libipt_owner.so
    /lib/iptables/libipt_physdev.so
    /lib/iptables/libipt_pkttype.so
    /lib/iptables/libipt_policy.so
    /lib/iptables/libipt_pool.so
    /lib/iptables/libipt_POOL.so
    /lib/iptables/libipt_psd.so
    /lib/iptables/libipt_quota.so
    /lib/iptables/libipt_random.so
    /lib/iptables/libipt_realm.so
    /lib/iptables/libipt_recent.so
    /lib/iptables/libipt_REDIRECT.so
    /lib/iptables/libipt_REJECT.so
    /lib/iptables/libipt_ROUTE.so
    /lib/iptables/libipt_rpc.so
    /lib/iptables/libipt_SAME.so
    /lib/iptables/libipt_sctp.so
    /lib/iptables/libipt_set.so
    /lib/iptables/libipt_SET.so
    /lib/iptables/libipt_SNAT.so
    /lib/iptables/libipt_standard.so
    /lib/iptables/libipt_state.so
    /lib/iptables/libipt_string.so
    /lib/iptables/libipt_TARPIT.so
    /lib/iptables/libipt_TCPLAG.so
    /lib/iptables/libipt_tcpmss.so
    /lib/iptables/libipt_TCPMSS.so
    /lib/iptables/libipt_tcp.so
    /lib/iptables/libipt_time.so
    /lib/iptables/libipt_tos.so
    /lib/iptables/libipt_TOS.so
    /lib/iptables/libipt_TRACE.so
    /lib/iptables/libipt_ttl.so
    /lib/iptables/libipt_TTL.so
    /lib/iptables/libipt_u32.so
    /lib/iptables/libipt_udp.so
    /lib/iptables/libipt_ULOG.so
    /lib/iptables/libipt_unclean.so
    /lib/iptables/libipt_XOR.so
    /sbin/iptables
    /sbin/iptables-restore
    /sbin/iptables-save
    /usr/share/doc/iptables
    /usr/share/doc/iptables/changelog.Debian.gz
    /usr/share/doc/iptables/changelog.gz
    /usr/share/doc/iptables/copyright
    /usr/share/doc/iptables/examples
    /usr/share/doc/iptables/examples/3iptables-ppp_down-rules
    /usr/share/doc/iptables/examples/3iptables-ppp_up-rules.gz
    /usr/share/doc/iptables/examples/oldinitdscript.gz
    /usr/share/doc/iptables/html
    /usr/share/doc/iptables/html/NAT-HOWTO-10.html
    /usr/share/doc/iptables/html/NAT-HOWTO-11.html
    /usr/share/doc/iptables/html/NAT-HOWTO-1.html
    /usr/share/doc/iptables/html/NAT-HOWTO-2.html
    /usr/share/doc/iptables/html/NAT-HOWTO-3.html
    /usr/share/doc/iptables/html/NAT-HOWTO-4.html
    /usr/share/doc/iptables/html/NAT-HOWTO-5.html
    /usr/share/doc/iptables/html/NAT-HOWTO-6.html
    /usr/share/doc/iptables/html/NAT-HOWTO-7.html
    /usr/share/doc/iptables/html/NAT-HOWTO-8.html
    /usr/share/doc/iptables/html/NAT-HOWTO-9.html
    /usr/share/doc/iptables/html/NAT-HOWTO.html
    /usr/share/doc/iptables/html/packet-filtering-HOWTO-10.html
    /usr/share/doc/iptables/html/packet-filtering-HOWTO-11.html
    /usr/share/doc/iptables/html/packet-filtering-HOWTO-1.html
    /usr/share/doc/iptables/html/packet-filtering-HOWTO-2.html
    /usr/share/doc/iptables/html/packet-filtering-HOWTO-3.html
    /usr/share/doc/iptables/html/packet-filtering-HOWTO-4.html
    /usr/share/doc/iptables/html/packet-filtering-HOWTO-5.html
    /usr/share/doc/iptables/html/packet-filtering-HOWTO-6.html
    /usr/share/doc/iptables/html/packet-filtering-HOWTO-7.html
    /usr/share/doc/iptables/html/packet-filtering-HOWTO-8.html
    /usr/share/doc/iptables/html/packet-filtering-HOWTO-9.html
    /usr/share/doc/iptables/html/packet-filtering-HOWTO.html
    /usr/share/doc/iptables/README.Debian.gz
    /usr/share/lintian/overrides/iptables
    /usr/share/man/man8/iptables.8.gz
    /usr/share/man/man8/iptables-restore.8.gz
    /usr/share/man/man8/iptables-save.8.gz
    /usr/src/xen-3.0.3_0-src/linux-2.6.16.29-xen0/include/config/ip/nf/iptables
    /usr/src/xen-3.0.3_0-src/linux-2.6.16.29-xen0/include/config/ip/nf/iptables/module.h
    /usr/src/xen-3.0.3_0-src/linux-2.6.16.29-xen/include/config/ip6/nf/iptables
    /usr/src/xen-3.0.3_0-src/linux-2.6.16.29-xen/include/config/ip6/nf/iptables/module.h
    /usr/src/xen-3.0.3_0-src/linux-2.6.16.29-xen/include/config/ip/nf/iptables
    /usr/src/xen-3.0.3_0-src/linux-2.6.16.29-xen/include/config/ip/nf/iptables/module.h
    /usr/src/xen-3.0.3_0-src/linux-2.6.16.29-xenU/include/config/ip/nf/iptables
    /usr/src/xen-3.0.3_0-src/linux-2.6.16.29-xenU/include/config/ip/nf/iptables/module.h
    /var/lib/dpkg/info/iptables.list
    /var/lib/dpkg/info/iptables.md5sums
    /var/lib/dpkg/info/iptables.postinst
    /var/lib/dpkg/info/iptables.prerm
    vs2:~# 
     
  6. falko

    falko Super Moderator ISPConfig Developer

    /lib/iptables looks wrong. Should rather be /lib/modules...
    I guess you made something wrong when you compiled the kernels.
     
  7. jjbakker

    jjbakker New Member

    I have the same problem while i exactly followed your instructions.

    How can I (we) fix this?
     
  8. falko

    falko Super Moderator ISPConfig Developer

    Did you compile Xen from the sources or installed the binary?

    What's the exact error message?
     
  9. Toontje

    Toontje New Member

    I also have exact the same problem and I followed the instructions exactly.

    I suspect that we didn't do the menuconfig correctly. I only changed the points as written in the howto. No other changes.

    I'm testing this install in VMware because I'm new to compiling kernels, so it looks like I have to do some more reading on that........
     
  10. falko

    falko Super Moderator ISPConfig Developer

    You can try to enable some of the iptables' subfunctions in menuconfig.
     

Share This Page