Hi all, I export from dom0 and mount on the domU file system using nfs. dom0 exports /directory domU_eth0_ip(rw.... and domU mounts dom0_eth0_ip:/directory /home nfs tcp,rw 0 0 My question is, would the data transfer be faster if I used a dummy interface instead of using a 100mbs nic? If so, that means I''d have to setup a bridge for the two dummy interfaces or something like that, right? How is that done? Thanks. Chris. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Chris, Could you please post your network configuration (ifconfig is OK) in both Dom0 and DomU? It could also be helpful if you post your vif line in the DomU configuration file. Regards, Esteban On 6/20/06, Chris Fanning <christopher.fanning@gmail.com> wrote:> Hi all, > > I export from dom0 and mount on the domU file system using nfs. > dom0 exports > /directory domU_eth0_ip(rw.... > > and domU mounts > dom0_eth0_ip:/directory /home nfs tcp,rw 0 0 > > My question is, would the data transfer be faster if I used a dummy > interface instead of using a 100mbs nic? > If so, that means I''d have to setup a bridge for the two dummy > interfaces or something like that, right? How is that done? > > Thanks. > Chris. > > _______________________________________________ > 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
Hi Esteban,> Could you please post your network configuration (ifconfig is OK) in > both Dom0 and DomU? It could also be helpful if you post your vif line > in the DomU configuration file.Well, I haven''t actually tied to do this yet so that means I haven''t run into any problems either. :) I was just asking what you thought about the idea. Will I get a faster network connection between dom0 and domU using a dummy interface instead of a real nic? Cheers. Chris. On 6/21/06, Esteban Sancho <esteban.sancho@gmail.com> wrote:> Hi Chris, > > Could you please post your network configuration (ifconfig is OK) in > both Dom0 and DomU? It could also be helpful if you post your vif line > in the DomU configuration file. > > Regards, > > Esteban > > On 6/20/06, Chris Fanning <christopher.fanning@gmail.com> wrote: > > Hi all, > > > > I export from dom0 and mount on the domU file system using nfs. > > dom0 exports > > /directory domU_eth0_ip(rw.... > > > > and domU mounts > > dom0_eth0_ip:/directory /home nfs tcp,rw 0 0 > > > > My question is, would the data transfer be faster if I used a dummy > > interface instead of using a 100mbs nic? > > If so, that means I''d have to setup a bridge for the two dummy > > interfaces or something like that, right? How is that done? > > > > Thanks. > > Chris. > > > > _______________________________________________ > > 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
Hi Chris, I didn''t test that but think it''s a good oportunity for you to do so. :o) I suppose that performance should be better since data don''t have to go through all the TCP layers. Please let me know if you need any help configuring it. You''ll need to create a dummy interface in the Dom0 and configure a vif for the DomU pointing to the bridge xend creates when it''s started (something like xenbr0). Cheers, Esteban On 6/22/06, Chris Fanning <christopher.fanning@gmail.com> wrote:> Hi Esteban, > > > Could you please post your network configuration (ifconfig is OK) in > > both Dom0 and DomU? It could also be helpful if you post your vif line > > in the DomU configuration file. > > Well, I haven''t actually tied to do this yet so that means I haven''t > run into any problems either. :) > I was just asking what you thought about the idea. > > Will I get a faster network connection between dom0 and domU using a > dummy interface instead of a real nic? > > Cheers. > Chris. > > On 6/21/06, Esteban Sancho <esteban.sancho@gmail.com> wrote: > > Hi Chris, > > > > Could you please post your network configuration (ifconfig is OK) in > > both Dom0 and DomU? It could also be helpful if you post your vif line > > in the DomU configuration file. > > > > Regards, > > > > Esteban > > > > On 6/20/06, Chris Fanning <christopher.fanning@gmail.com> wrote: > > > Hi all, > > > > > > I export from dom0 and mount on the domU file system using nfs. > > > dom0 exports > > > /directory domU_eth0_ip(rw.... > > > > > > and domU mounts > > > dom0_eth0_ip:/directory /home nfs tcp,rw 0 0 > > > > > > My question is, would the data transfer be faster if I used a dummy > > > interface instead of using a 100mbs nic? > > > If so, that means I''d have to setup a bridge for the two dummy > > > interfaces or something like that, right? How is that done? > > > > > > Thanks. > > > Chris. > > > > > > _______________________________________________ > > > 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
Hi, Well, I''m ready to try this and here are my first problems. the box already has two physical nic. eth0 and eth1. these work fine. ***************************** So I do on dom0: /etc/network/interfaces auto dummy0 iface dummy0 inet static address 192.168.6.1 netmask 255.255.255.0 network 192.168.6.0 broadcast 192.168.6.255 /etc/xen/scripts/my-network-bridge #!/bin/bash case "$1" in start) /etc/xen/scripts/network-bridge start bridge=xenbr0 netdev=eth0 vifnum=0 antispoof=no /etc/xen/scripts/network-bridge start bridge=xenbr1 netdev=eth1 vifnum=1 antispoof=no /etc/xen/scripts/network-bridge start bridge=xenbr2 netdev=dummy0 vifnum=2 antispoof=no ;; stop) /etc/xen/scripts/network-bridge stop bridge=xenbr0 netdev=eth0 vifnum=0 /etc/xen/scripts/network-bridge stop bridge=xenbr1 netdev=eth1 vifnum=1 /etc/xen/scripts/network-bridge stop bridge=xenbr2 netdev=dummy0 vifnum=2 ;; restart) $0 stop $0 start ;; *) echo "usage: $0 {start|stop|restart}" esac exit 0 /etc/xen/desktopU kernel = "/boot/vmlinuz-2.6.16-xen" ramdisk = "/boot/initrd-xen-3.0.2-2.img" memory = 700 name = "desktopU" vcpus = 2 disk = [''phy:/dev/sdc1,hda1,w'',''phy:/dev/sdb5,hda2,w''] root = "/dev/hda1 ro" extra = "4" vif = [''bridge=xenbr0'',''bridge=xenbr1'',''bridge=xenbr2''] ***************************** and on domU /etc/network/interfaces auto dummy0 iface dummy0 inet static address 192.168.6.2 netmask 255.255.255.0 network 192.168.6.0 broadcast 192.168.6.255 # I''ve also tried addind "bridge_ports xenbr2" ******************** on dom0 #brctl show bridge name bridge id STP enabled interfaces xenbr0 8000.feffffffffff no vif2.0 peth0 vif0.0 xenbr1 8000.feffffffffff no vif2.1 peth1 vif0.1 xenbr2 8000.feffffffffff no vif2.2 pdummy0 vif0.2 #ip add sh dummy0 7: dummy0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue link/ether 66:a8:9d:81:4b:51 brd ff:ff:ff:ff:ff:ff inet 192.168.6.1/24 brd 192.168.6.255 scope global dummy0 and on domU # ip add sh dummy0 21: dummy0: <BROADCAST,NOARP,UP> mtu 1500 qdisc noqueue link/ether 56:f9:d9:50:d3:87 brd ff:ff:ff:ff:ff:ff inet 192.168.6.2/24 brd 192.168.6.255 scope global dummy0 I think that looks ok. But I can''t ping between them. Any suggestions? Cheers. Chris. On 6/23/06, Esteban Sancho <esteban.sancho@gmail.com> wrote:> Hi Chris, > > I didn''t test that but think it''s a good oportunity for you to do so. :o) > > I suppose that performance should be better since data don''t have to > go through all the TCP layers. > > Please let me know if you need any help configuring it. You''ll need to > create a dummy interface in the Dom0 and configure a vif for the DomU > pointing to the bridge xend creates when it''s started (something like > xenbr0). > > Cheers, > > Esteban > > On 6/22/06, Chris Fanning <christopher.fanning@gmail.com> wrote: > > Hi Esteban, > > > > > Could you please post your network configuration (ifconfig is OK) in > > > both Dom0 and DomU? It could also be helpful if you post your vif line > > > in the DomU configuration file. > > > > Well, I haven''t actually tied to do this yet so that means I haven''t > > run into any problems either. :) > > I was just asking what you thought about the idea. > > > > Will I get a faster network connection between dom0 and domU using a > > dummy interface instead of a real nic? > > > > Cheers. > > Chris. > > > > On 6/21/06, Esteban Sancho <esteban.sancho@gmail.com> wrote: > > > Hi Chris, > > > > > > Could you please post your network configuration (ifconfig is OK) in > > > both Dom0 and DomU? It could also be helpful if you post your vif line > > > in the DomU configuration file. > > > > > > Regards, > > > > > > Esteban > > > > > > On 6/20/06, Chris Fanning <christopher.fanning@gmail.com> wrote: > > > > Hi all, > > > > > > > > I export from dom0 and mount on the domU file system using nfs. > > > > dom0 exports > > > > /directory domU_eth0_ip(rw.... > > > > > > > > and domU mounts > > > > dom0_eth0_ip:/directory /home nfs tcp,rw 0 0 > > > > > > > > My question is, would the data transfer be faster if I used a dummy > > > > interface instead of using a 100mbs nic? > > > > If so, that means I''d have to setup a bridge for the two dummy > > > > interfaces or something like that, right? How is that done? > > > > > > > > Thanks. > > > > Chris. > > > > > > > > _______________________________________________ > > > > 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
ok. the interface on domU isn''t called dummy0. It is called eth2 On 7/10/06, Chris Fanning <christopher.fanning@gmail.com> wrote:> Hi, > > Well, I''m ready to try this and here are my first problems. > the box already has two physical nic. eth0 and eth1. these work fine. > > ***************************** > So I do on dom0: > > /etc/network/interfaces > auto dummy0 > iface dummy0 inet static > address 192.168.6.1 > netmask 255.255.255.0 > network 192.168.6.0 > broadcast 192.168.6.255 > > /etc/xen/scripts/my-network-bridge > #!/bin/bash > case "$1" in > start) > /etc/xen/scripts/network-bridge start bridge=xenbr0 > netdev=eth0 vifnum=0 antispoof=no > /etc/xen/scripts/network-bridge start bridge=xenbr1 > netdev=eth1 vifnum=1 antispoof=no > /etc/xen/scripts/network-bridge start bridge=xenbr2 > netdev=dummy0 vifnum=2 antispoof=no > ;; > stop) > /etc/xen/scripts/network-bridge stop bridge=xenbr0 > netdev=eth0 vifnum=0 > /etc/xen/scripts/network-bridge stop bridge=xenbr1 > netdev=eth1 vifnum=1 > /etc/xen/scripts/network-bridge stop bridge=xenbr2 > netdev=dummy0 vifnum=2 > ;; > restart) > $0 stop > $0 start > ;; > *) > echo "usage: $0 {start|stop|restart}" > esac > exit 0 > > > /etc/xen/desktopU > kernel = "/boot/vmlinuz-2.6.16-xen" > ramdisk = "/boot/initrd-xen-3.0.2-2.img" > memory = 700 > name = "desktopU" > vcpus = 2 > > disk = [''phy:/dev/sdc1,hda1,w'',''phy:/dev/sdb5,hda2,w''] > root = "/dev/hda1 ro" > extra = "4" > vif = [''bridge=xenbr0'',''bridge=xenbr1'',''bridge=xenbr2''] > > > ***************************** > and on domU > > /etc/network/interfaces > auto dummy0 > iface dummy0 inet static > address 192.168.6.2 > netmask 255.255.255.0 > network 192.168.6.0 > broadcast 192.168.6.255 > # I''ve also tried addind "bridge_ports xenbr2" > ******************** > > on dom0 > #brctl show > bridge name bridge id STP enabled interfaces > xenbr0 8000.feffffffffff no vif2.0 > peth0 > vif0.0 > xenbr1 8000.feffffffffff no vif2.1 > peth1 > vif0.1 > xenbr2 8000.feffffffffff no vif2.2 > pdummy0 > vif0.2 > > #ip add sh dummy0 > 7: dummy0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue > link/ether 66:a8:9d:81:4b:51 brd ff:ff:ff:ff:ff:ff > inet 192.168.6.1/24 brd 192.168.6.255 scope global dummy0 > > > and on domU > # ip add sh dummy0 > 21: dummy0: <BROADCAST,NOARP,UP> mtu 1500 qdisc noqueue > link/ether 56:f9:d9:50:d3:87 brd ff:ff:ff:ff:ff:ff > inet 192.168.6.2/24 brd 192.168.6.255 scope global dummy0 > > > I think that looks ok. > But I can''t ping between them. > > Any suggestions? > > Cheers. > Chris. > > > > On 6/23/06, Esteban Sancho <esteban.sancho@gmail.com> wrote: > > Hi Chris, > > > > I didn''t test that but think it''s a good oportunity for you to do so. :o) > > > > I suppose that performance should be better since data don''t have to > > go through all the TCP layers. > > > > Please let me know if you need any help configuring it. You''ll need to > > create a dummy interface in the Dom0 and configure a vif for the DomU > > pointing to the bridge xend creates when it''s started (something like > > xenbr0). > > > > Cheers, > > > > Esteban > > > > On 6/22/06, Chris Fanning <christopher.fanning@gmail.com> wrote: > > > Hi Esteban, > > > > > > > Could you please post your network configuration (ifconfig is OK) in > > > > both Dom0 and DomU? It could also be helpful if you post your vif line > > > > in the DomU configuration file. > > > > > > Well, I haven''t actually tied to do this yet so that means I haven''t > > > run into any problems either. :) > > > I was just asking what you thought about the idea. > > > > > > Will I get a faster network connection between dom0 and domU using a > > > dummy interface instead of a real nic? > > > > > > Cheers. > > > Chris. > > > > > > On 6/21/06, Esteban Sancho <esteban.sancho@gmail.com> wrote: > > > > Hi Chris, > > > > > > > > Could you please post your network configuration (ifconfig is OK) in > > > > both Dom0 and DomU? It could also be helpful if you post your vif line > > > > in the DomU configuration file. > > > > > > > > Regards, > > > > > > > > Esteban > > > > > > > > On 6/20/06, Chris Fanning <christopher.fanning@gmail.com> wrote: > > > > > Hi all, > > > > > > > > > > I export from dom0 and mount on the domU file system using nfs. > > > > > dom0 exports > > > > > /directory domU_eth0_ip(rw.... > > > > > > > > > > and domU mounts > > > > > dom0_eth0_ip:/directory /home nfs tcp,rw 0 0 > > > > > > > > > > My question is, would the data transfer be faster if I used a dummy > > > > > interface instead of using a 100mbs nic? > > > > > If so, that means I''d have to setup a bridge for the two dummy > > > > > interfaces or something like that, right? How is that done? > > > > > > > > > > Thanks. > > > > > Chris. > > > > > > > > > > _______________________________________________ > > > > > 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
> On 7/10/06, Chris Fanning <christopher.fanning@gmail.com> wrote: >> Hi, >> >> Well, I''m ready to try this and here are my first problems. >> the box already has two physical nic. eth0 and eth1. these work fine. >> >> ***************************** >> So I do on dom0: >> >> /etc/network/interfaces >> auto dummy0 >> iface dummy0 inet static >> address 192.168.6.1 >> netmask 255.255.255.0 >> network 192.168.6.0 >> broadcast 192.168.6.255 >> >> /etc/xen/scripts/my-network-bridge >> #!/bin/bash >> case "$1" in >> start) >> /etc/xen/scripts/network-bridge start bridge=xenbr0 >> netdev=eth0 vifnum=0 antispoof=no >> /etc/xen/scripts/network-bridge start bridge=xenbr1 >> netdev=eth1 vifnum=1 antispoof=no >> /etc/xen/scripts/network-bridge start bridge=xenbr2 >> netdev=dummy0 vifnum=2 antispoof=no >> ;; >> stop) >> /etc/xen/scripts/network-bridge stop bridge=xenbr0 >> netdev=eth0 vifnum=0 >> /etc/xen/scripts/network-bridge stop bridge=xenbr1 >> netdev=eth1 vifnum=1 >> /etc/xen/scripts/network-bridge stop bridge=xenbr2 >> netdev=dummy0 vifnum=2 >> ;; >> restart) >> $0 stop >> $0 start >> ;; >> *) >> echo "usage: $0 {start|stop|restart}" >> esac >> exit 0Alternatively, you could just skip the my-network-bridge custom script and put it all in /etc/network/interfaces. For example: auto eth0 iface eth0 inet manual pre-up ip link set eth1 addr fe:ff:ff:ff:ff arp off auto xenbr0 iface xenbr0 inet manual bridge_ports eth0 bridge_stp off bridge_fd 0 auto eth1 iface eth1 inet manual pre-up ip link set eth1 addr fe:ff:ff:ff:ff arp off auto xenbr1 iface xenbr1 inet manual bridge_ports eth1 bridge_stp off bridge_fd 0 auto dummy0 iface dummy0 inet static address 192.168.6.1 netmask 255.255.255.0 network 192.168.6.0 broadcast 192.168.6.255 auto xenbr2 iface xenbr2 inet manual bridge_ports dummy0 bridge_stp off bridge_fd 0 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users