(Though of course the patch needs to be applied to a new copy of
40-setup-networking-deb that only the bookworm profile uses, and not the
previous versions of debian)

Samuel

Samuel Thibault, le mar. 09 avril 2024 11:45:10 +0200, a ecrit:
> Indeed, we meet the same issue, and the proposed patch is what we'll be
> using.
> 
> Samuel
> 
> Valentin Kleibel, le mer. 10 janv. 2024 17:29:01 +0100, a ecrit:
> > The default network interface naming scheme for bookworm don-U's is enX[num]
> > but the network setup script used to fill /etc/network/interfaces still
> > assumes eth0 for the first network interface.
> > 
> > I think either the script
> > /usr/share/xen-tools/common/40-setup-networking-deb should be changed or a
> > changed copy should be used for
> > /usr/share/xen-tools/bookworm.d/40-setup-networking instead of the symlink.
> > 
> > I've attached a simple patch that i used creating new bookworm domUs.
> > 
> > Thanks for your work,
> > Valentin
> 
> > --- /usr/share/xen-tools/common/40-setup-networking-deb.orig    2024-01-09 
> > 18:22:08.130262212 +0100
> > +++ /usr/share/xen-tools/common/40-setup-networking-deb 2024-01-09 
> > 18:21:34.908959639 +0100
> > @@ -49,9 +49,9 @@
> >  iface lo inet loopback
> >  
> >  # The primary network interface
> > -auto eth0
> > -iface eth0 inet dhcp
> > -# post-up ethtool -K eth0 tx off
> > +auto enX0
> > +iface enX0 inet dhcp
> > +# post-up ethtool -K enX0 tx off
> >  
> >  #
> >  # The commented out line above will disable TCP checksumming which
> > @@ -105,14 +105,14 @@
> >  iface lo inet loopback
> >  
> >  # The primary network interface
> > -auto eth0
> > -iface eth0 inet static
> > +auto enX0
> > +iface enX0 inet static
> >   address ${ip1}
> >  ${gway}
> >   netmask ${netmask}
> >  ${bcast}
> >  ${point}
> > - # post-up  ethtool -K eth0 tx off
> > + # post-up  ethtool -K enX0 tx off
> >  
> >  #
> >  # The commented out line above will disable TCP checksumming which
> > @@ -131,11 +131,11 @@
> >          logMessage Adding etho:${interface}
> >  
> >          cat <<E_O_STATIC >>${prefix}/etc/network/interfaces
> > -auto eth0:${interface}
> > -iface eth0:${interface} inet static
> > +auto enX0:${interface}
> > +iface enX0:${interface} inet static
> >   address ${value}
> >   netmask ${netmask}
> > - # post-up  ethtool -K eth0 tx off
> > + # post-up  ethtool -K enX0 tx off
> >  E_O_STATIC
> >          count=`expr $count + 1`
> >          interface=`expr $interface + 1`
> 
> 
> -- 
> Samuel
> ---
> Pour une évaluation indépendante, transparente et rigoureuse !
> Je soutiens la Commission d'Évaluation de l'Inria.

-- 
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.

Reply via email to