WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] xen3 with bind in domU - SOLVED

On Wed, 2006-03-15 at 12:37 +0200, Pasi Kärkkäinen wrote:
> > >ethtool -K eth0 tx off
> > >on all interfaces DomU and Dom0. For the firewall eth1, too.

> Is this "tx off" really needed also in dom0?

You need tx off on all *xen virtual ethernet interfaces*, no matter if
it's in a dom0 or domU.  You probably should not run it on your dom0's
physical network interfaces.

If you are using xen's standard network-bridge script, dom0's "eth0"
interface is a xen virtual ethernet interface (eth0 gets renamed to
peth0, and veth0 gets renamed to eth0), so you need to run it on eth0
AFTER xend starts up, or veth0 before xend starts.

The simpler solution to this in dom0 is to apply the patch to
the /etc/xen/scripts/network-bridge script:

*** network-bridge.orig 2006-03-15 07:47:07.635631509 -0500
--- network-bridge      2006-03-15 07:49:38.255631509 -0500
***************
*** 247,252 ****
--- 247,254 ----
        ip link set ${pdev} up
        add_to_bridge2 ${bridge} ${pdev}
        do_ifup ${netdev}
+       # disable ip checksum offloading for veth devices
+       test -x /usr/sbin/ethtool && /usr/sbin/ethtool -K ${netdev} tx
off
      else
        # old style without ${vdev}
        transfer_addrs  ${netdev} ${bridge}


Note 1: RHEL and CentOS change "/usr/sbin/ethtool" to "/sbin/ethtool"
Note 2:  You still have to run ethtool inside all the domUs.


For Debian or Ubuntu domUs, the easy way is to edit the
file /etc/network/interfaces and after each "iface ethX" line, add the
command:

        iface eth0 inet dhcp
          pre-up /usr/sbin/ethtool -K eth0 tx up


For RHEL 4 or CentOS 4.2 domUs, just create a new executable shell
script named "/sbin/ifup-pre-local" that contains:

        #!/bin/sh
        DEVICE="`expr $1 : 'ifcfg-\(.*\)$'`"
        /sbin/ethtool -K $DEVICE tx off

The RHEL network startup scripts run that script if it exists, before it
brings up a network interface.


I don't have any SuSE or Gentoo systems, so I'm not sure what works
there.


-- 
Patrick Wolfe  (pwolfe@xxxxxxxxxxxxxx)

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users