Hi all. I''ve got a Debian domU I created from scratch a few weeks ago. Every time I rolled it out previously in testing, it worked fine. But now it seems to make the ethernet device eth1 rather than eth0 in the domU: localhost:~# ifconfig -a eth1 Link encap:Ethernet HWaddr 00:16:3E:3D:A0:30 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) localhost:~# dmesg|grep -i eth netfront: Initialising virtual ethernet driver. netfront: device eth0 has flipping receive path. localhost:~# Note that as eth1, it routes traffic just fine. I can ifconfig it up and set an IP address, then get good routed connectivity. I''m seeing this eth1 naming issue on dom0s running CentOS 5.0 with the stock Xen 3.0.3 (yes that means literally 5.0, not a higher minor number), as well as Cent 5.1 with Xen 3.2.0 compiled from source. But obviously it presents a problem since I can''t count on consistent naming. Thoughts? -Ray _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Alexander Hoßdorf
2008-Jul-31 22:11 UTC
Re: [Xen-users] Debian domU interface naming strangeness
Hi, Have you got persistent mac adress configured for domU? You have a file called /etc/udev/rules.d/z25-persistent-net.rules in debian DomU. empty it and reboot DomU. Hope this helps. Cheers, Alex Ray Barnes schrieb:> Hi all. I''ve got a Debian domU I created from scratch a few weeks > ago. Every time I rolled it out previously in testing, it worked > fine. But now it seems to make the ethernet device eth1 rather than > eth0 in the domU: > > localhost:~# ifconfig -a > eth1 Link encap:Ethernet HWaddr 00:16:3E:3D:A0:30 > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) > > lo Link encap:Local Loopback > inet addr:127.0.0.1 Mask:255.0.0.0 > UP LOOPBACK RUNNING MTU:16436 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) > > localhost:~# dmesg|grep -i eth > netfront: Initialising virtual ethernet driver. > netfront: device eth0 has flipping receive path. > localhost:~# > > Note that as eth1, it routes traffic just fine. I can ifconfig it up > and set an IP address, then get good routed connectivity. I''m seeing > this eth1 naming issue on dom0s running CentOS 5.0 with the stock Xen > 3.0.3 (yes that means literally 5.0, not a higher minor number), as > well as Cent 5.1 with Xen 3.2.0 compiled from source. But obviously > it presents a problem since I can''t count on consistent naming. > > Thoughts? > > -Ray > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > __________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 3316 (20080731) __________ > > E-Mail wurde geprüft mit ESET NOD32 Antivirus. > > http://www.eset.com > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stephan Seitz
2008-Jul-31 22:29 UTC
Re: [Xen-users] Debian domU interface naming strangeness
Additionally, add a fixed mac adress to your vif line in your domU config, like vif = [ ''mac=nn:nn:nn:nn:nn:nn,brigde=xxxxx'' ] otherwise domU''s udev will start counting again on every boot (say, mac address change) Alexander Hoßdorf schrieb:> Hi, > > Have you got persistent mac adress configured for domU? > You have a file called /etc/udev/rules.d/z25-persistent-net.rules in > debian DomU. > empty it and reboot DomU. > > Hope this helps. > > Cheers, > Alex > > > Ray Barnes schrieb: >> Hi all. I''ve got a Debian domU I created from scratch a few weeks >> ago. Every time I rolled it out previously in testing, it worked >> fine. But now it seems to make the ethernet device eth1 rather than >> eth0 in the domU: >> >> localhost:~# ifconfig -a >> eth1 Link encap:Ethernet HWaddr 00:16:3E:3D:A0:30 >> BROADCAST MULTICAST MTU:1500 Metric:1 >> RX packets:0 errors:0 dropped:0 overruns:0 frame:0 >> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 >> collisions:0 txqueuelen:1000 >> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) >> >> lo Link encap:Local Loopback >> inet addr:127.0.0.1 Mask:255.0.0.0 >> UP LOOPBACK RUNNING MTU:16436 Metric:1 >> RX packets:0 errors:0 dropped:0 overruns:0 frame:0 >> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 >> collisions:0 txqueuelen:0 >> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) >> >> localhost:~# dmesg|grep -i eth >> netfront: Initialising virtual ethernet driver. >> netfront: device eth0 has flipping receive path. >> localhost:~# >> >> Note that as eth1, it routes traffic just fine. I can ifconfig it up >> and set an IP address, then get good routed connectivity. I''m seeing >> this eth1 naming issue on dom0s running CentOS 5.0 with the stock Xen >> 3.0.3 (yes that means literally 5.0, not a higher minor number), as >> well as Cent 5.1 with Xen 3.2.0 compiled from source. But obviously >> it presents a problem since I can''t count on consistent naming. >> >> Thoughts? >> >> -Ray >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> >> __________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version >> 3316 (20080731) __________ >> >> E-Mail wurde geprüft mit ESET NOD32 Antivirus. >> >> http://www.eset.com >> >> >> >> > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- Stephan Seitz Senior System Administrator *netz-haut* e.K. multimediale kommunikation zweierweg 22 97074 würzburg fon: +49 931 2876247 fax: +49 931 2876248 web: www.netz-haut.de <http://www.netz-haut.de/> registriergericht: amtsgericht würzburg, hra 5054 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Alexander Hoßdorf
2008-Jul-31 22:40 UTC
Re: [Xen-users] Debian domU interface naming strangeness
And in addition to this ;-) localhost:~# dmesg|grep -i eth netfront: Initialising virtual ethernet driver. netfront: device eth0 has flipping receive path. This is not an error I think. It''s an information. If a fix mac adress isn''t a working solution for you, you might try to place this on your DomU kernel command line: ''xennet.rx_copy'' This is "copying recieve path". Perhaps genereally using a newer version of xen hypervisor is also a great idea ;-) Cheers, Alex Stephan Seitz schrieb:> Additionally, add a fixed mac adress to your vif line in your domU > config, like > > vif = [ ''mac=nn:nn:nn:nn:nn:nn,brigde=xxxxx'' ] > > otherwise domU''s udev will start counting again on every boot (say, > mac address change) > > > > Alexander Hoßdorf schrieb: >> Hi, >> >> Have you got persistent mac adress configured for domU? >> You have a file called /etc/udev/rules.d/z25-persistent-net.rules in >> debian DomU. >> empty it and reboot DomU. >> >> Hope this helps. >> >> Cheers, >> Alex >> >> >> Ray Barnes schrieb: >>> Hi all. I''ve got a Debian domU I created from scratch a few weeks >>> ago. Every time I rolled it out previously in testing, it worked >>> fine. But now it seems to make the ethernet device eth1 rather than >>> eth0 in the domU: >>> >>> localhost:~# ifconfig -a >>> eth1 Link encap:Ethernet HWaddr 00:16:3E:3D:A0:30 >>> BROADCAST MULTICAST MTU:1500 Metric:1 >>> RX packets:0 errors:0 dropped:0 overruns:0 frame:0 >>> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 >>> collisions:0 txqueuelen:1000 >>> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) >>> >>> lo Link encap:Local Loopback >>> inet addr:127.0.0.1 Mask:255.0.0.0 >>> UP LOOPBACK RUNNING MTU:16436 Metric:1 >>> RX packets:0 errors:0 dropped:0 overruns:0 frame:0 >>> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 >>> collisions:0 txqueuelen:0 >>> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) >>> >>> localhost:~# dmesg|grep -i eth >>> netfront: Initialising virtual ethernet driver. >>> netfront: device eth0 has flipping receive path. >>> localhost:~# >>> >>> Note that as eth1, it routes traffic just fine. I can ifconfig it up >>> and set an IP address, then get good routed connectivity. I''m seeing >>> this eth1 naming issue on dom0s running CentOS 5.0 with the stock Xen >>> 3.0.3 (yes that means literally 5.0, not a higher minor number), as >>> well as Cent 5.1 with Xen 3.2.0 compiled from source. But obviously >>> it presents a problem since I can''t count on consistent naming. >>> >>> Thoughts? >>> >>> -Ray >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com >>> http://lists.xensource.com/xen-users >>> >>> __________ Hinweis von ESET NOD32 Antivirus, >>> Signaturdatenbank-Version 3316 (20080731) __________ >>> >>> E-Mail wurde geprüft mit ESET NOD32 Antivirus. >>> >>> http://www.eset.com >>> >>> >>> >>> >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > > __________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 3316 (20080731) __________ > > E-Mail wurde geprüft mit ESET NOD32 Antivirus. > > http://www.eset.com >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
That worked great. Thanks! On Thu, Jul 31, 2008 at 6:10 PM, Stephen Kent <xen-users@smkent.net> wrote:> > Ray: > > Debian and most distros with udev keep a record of previously observed > interfaces in /etc/udev/rules.d/70-persistent-net.rules. If you don''t > specify a MAC address for the domU in your config, Xen will create a random > MAC and assign it to your domU, which will then think it''s a new interface. > Delete 70-persistent-net.rules in your domU and change your vif= line so it > includes mac=00:16:3E:3D:A0:30 in the configuration, and reboot the domU. > It should recognize eth0 as the same interface every boot. > > - Stephen > > On Thu, 31 Jul 2008 17:52:04 -0400, "Ray Barnes" <tical.net@gmail.com> > wrote: >> Hi all. I''ve got a Debian domU I created from scratch a few weeks >> ago. Every time I rolled it out previously in testing, it worked >> fine. But now it seems to make the ethernet device eth1 rather than >> eth0 in the domU: >> >> localhost:~# ifconfig -a >> eth1 Link encap:Ethernet HWaddr 00:16:3E:3D:A0:30 >> BROADCAST MULTICAST MTU:1500 Metric:1 >> RX packets:0 errors:0 dropped:0 overruns:0 frame:0 >> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 >> collisions:0 txqueuelen:1000 >> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) >> >> lo Link encap:Local Loopback >> inet addr:127.0.0.1 Mask:255.0.0.0 >> UP LOOPBACK RUNNING MTU:16436 Metric:1 >> RX packets:0 errors:0 dropped:0 overruns:0 frame:0 >> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 >> collisions:0 txqueuelen:0 >> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) >> >> localhost:~# dmesg|grep -i eth >> netfront: Initialising virtual ethernet driver. >> netfront: device eth0 has flipping receive path. >> localhost:~# >> >> Note that as eth1, it routes traffic just fine. I can ifconfig it up >> and set an IP address, then get good routed connectivity. I''m seeing >> this eth1 naming issue on dom0s running CentOS 5.0 with the stock Xen >> 3.0.3 (yes that means literally 5.0, not a higher minor number), as >> well as Cent 5.1 with Xen 3.2.0 compiled from source. But obviously >> it presents a problem since I can''t count on consistent naming. >> >> Thoughts? >> >> -Ray >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users