My network card is recognized as eth2 on my debian lenny system. In xen-config.sxp I''ve changed the line (network-script network-bridge) in (network-script ''network-bridge netdev=eth2''), then I reboot the system. Now ifconfig says : eth2 Link encap:Ethernet HWaddr 00:22:64:f5:65:ca inet addr:192.168.4.190 Bcast:192.168.5.255 Mask:255.255.254.0 inet6 addr: fe80::222:64ff:fef5:65ca/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:32575 errors:0 dropped:0 overruns:0 frame:0 TX packets:645 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2370788 (2.2 MiB) TX bytes:98233 (95.9 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 B) TX bytes:560 (560.0 B) peth2 Link encap:Ethernet HWaddr 00:22:64:f5:65:ca inet6 addr: fe80::222:64ff:fef5:65ca/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:58788 errors:0 dropped:0 overruns:0 frame:0 TX packets:647 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:11586733 (11.0 MiB) TX bytes:101373 (98.9 KiB) Interrupt:16 Memory:f8000000-f8012100 I don''t have any vif interfaces. Where I do wrong? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
PCextreme B.V. - Wido den Hollander
2009-Mar-17 10:20 UTC
Re: [Xen-users] eth2 instead of eth0.
I think you udev rules are wrong. Check /etc/udev/rules.d and something about persistent-net rules. Did you swap your NIC recently? udev creates a unique ethX device for each MAC address. - Met vriendelijke groet, Wido den Hollander Hoofd Systeembeheer / CSO Telefoon Support Nederland: 0900 9633 (45 cpm) Telefoon Support België: 0900 70312 (45 cpm) Telefoon Direct: (+31) (0)20 50 60 104 Fax: +31 (0)20 50 60 111 E-mail: support@pcextreme.nl Website: http://www.pcextreme.nl Kennisbank: http://support.pcextreme.nl/ Netwerkstatus: http://nmc.pcextreme.nl On Tue, 2009-03-17 at 10:56 +0100, Mauro wrote:> My network card is recognized as eth2 on my debian lenny system. > In xen-config.sxp I''ve changed the line (network-script > network-bridge) in (network-script ''network-bridge netdev=eth2''), then > I reboot the system. > Now ifconfig says : > eth2 Link encap:Ethernet HWaddr 00:22:64:f5:65:ca > inet addr:192.168.4.190 Bcast:192.168.5.255 Mask:255.255.254.0 > inet6 addr: fe80::222:64ff:fef5:65ca/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:32575 errors:0 dropped:0 overruns:0 frame:0 > TX packets:645 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:2370788 (2.2 MiB) TX bytes:98233 (95.9 KiB) > > lo Link encap:Local Loopback > inet addr:127.0.0.1 Mask:255.0.0.0 > inet6 addr: ::1/128 Scope:Host > UP LOOPBACK RUNNING MTU:16436 Metric:1 > RX packets:8 errors:0 dropped:0 overruns:0 frame:0 > TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:560 (560.0 B) TX bytes:560 (560.0 B) > > peth2 Link encap:Ethernet HWaddr 00:22:64:f5:65:ca > inet6 addr: fe80::222:64ff:fef5:65ca/64 Scope:Link > UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 > RX packets:58788 errors:0 dropped:0 overruns:0 frame:0 > TX packets:647 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:11586733 (11.0 MiB) TX bytes:101373 (98.9 KiB) > Interrupt:16 Memory:f8000000-f8012100 > > I don''t have any vif interfaces. > Where I do wrong? > > _______________________________________________ > 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
2009/3/17 PCextreme B.V. - Wido den Hollander <wido@pcextreme.nl>:> I think you udev rules are wrong.I''m using debian lenny. I don''t understand why but....when I create a debian lenny domX it doesn''t install udev package by default. You know why? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mauro a écrit :> 2009/3/17 PCextreme B.V. - Wido den Hollander <wido@pcextreme.nl>: > >> I think you udev rules are wrong. >> > > I''m using debian lenny. > I don''t understand why but....when I create a debian lenny domX it > doesn''t install udev package by default. > You know why? >When installing with xen-create-image, you have to add "--role udev" if you want to install udev. Olivier _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2009/3/17 Olivier B. <xen.list@daevel.fr>:> Mauro a écrit : >> >> 2009/3/17 PCextreme B.V. - Wido den Hollander <wido@pcextreme.nl>: >> >>> >>> I think you udev rules are wrong. >>> >> >> I''m using debian lenny. >> I don''t understand why but....when I create a debian lenny domX it >> doesn''t install udev package by default. >> You know why? >> > > When installing with xen-create-image, you have to add "--role udev" if you > want to install udev.Ok that''s new for me :-) But... if I install udev debian package after installing domX with xen-create-image .... is it the same? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mauro wrote:> 2009/3/17 PCextreme B.V. - Wido den Hollander <wido@pcextreme.nl>: >> I think you udev rules are wrong. > > I''m using debian lenny. > I don''t understand why but....when I create a debian lenny domX it > doesn''t install udev package by default. > You know why?I can confirm you that Lenny comes with udev by default, this is exactly what renamed your eth0 into another one. By the way, the file you want to modify or delete in your dom0 is this one: /etc/udev/rules.d/75-persistent-net-generator.rules For your domU, you can install udev AFTER the VM is installed with debootstrap, once booted. But to me, if you are using xen-tools, then it is not doing their job well, pulling udev should have been the default. Did you try our dtc-xen? It also can bootstrap some VMs (but not only Debian, also NetBSD, Gentoo, Ubuntu, CentOS, etc.) and some appliances (only the Git version can do all this though, the current stable version in Debian has less possibilities). Thomas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2009/3/17 Thomas Goirand <thomas@goirand.fr>:> Mauro wrote: >> 2009/3/17 PCextreme B.V. - Wido den Hollander <wido@pcextreme.nl>: >>> I think you udev rules are wrong. >> >> I''m using debian lenny. >> I don''t understand why but....when I create a debian lenny domX it >> doesn''t install udev package by default. >> You know why? > > I can confirm you that Lenny comes with udev by default, this is exactly > what renamed your eth0 into another one.I''ve installed two domX with debian lenny and they was without udev package installed. I have to install udev package manually. Now I solved with xen-create-image --role udev.> > By the way, the file you want to modify or delete in your dom0 is this one: > > /etc/udev/rules.d/75-persistent-net-generator.rulesI have to delete this file? Why? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2009/3/17 Thomas Goirand <thomas@goirand.fr>:> Did you try our dtc-xen? It also can bootstrap some VMs (but not only > Debian, also NetBSD, Gentoo, Ubuntu, CentOS, etc.) and some appliances > (only the Git version can do all this though, the current stable version > in Debian has less possibilities).No, now I try it, I''m reading something about virt-manager. Do you know? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mauro wrote:> > By the way, the file you want to modify or delete in your dom0 is this one: >> >> /etc/udev/rules.d/75-persistent-net-generator.rules > >I have to delete this file? >Why?No, you don''t need to delete it - but if you do, it should be re-created and your network will default to eth0. If you look at this file, it has a list of interfaces (MAC addresses) that have been seen, and what name to give them. If you don''t fix the MAC address in the Xen config file, each time you boot a guest it will get a new MAC and the interface name will change. What you can do, is delete the lines except eth2, and change eth2 to eth0 - then in future (as long as the MAC address stays the same) your network will come up as eth0. -- Simon Hobson Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2009/3/17 Simon Hobson <linux@thehobsons.co.uk>:> What you can do, is delete the lines except eth2, and change eth2 to eth0 - > then in future (as long as the MAC address stays the same) your network > will come up as eth0.Substituting (network-scriptnetwork-bridge) with (network-script ''network-bridge netdev=eth2'') in xen-config-sxpI have no problems in running guest machines. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users