Michele Menciassi
2007-May-08 10:31 UTC
[Xen-users] help with xen instalolation on debion ecth
Hello, i''ve an HP proliant dl385g2 server with AMD64 Opteron processor. i''ve rightly installed Debian Ecth and configured as Dom0. I''ve installed the package via apt. well i would install 7 virtual server... one as mail server, one as db mysql server, 5 as web server. i''m installed my first DomU. i''ve created a LVM with my first DomU, is a Debian Ecth too... i''ve followed this page instructions... http://wiki.xensource.com/xenwiki/DebianDomU the Dom0 network work right... but if i connetted with console to my DomU the network don''t work... :( i''ve connected with the command #xm console myDomUname after login if i try # apt-get update .... index files failed to download .... if i try # ifconfig i''ve that output 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) i''ve no interface up... it''s right? in xend-config.sxp i''ve (network-script network-bridge) (vif-script vif-bridge) it''s right? in myDomUname.conf i''ve setted dhcp="dhcp" after i try to assign a static ip with ip="192.168.1.211" gateway ="192.168.1.1" netmask="255.255.255.0" but don''t work anyway ... :( somebody can help me to set right configuration of network of my Server? thanks Michele _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Iñaki Baz Castillo
2007-May-08 10:52 UTC
Re: [Xen-users] help with xen instalolation on debion ecth
El Tuesday 08 May 2007 12:31:07 Michele Menciassi escribió:> # ifconfig > i''ve that output > 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) > > i''ve no interface up... it''s right?Do the following: ~# cat /proc/net/dev and see there which eth devices exist. It''s really possible that the number is eth3 o eth14 and there is a reason for that: udev and no-mac associated to domU internal eth. I explain it: With udev and udev rules when a new dev (new MAC) is detected the system uses a NEW ethX because there is an association MAC-ethX in: /etc/udev/rules.d (see "25-iftab.rules" o "z25-net.rules"): ----------- # This file causes network devices to be assigned consistent names. # See udev(8) for syntax. SUBSYSTEM=="net", ACTION=="add", DRIVER=="?*", \ PROGRAM="iftab_helper %k", NAME="$result" ------------ So it''s possible that you have in that file more that one MAC detected so more than one eth created. In Debian Etch, when upgrading "udev" is installed so udev rules start working. To solve it the best option is to assign a MAC to your domU interface. So edit your /etc/xen/vm.cfg file: vif = [ ''ip=192.168.1.241, mac=00:16:3e:60:73:3d'' ] Note that there is a range of MAC that you can use for Xen virtual machines (I don''t knoiw it exactly). Regards. -- *Iñaki Baz Castillo* ibc@in.ilimit.es _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Iñaki Baz Castillo
2007-May-08 10:57 UTC
Re: [Xen-users] help with xen instalolation on debion ecth
El Tuesday 08 May 2007 12:52:53 Iñaki Baz Castillo escribió:> With udev and udev rules when a new dev (new MAC) is detected the system > uses a NEW ethX because there is an association MAC-ethX in: > /etc/udev/rules.d (see "25-iftab.rules" o "z25-net.rules"):I forgot to say that the problem is because Xen assignes a dynamic MAC to domU interfaces if they have not fixed MAC associated in their configuration. -- *Iñaki Baz Castillo* ibc@in.ilimit.es _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Iñaki Baz Castillo
2007-May-08 11:45 UTC
Re: [Xen-users] help with xen instalolation on debion ecth
El Tuesday 08 May 2007 13:37:30 escribió:> Thank for your answer i''ve tried to set a static mac address for my DomU... > but i have the same problem to use network into DomU. > > i put > > vif = [ ''ip=192.168.1.211, mac=00:16:00:00:00:01'' ] > into my DomU config fileI''m not sure that the MAC you have put it allowed in Xen. Try with 00:16:3e:60:73:3d instead and probe again.> i restarted my server... but... > now when i enter in DomU console (xm console myDomUname) > > i''ve the follow message: > > netfront:device eth0 has flipping receive pathHumm, not idea about it :( but similar errors appear in Google, try it ;)> if i do the following: > > # cat /proc/net/dev > i see that i''ve > lo and eth0 too > > but if i do > # ifconfig > i see only lo and no other interfaceWhat does occur if you do in domU: # ifconfig eth0 192.168.1.1 netmask 255.255.255.0 -- ilimit... *Iñaki Baz Castillo* ibc@in.ilimit.es ÀREA SISTEMES 0034 937 333 375 VOLTA 1, PIS 5 08224 TERRASSA.BCN Aquest enviament és confidencial i està destinat únicament a la persona a qui s''ha enviat. Pot contenir informació privada sotmesa al secret professional, la distribució de la qual està prohibida per la legislació vigent. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Michele Menciassi
2007-May-08 11:48 UTC
Re: [Xen-users] help with xen instalolation on debion ecth
Thank for your answer i''ve tried to set a static mac address for my DomU... but i have the same problem to use network into DomU. i put vif = [ ''ip=192.168.1.211, mac=00:16:00:00:00:01'' ] into my DomU config file i restarted my server... but... now when i enter in DomU console (xm console myDomUname) i''ve the follow message: netfront:device eth0 has flipping receive path if i do the following: # cat /proc/net/dev i see that i''ve lo and eth0 too but if i do # ifconfig i see only lo and no other interface what kind of error i do in configuration? :( _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Michele Menciassi
2007-May-08 13:55 UTC
Re: [Xen-users] help with xen instalolation on debian ecth
Iñaki Baz Castillo
2007-May-08 14:07 UTC
Re: [Xen-users] help with xen instalolation on debian ecth
El Tuesday 08 May 2007 15:55:39 Michele Menciassi escribió:> It''s not an error, just an informational statement. > > If you want to try the ''copying receive path'', place ''xennet.rx_copy'' on > your domU kernel command line. > > What meaning exactly? > > ''copying receive path'', place ''xennet.rx_copy'' on > your domU kernel command lineYes, I found that too but dont'' understand what it means. :(> i see that at boot of DomU there is a fatal error... > modules /lib/modules/2.6.18-4-xen-vserver-amd64 > isn''t founded at bootVerify if the kernel assigned to domU in its /etc/xen/vm.cfg and initrd image exist in fact in dom0 /boot/ directory. And verify if the /lib/modules/2.6.18-4-xen-vserver-amd64 directory exists in domU. Do they?> > What does occur if you do in domU: > > > > # ifconfig eth0 192.168.1.1 netmask 255.255.255.0 > > if i do that... ifconfig show eth0 interface... > but i can''t use the network... ping don''t work... apt don''t work...Try uncommenting the following in /etc/network/interfaces: # post-up ethtool -K eth0 tx off # # The commented out line above will disable TCP checksumming which # might resolve problems for some users. It is disabled by default # -- Iñaki Baz Castillo ibc@in.ilimit.es _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users