Hi all, I''ve installed latest xen (3.0) on a clean box under gentoo (32bits). Dom 0 boots fine. DomUs also. trouble is that i cannot get networking to work between Dom)/DomU in any way :( (there are no afaik abnormal stuff in xen log btw) i also updated /etc/xen/scripts/network-bridge to work under gentoo as stated i de -devel ML. bellow are my configs. Any help hint would be greatly appreciated. /etc/xen/xend-config.sxp # Xend configuration file. (xend-port 8000) (xend-event-port 8001) (xend-address ''localhost'') (console-port-base 9600) (console-address ''localhost'') #(network-script network-route) #(vif-script vif-route) (network-script network-bridge) (vif-bridge xen-br0) (vif-script vif-bridge) (vif-antispoof no) (block-file block-file) (block-enbd block-enbd) (dom0-min-mem 0) (dom0-cpus 0) ____ DomU config kernel = "/boot/vmlinux-syms-2.6.12-xenU" memory = 2048 name = "g2" # dhcp = "dhcp" nics = 1 #ip = "192.168.10.190/28 <http://192.168.10.190/28>" ip = "off" vif = [ ''mac=aa:bb:cc:dd:ee:01'', ''bridge=xen-br0'' ] disk = [ ''phy:/dev/sdd1,sda1,w'' , ''phy:/dev/sdh1,sda10,w'' , ''phy:/dev/sdi1,sda11,w'' ] on Dom 0... osiris tree # ifconfig eth0 Link encap:Ethernet HWaddr 00:E0:81:2C:71:E6 inet addr:192.168.10.188 <http://192.168.10.188> Bcast:192.168.10.255<http://192.168.10.255>Mask: 255.255.255.0 <http://255.255.255.0> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3047 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:285049 (278.3 Kb) TX bytes:0 (0.0 b) lo Link encap:Local Loopback inet addr:127.0.0.1 <http://127.0.0.1> Mask:255.0.0.0 <http://255.0.0.0> UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:614 (614.0 b) TX bytes:614 (614.0 b) peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:53953 errors:0 dropped:0 overruns:0 frame:0 TX packets:4832 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4323826 (4.1 Mb) TX bytes:3737539 (3.5 Mb) Interrupt:24 vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:493 errors:0 dropped:0 overruns:0 frame:0 TX packets:49854 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:82755 (80.8 Kb) TX bytes:3787362 (3.6 Mb) xen-br0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet addr:192.168.10.188 <http://192.168.10.188> Bcast:192.168.10.255<http://192.168.10.255>Mask: 255.255.255.0 <http://255.255.255.0> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:7293 errors:0 dropped:0 overruns:0 frame:0 TX packets:4374 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:563051 (549.8 Kb) TX bytes:3652132 (3.4 Mb) osiris # brctl show bridge name bridge id STP enabled interfaces xen-br0 8000.feffffffffff no peth0 vif0.0 brctl showmacs xen-br0 port no mac addr is local? ageing timer 2 00:00:1d:f4:c7:69 no 0.00 2 00:60:08:f6:03:bf no 273.79 2 00:e0:63:02:0e:c0 no 4.94 2 00:e0:63:02:1f:c0 no 7.93 2 00:e0:63:03:17:c0 no 2.94 2 00:e0:63:03:1d:00 no 7.93 2 00:e0:63:03:1f:c0 no 9.92 2 00:e0:63:03:b1:40 no 4.94 2 00:e0:63:03:df:40 no 5.94 2 00:e0:63:03:e3:00 no 0.95 2 00:e0:63:09:c7:2f no 0.33 2 00:e0:63:0a:8e:00 no 0.53 2 00:e0:63:0a:92:00 no 1.94 2 00:e0:63:0a:99:c0 no 0.95 2 00:e0:63:37:73:8e no 8.92 1 fe:ff:ff:ff:ff:ff yes 0.00 Many thanxs in advance and have a nice weekend. ALl the best. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I''ve seen the same problem on Gentoo and RedHat Fedora Core 4. Actually the latest xen kernel crashes, had to roll back one version. I either get no networking in XenU, or working in XenU and nothing in Xen0, or nothing between the two. Gentoo has another problem that the network-bridge scripts rely on ifup and ifdown and these are not part of the distribution. -- Steve-o _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tuesday 04 October 2005 14:46, Steven McCoy wrote:> Gentoo has another problem that the network-bridge scripts rely on ifup and > ifdown and these are not part of the distribution. >Gentoo already provides means to configure a bridge, so you don''t have to use the example script provided by xen to do that. thats how I''ve set it up here: # ls -la /etc/init.d/net.br* lrwxrwxrwx 1 root root 6 Jul 4 17:01 /etc/init.d/net.br0 -> net.lo lrwxrwxrwx 1 root root 6 Jul 4 17:01 /etc/init.d/net.br1 -> net.lo in /etc/conf.d/net: bridge_br0="eth0" bridge_br1="eth1" config_eth0=( "null" ) config_eth1=( "null" ) config_br0=( "192.168.0.12/24" ) config_br1=( "192.168.1.144/24" ) brctl_br0=( "setfd 0" "sethello 0" "stp off" ) brctl_br1=( "setfd 0" "sethello 0" "stp off" ) routes_br0=( "default via 192.168.0.1" ) routes_br1=( "default via 192.168.1.1" ) in the domU config files: vif = [ ''mac=aa:de:ad:be:ef:31, bridge=br0'' ] /Ernst _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
How do you set up your internet connection? Or is it one of those? I have the joys of static IPs for each computer assigned via DHCP and I''d like to adapt your config, as it''s the most elegant way of doing it that I''ve seen on gentoo. Do you have to call any other scripts on domU startup to, for example, start virtual interfaces? Is there a document somewhere that deals with Xen and Gentoo''s networking? Thanks in advance, -Daniel Nelson On 10/4/05, Ernst Bachmann <e.bachmann@xebec.de> wrote:> On Tuesday 04 October 2005 14:46, Steven McCoy wrote: > > > Gentoo has another problem that the network-bridge scripts rely on ifup and > > ifdown and these are not part of the distribution. > > > Gentoo already provides means to configure a bridge, so you don''t have to use > the example script provided by xen to do that. > > thats how I''ve set it up here: > > # ls -la /etc/init.d/net.br* > lrwxrwxrwx 1 root root 6 Jul 4 17:01 /etc/init.d/net.br0 -> net.lo > lrwxrwxrwx 1 root root 6 Jul 4 17:01 /etc/init.d/net.br1 -> net.lo > > in /etc/conf.d/net: > bridge_br0="eth0" > bridge_br1="eth1" > config_eth0=( "null" ) > config_eth1=( "null" ) > config_br0=( "192.168.0.12/24" ) > config_br1=( "192.168.1.144/24" ) > > brctl_br0=( "setfd 0" "sethello 0" "stp off" ) > brctl_br1=( "setfd 0" "sethello 0" "stp off" ) > > routes_br0=( > "default via 192.168.0.1" > ) > routes_br1=( > "default via 192.168.1.1" > ) > > in the domU config files: > vif = [ ''mac=aa:de:ad:be:ef:31, bridge=br0'' ] > > /Ernst > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- "If the English language made any sense, lackadaisical would have something to do with a shortage of flowers." --Doug Larson _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tuesday 04 October 2005 17:25, Daniel Nelson wrote:> How do you set up your internet connection? Or is it one of those? I > have the joys of static IPs for each computer assigned via DHCP and > I''d like to adapt your config, as it''s the most elegant way of doing > it that I''ve seen on gentoo. Do you have to call any other scripts on > domU startup to, for example, start virtual interfaces? Is there a > document somewhere that deals with Xen and Gentoo''s networking? >Well, basically put all options you had in config_eth0, routes_eth0, ... into config_br0, routes_br0 and so on. in your case its prolly config_br0=("dhcp"). don''t forget to rc-config add net.br0 after creating a net.br0->net.lo symlink in /etc/init.d the bridge "inherits" the MAC of the first eth device attached, so the dhcp client should be able to get the IP config just fine. for the xen config: I havn''t disabled the network / bridging scripts there, those are smart enough to not foobar the config when the bridge in question is already up. Not sure if there''s a problem in disabling them. I haven''t found any usefull documentation for Xen/Gentoo yet, but also didn''t have a reason to look for one. I''ve basically choosen that way cause my desktop box, where I tried xen first, already had a bridge fully configured and running for use with bluetooth pan, and I simply reused that bridge for the domU. /Ernst _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
hi have you had any joy in getting your networking running between dom0 and U. I am having the same problem but have been unsuccessful in finding any doco or answers. Regards Andrew Hi all, I''ve installed latest xen (3.0) on a clean box under gentoo (32bits). Dom 0 boots fine. DomUs also. trouble is that i cannot get networking to work between Dom)/DomU in any way :( (there are no afaik abnormal stuff in xen log btw) i also updated /etc/xen/scripts/network-bridge to work under gentoo as stated i de -devel ML. bellow are my configs. Any help hint would be greatly appreciated. /etc/xen/xend-config.sxp # Xend configuration file. (xend-port 8000) (xend-event-port 8001) (xend-address ''localhost'') (console-port-base 9600) (console-address ''localhost'') #(network-script network-route) #(vif-script vif-route) (network-script network-bridge) (vif-bridge xen-br0) (vif-script vif-bridge) (vif-antispoof no) (block-file block-file) (block-enbd block-enbd) (dom0-min-mem 0) (dom0-cpus 0) ____ DomU config kernel = "/boot/vmlinux-syms-2.6.12-xenU" memory = 2048 name = "g2" # dhcp = "dhcp" nics = 1 #ip = "192.168.10.190/28" ip = "off" vif = [ ''mac=aa:bb:cc:dd:ee:01'', ''bridge=xen-br0'' ] disk = [ ''phy:/dev/sdd1,sda1,w'' , ''phy:/dev/sdh1,sda10,w'' , ''phy:/dev/sdi1,sda11,w'' ] on Dom 0... osiris tree # ifconfig eth0 Link encap:Ethernet HWaddr 00:E0:81:2C:71:E6 inet addr:192.168.10.188 Bcast:192.168.10.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3047 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:285049 (278.3 Kb) 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:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:614 (614.0 b) TX bytes:614 (614.0 b) peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:53953 errors:0 dropped:0 overruns:0 frame:0 TX packets:4832 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4323826 (4.1 Mb) TX bytes:3737539 (3.5 Mb) Interrupt:24 vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:493 errors:0 dropped:0 overruns:0 frame:0 TX packets:49854 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:82755 (80.8 Kb) TX bytes:3787362 (3.6 Mb) xen-br0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet addr:192.168.10.188 Bcast:192.168.10.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:7293 errors:0 dropped:0 overruns:0 frame:0 TX packets:4374 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:563051 (549.8 Kb) TX bytes:3652132 (3.4 Mb) osiris # brctl show bridge name bridge id STP enabled interfaces xen-br0 8000.feffffffffff no peth0 vif0.0 brctl showmacs xen-br0 port no mac addr is local? ageing timer 2 00:00:1d:f4:c7:69 no 0.00 2 00:60:08:f6:03:bf no 273.79 2 00:e0:63:02:0e:c0 no 4.94 2 00:e0:63:02:1f:c0 no 7.93 2 00:e0:63:03:17:c0 no 2.94 2 00:e0:63:03:1d:00 no 7.93 2 00:e0:63:03:1f:c0 no 9.92 2 00:e0:63:03:b1:40 no 4.94 2 00:e0:63:03:df:40 no 5.94 2 00:e0:63:03:e3:00 no 0.95 2 00:e0:63:09:c7:2f no 0.33 2 00:e0:63:0a:8e:00 no 0.53 2 00:e0:63:0a:92:00 no 1.94 2 00:e0:63:0a:99:c0 no 0.95 2 00:e0:63:37:73:8e no 8.92 1 fe:ff:ff:ff:ff:ff yes 0.00 Many thanxs in advance and have a nice weekend. ALl the best. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
hi all. In the end it was all resumed to a PATH problem in ... /etc/xen/scripts/vif-bridge. It happens that brctl and ifconfig are sillenly dying with xen original config due to not being in the expected PATH. replacing (in /etc/xen/scripts/vif-bridge) brctl by /sbin/brctl and ifconfig by /sbin/ifconfig solved everything. I have now xen running smoothly and stably and a dual opteron (tyan 2882) with 10GB of RAM. Best regards. On 10/6/05, Andrew Olds <aolds@xtra.co.nz> wrote:> > hi have you had any joy in getting your networking running between dom0 > and U. I am having the same problem but have been unsuccessful in finding > any doco or answers. > > Regards > Andrew > > > Hi all, > > I''ve installed latest xen (3.0) on a clean box under gentoo (32bits). Dom > 0 boots fine. DomUs also. trouble is that i cannot get networking to work > between Dom)/DomU in any way :( (there are no afaik abnormal stuff in xen > log btw) > > i also updated /etc/xen/scripts/network-bridge to work under gentoo as > stated i de -devel ML. > > bellow are my configs. > > Any help hint would be greatly appreciated. > > > /etc/xen/xend-config.sxp > > # Xend configuration file. > (xend-port 8000) > (xend-event-port 8001) > (xend-address ''localhost'') > (console-port-base 9600) > (console-address ''localhost'') > #(network-script network-route) > #(vif-script vif-route) > (network-script network-bridge) > (vif-bridge xen-br0) > (vif-script vif-bridge) > (vif-antispoof no) > (block-file block-file) > (block-enbd block-enbd) > (dom0-min-mem 0) > (dom0-cpus 0) > ____ > > DomU config > > kernel = "/boot/vmlinux-syms-2.6.12-xenU" > memory = 2048 > name = "g2" > # dhcp = "dhcp" > nics = 1 > #ip = "192.168.10.190/28 <http://192.168.10.190/28>" > ip = "off" > vif = [ ''mac=aa:bb:cc:dd:ee:01'', ''bridge=xen-br0'' ] > disk = [ ''phy:/dev/sdd1,sda1,w'' , ''phy:/dev/sdh1,sda10,w'' , > ''phy:/dev/sdi1,sda11,w'' ] > > > on Dom 0... > > osiris tree # ifconfig > eth0 Link encap:Ethernet HWaddr 00:E0:81:2C:71:E6 > inet addr:192.168.10.188 <http://192.168.10.188> Bcast:192.168.10.255<http://192.168.10.255>Mask: > 255.255.255.0 <http://255.255.255.0> > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:3047 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:285049 (278.3 Kb) TX bytes:0 (0.0 b) > > lo Link encap:Local Loopback > inet addr:127.0.0.1 <http://127.0.0.1> Mask:255.0.0.0 <http://255.0.0.0> > UP LOOPBACK RUNNING MTU:16436 Metric:1 > RX packets:4 errors:0 dropped:0 overruns:0 frame:0 > TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:614 (614.0 b) TX bytes:614 (614.0 b) > > peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1 > RX packets:53953 errors:0 dropped:0 overruns:0 frame:0 > TX packets:4832 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:4323826 (4.1 Mb) TX bytes:3737539 (3.5 Mb) > Interrupt:24 > > vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:493 errors:0 dropped:0 overruns:0 frame:0 > TX packets:49854 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:82755 (80.8 Kb) TX bytes:3787362 (3.6 Mb) > > xen-br0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > inet addr:192.168.10.188 <http://192.168.10.188> Bcast:192.168.10.255<http://192.168.10.255>Mask: > 255.255.255.0 <http://255.255.255.0> > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:7293 errors:0 dropped:0 overruns:0 frame:0 > TX packets:4374 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:563051 (549.8 Kb) TX bytes:3652132 (3.4 Mb) > > > osiris # brctl show > bridge name bridge id STP enabled interfaces > xen-br0 8000.feffffffffff no peth0 > vif0.0 > > brctl showmacs xen-br0 > port no mac addr is local? ageing timer > 2 00:00:1d:f4:c7:69 no 0.00 > 2 00:60:08:f6:03:bf no 273.79 > 2 00:e0:63:02:0e:c0 no 4.94 > 2 00:e0:63:02:1f:c0 no 7.93 > 2 00:e0:63:03:17:c0 no 2.94 > 2 00:e0:63:03:1d:00 no 7.93 > 2 00:e0:63:03:1f:c0 no 9.92 > 2 00:e0:63:03:b1:40 no 4.94 > 2 00:e0:63:03:df:40 no 5.94 > 2 00:e0:63:03:e3:00 no 0.95 > 2 00:e0:63:09:c7:2f no 0.33 > 2 00:e0:63:0a:8e:00 no 0.53 > 2 00:e0:63:0a:92:00 no 1.94 > 2 00:e0:63:0a:99:c0 no 0.95 > 2 00:e0:63:37:73:8e no 8.92 > 1 fe:ff:ff:ff:ff:ff yes 0.00 > > > Many thanxs in advance and have a nice weekend. > > ALl the best. > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users