From: Mike Wray Subject: Re: [Fwd: bridging problem with Xen 2.0.1] Date: Mon, 29 Nov 2004 13:08:37 +0000 Message-ID: <41AB1F55.1020805@hpl.hp.com> References: <41AAFCBB.30605@wonderline.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <41AAFCBB.30605@wonderline.hu> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: =?ISO-8859-1?Q?P=E1sztor_L=E9n=E1rd_Zolt=E1n?= Cc: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org P=E1sztor L=E9n=E1rd Zolt=E1n wrote: >=20 > Hello, >=20 >=20 > I sent this mail (see attachement) to the=20 > zen-devel@lists.sourceforge.net address, > but there is no answer, and my email does not exist in the mail archive= . > What did I wrong? >=20 > (sorry for my english...) >=20 >=20 > -----------------------------------------------------------------------= - >=20 > Subject: > bridging problem with Xen 2.0.1 > From: > P=E1sztor L=E9n=E1rd Zolt=E1n > Date: > Fri, 26 Nov 2004 13:47:57 +0100 > To: > mailto:xen-devel@lists.sourceforge.net >=20 > To: > mailto:xen-devel@lists.sourceforge.net >=20 >=20 >=20 > Hi All! >=20 >=20 > I need to setup a virtual host with 2 virtual ethernet interface on=20 > separated bridge. > When the domain1 starts the second ethernet adapter does not connect to= the > domain0's second bridge. > When I try to add the interface manually I got an error message. > Can help somebody to me to solve this problem? >=20 >=20 > Domain0: >=20 > Debinan/GNU linux (sarge) > Xen 2.0.1 (with recompiled 2.6.9 kernel) >=20 > Domain1: > Debian/GNU linux (sarge) > Xen unmodified vmlinuz-2.6.9-xenU kernel >=20 > (when I compile unprivileged kernel I got the following message from=20 > build process: > CC arch/xen/i386/mm/ioremap.o > arch/xen/i386/mm/ioremap.c: In function `__ioremap': > arch/xen/i386/mm/ioremap.c:144: error:=20 > `isa_bus_to_virt_needs_PRIVILEGED_BUILD' undeclared (first use in this=20 > function) > arch/xen/i386/mm/ioremap.c:144: error: (Each undeclared identifier is=20 > reported only once > arch/xen/i386/mm/ioremap.c:144: error: for each function it appears in.= ) > arch/xen/i386/mm/ioremap.c: In function `bt_ioremap': > arch/xen/i386/mm/ioremap.c:280: error:=20 > `isa_bus_to_virt_needs_PRIVILEGED_BUILD' undeclared (first use in this=20 > function) > make[1]: *** [arch/xen/i386/mm/ioremap.o] Error 1 > make: *** [arch/xen/i386/mm] Error 2 > ) >=20 >=20 > Below the commands how I test it: >=20 > domain0:~# ifconfig xen-br0 10.10.254.254 netmask 255.255.0.0 broadcast= =20 > 10.10.255.255 up > domain0:~# ifconfig xen-br1 10.11.254.254 netmask 255.255.0.0 broadcast= =20 > 10.11.255.255 up > domain0:~# ifconfig > eth0 Link encap:Ethernet HWaddr 00:30:4F:13:DF:DD > inet addr:10.3.1.45 Bcast:10.3.255.255 Mask:255.255.0.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:4636 errors:0 dropped:0 overruns:0 frame:0 > TX packets:3055 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:421198 (411.3 KiB) TX bytes:565986 (552.7 KiB) > Interrupt:9 Base address:0xd400 >=20 > 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:3243 errors:0 dropped:0 overruns:0 frame:0 > TX packets:3243 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:222710 (217.4 KiB) TX bytes:222710 (217.4 KiB) >=20 > xen-br0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 > inet addr:10.10.254.254 Bcast:10.10.255.255 Mask:255.255.0.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:88 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:8675 (8.4 KiB) TX bytes:0 (0.0 b) >=20 > xen-br1 Link encap:Ethernet HWaddr 00:00:00:00:00:00 > inet addr:10.11.254.254 Bcast:10.11.255.255 Mask:255.255.0.0 > UP BROADCAST RUNNING 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:0 > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) >=20 >=20 > domain0:~# brctl show > bridge name bridge id STP enabled interfaces > xen-br0 8000.000000000000 no can't get port= =20 > info: Function not implemented > xen-br1 8000.000000000000 no can't get port= =20 > info: Function not implemented >=20 > domain0:~# route -n > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use= =20 > Iface > 10.3.0.0 0.0.0.0 255.255.0.0 U 0 0 0= =20 > eth0 > 10.10.0.0 0.0.0.0 255.255.0.0 U 0 0 0= =20 > xen-br0 > 10.11.0.0 0.0.0.0 255.255.0.0 U 0 0 0= =20 > xen-br1 > 0.0.0.0 10.3.0.2 0.0.0.0 UG 0 0 0= =20 > eth0 >=20 >=20 > Now starting a domain1 with this nic config: >=20 > nics =3D 2 >=20 > vif =3D [ 'mac=3Daa:00:00:00:00:11, bridge=3Dxen-br0', > 'mac=3Dbb:00:00:00:00:22, bridge=3Dxen-br1'] The second MAC addr is multicast (bit 1 on in first byte). Try a unicast MAC addr like aa:00:00:00:00:12 instead. >=20 >=20 > domain1:~$ ifconfig > eth0 Link encap:Ethernet HWaddr AA:00:00:00:00:11 > inet addr:10.10.10.1 Bcast:10.10.255.255 Mask:255.255.0.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:1 errors:0 dropped:0 overruns:0 frame:0 > TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:42 (42.0 b) TX bytes:116 (116.0 b) >=20 > eth1 Link encap:Ethernet HWaddr BB:00:00:00:00:22 > inet addr:10.11.10.1 Bcast:10.11.255.25 Mask:255.255.0.0 > UP BROADCAST RUNNING 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) >=20 > 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) >=20 > domain1:~$ route -n > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use= =20 > Iface > 10.10.0.0 0.0.0.0 255.255.0.0 U 0 0 0= =20 > eth0 > 10.11.0.0 0.0.0.0 255.255.0.0 U 0 0 0= =20 > eth1 > 0.0.0.0 10.10.254.254 0.0.0.0 UG 0 0 0= =20 > eth0 >=20 > domain0:~# ifconfig > eth0 Link encap:Ethernet HWaddr 00:30:4F:13:DF:DD > inet addr:10.3.1.45 Bcast:10.3.255.255 Mask:255.255.0.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:5115 errors:0 dropped:0 overruns:0 frame:0 > TX packets:3426 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:461687 (450.8 KiB) TX bytes:626631 (611.9 KiB) > Interrupt:9 Base address:0xd400 >=20 > 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:4524 errors:0 dropped:0 overruns:0 frame:0 > TX packets:4524 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:299113 (292.1 KiB) TX bytes:299113 (292.1 KiB) >=20 > vif4.0 Link encap:Ethernet HWaddr AA:00:01:00:00:11 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:21 errors:0 dropped:0 overruns:0 frame:0 > TX packets:15 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:1346 (1.3 KiB) TX bytes:1062 (1.0 KiB) >=20 > vif4.1 Link encap:Ethernet HWaddr BB:00:01:00:00:22 > UP BROADCAST RUNNING 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:0 > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) >=20 > xen-br0 Link encap:Ethernet HWaddr AA:00:01:00:00:11 > inet addr:10.10.254.254 Bcast:10.10.255.255 Mask:255.255.0.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:109 errors:0 dropped:0 overruns:0 frame:0 > TX packets:15 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:9727 (9.4 KiB) TX bytes:1062 (1.0 KiB) >=20 > xen-br1 Link encap:Ethernet HWaddr 00:00:00:00:00:00 > inet addr:10.11.254.254 Bcast:10.11.255.255 Mask:255.255.0.0 > UP BROADCAST RUNNING 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:0 > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) >=20 >=20 >=20 > domain0:~# brctl show > bridge name bridge id STP enabled interfaces > xen-br0 8000.aa0001000011 no vif4.0 > xen-br1 8000.000000000000 no can't get port= =20 > info: Function not implemented >=20 > Why vif4.1 not in xen-br1? Something must have gone wrong. What's the ouput from 'xm list -l' show? Also is there anything in /var/log/xend.log? > Let's add it manually... >=20 > domain0:~# brctl addif vif4.1 xen-br1 > can't add xen-br1 to bridge vif4.1: Operation not supported >=20 > It gives error message :( What is the problem? You've got the arguments round the wrong way, it should be brctl addif xen-br1 vif4.1 >=20 > Testing vif4.0... >=20 > domain0:~# ping 10.10.10.1 > PING 10.10.10.1 (10.10.10.1) 56(84) bytes of data. > 64 bytes from 10.10.10.1: icmp_seq=3D1 ttl=3D64 time=3D0.399 ms > 64 bytes from 10.10.10.1: icmp_seq=3D2 ttl=3D64 time=3D0.278 ms >=20 > --- 10.10.10.1 ping statistics --- > 2 packets transmitted, 2 received, 0% packet loss, time 1005ms > rtt min/avg/max/mdev =3D 0.278/0.338/0.399/0.063 ms >=20 > domain1:~$ ping 10.10.254.254 > PING 10.10.254.254 (10.10.254.254) 56(84) bytes of data. > 64 bytes from 10.10.254.254: icmp_seq=3D1 ttl=3D64 time=3D2.47 ms > 64 bytes from 10.10.254.254: icmp_seq=3D2 ttl=3D64 time=3D0.364 ms >=20 > --- 10.10.254.254 ping statistics --- > 2 packets transmitted, 2 received, 0% packet loss, time 1006ms > rtt min/avg/max/mdev =3D 0.364/1.417/2.470/1.053 ms >=20 > It's OK. >=20 > Testing vif4.1... > domain1:~$ ping 10.11.254.254 > PING 10.11.254.254 (10.11.254.254) 56(84) bytes of data. >=20 > --- 10.11.254.254 ping statistics --- > 1 packets transmitted, 0 received, 100% packet loss, time 0ms >=20 > domain0:~# tcpdump -i vif4.1 -n > tcpdump: WARNING: vif4.1: no IPv4 address assigned > tcpdump: verbose output suppressed, use -v or -vv for full protocol dec= ode > listening on vif4.1, link-type EN10MB (Ethernet), capture size 96 bytes > 11:11:49.011029 arp who-has 10.11.254.254 tell 10.11.10.1 > 11:11:50.010942 arp who-has 10.11.254.254 tell 10.11.10.1 > 11:11:51.010952 arp who-has 10.11.254.254 tell 10.11.10.1 >=20 > 3 packets captured > 3 packets received by filter > 0 packets dropped by kernel >=20 > So, the vif4.1 interface seems to be OK. >=20 > Other questions: >=20 > - When goes Xen 2.x to debian system? > - How can I define the nic name (vif) before I start a virtual machine? The vif device name in domain-0 is vif.. This is not changeable at the moment. If you need to do something with the device, you could use the vif-bridge script to do it, or configure another script. Mike ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/