Hi! I have a problem setting up cluster of w2k3 servers. My configurations looks like this: server1: dom0 (centos5): virtual1 (w2k3) server2: dom0 (centos5): virtual2 (w2k3) I want to make a cluster with two nodes: virtual1 and virtual2. I have a quorum disk set up on SAN, both dom0 configures it via HBA (qlogic card with HP driver) as scsi /dev/sdb: SAN.quorum -> server1 hba (/dev/sdb) -> virtual1 SAN.quorum -> server2 hba (/dev/sdb) -> virtual2 Then it is passed as block device to domU with this xen config: disk = [ ..<other disks>..., ''phy:/dev/sdb:sdb:w'' ] Everything would be fine except that changes made to quorum disk on active node are not seen after changing active node to the other one. It looks like all changes are cached somewhere and active node writes to this same disk as it would be two different disks. After rebooting both nodes only changes from first active node are written to disk. Could you please help me in setting up the quorum disk ? TIA Best regards Marek Kedziora _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi! I have a problem setting up cluster of w2k3 servers. My configurations looks like this: server1: dom0 (centos5): virtual1 (w2k3) server2: dom0 (centos5): virtual2 (w2k3) I want to make a cluster with two nodes: virtual1 and virtual2. I have a quorum disk set up on SAN, both dom0 configures it via HBA (QLogic card with HP driver) as scsi /dev/sdb: SAN.quorum -> server1 hba (/dev/sdb) -> virtual1 SAN.quorum -> server2 hba (/dev/sdb) -> virtual2 Then it is passed as block device to domU with this xen config: disk = [ ..<other disks>..., ''phy:/dev/sdb:sdb:w'' ] Everything would be fine except that changes made to quorum disk on active node are not seen after changing active node to the other one. It looks like all changes are cached somewhere and active node writes to this same disk as it would be two different disks. After rebooting both nodes only changes from first active node are written to disk. Could you please help me in setting up the quorum disk ? TIA Best regards Marek Kedziora _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi All, I have a x86 64bit Machine on which I run fedora 7 64bit. I have 3 NIC cards on the machine. Now I want to create 2 paravirtualised guests with fedora 7 64 bit as the OS. My objective is I want the guests also to emulate or show the 3 NIC cards which are present on the host or dom0 . At present I am using virt-manager to create the guests and on doing the regular process, the 3 NIC cards are not shown on the guests. Can somebody help me on how to go about this . Thanks , Vishu _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Hi! > I have a problem setting up cluster of w2k3 servers. My configurations > looks like this: > > server1: dom0 (centos5): virtual1 (w2k3) > server2: dom0 (centos5): virtual2 (w2k3) > > I want to make a cluster with two nodes: virtual1 and virtual2. > I have a quorum disk set up on SAN, both dom0 configures it via HBA > (qlogic card with HP driver) as scsi /dev/sdb: > > SAN.quorum -> server1 hba (/dev/sdb) -> virtual1 > SAN.quorum -> server2 hba (/dev/sdb) -> virtual2 > > Then it is passed as block device to domU with this xen config: > > disk = [ ..<other disks>..., ''phy:/dev/sdb:sdb:w'' ] > > Everything would be fine except that changes made to quorum disk > on active node are not seen after changing active node to the other > one. It looks like all changes are cached somewhere and active node > writes to this same disk as it would be two different disks. After > rebooting both nodes only changes from first active node are written to > disk. > > Could you please help me in setting up the quorum disk ?I have suggested on this list previously that I think the qemu code makes use of Dom0''s buffer cache. This makes the performance look artificially better, and has the drawback that data isn''t actually written to disk immediately, which would give you the symptoms you are seeing. I haven''t had any confirmation of this suggestion from anyone who would know for sure though. You could try using the GPL PV drivers I wrote. If you are using SMP then you''d better try the latest pre-release which I can''t break easily under SMP (the previous version would break and damage your filesystem under SMP :) http://www.meadowcourt.org/WindowsXenPV-0.7.0-pre2.zip Best to try it only in an environment that you aren''t afraid to break, including Dom0 and any other DomU''s on the system. That said, I am running this version on some semi-production DomU''s without any issues. James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Oops... this is another mailing list repeat. Just ignore my response :)> -----Original Message----- > From: xen-users-bounces@lists.xensource.com [mailto:xen-users- > bounces@lists.xensource.com] On Behalf Of Kedziora Marek > Sent: Thursday, 31 January 2008 18:55 > To: xen-users@lists.xensource.com > Subject: [Xen-users] Quorum disk problem > > Hi! > I have a problem setting up cluster of w2k3 servers. My configurations > looks like this: > > server1: dom0 (centos5): virtual1 (w2k3) > server2: dom0 (centos5): virtual2 (w2k3) > > I want to make a cluster with two nodes: virtual1 and virtual2. > I have a quorum disk set up on SAN, both dom0 configures it via HBA > (qlogic card with HP driver) as scsi /dev/sdb: > > SAN.quorum -> server1 hba (/dev/sdb) -> virtual1 > SAN.quorum -> server2 hba (/dev/sdb) -> virtual2 > > Then it is passed as block device to domU with this xen config: > > disk = [ ..<other disks>..., ''phy:/dev/sdb:sdb:w'' ] > > Everything would be fine except that changes made to quorum disk > on active node are not seen after changing active node to the other > one. It looks like all changes are cached somewhere and active node > writes to this same disk as it would be two different disks. After > rebooting both nodes only changes from first active node are written to > disk. > > Could you please help me in setting up the quorum disk ? > TIA > Best regards > Marek Kedziora > > _______________________________________________ > 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
Sadique Puthen
2008-Feb-06 14:19 UTC
Re: [Xen-users] Emulating Multiple NIC cards on Guests
Viswanath T K wrote:> Hi All, > > I have a x86 64bit Machine on which I run fedora 7 64bit. > I have 3 NIC cards on the machine. Now I want to create 2 > paravirtualised guests with fedora 7 64 bit as the OS. > My objective is I want the guests also to emulate or show the 3 NIC > cards which are present on the host or dom0 . At present I am using > virt-manager to create the guests and on doing the regular process, the > 3 NIC cards are not shown on the guests. >The default xen dom0 configuration creates only a single bridge and the default guest configuration only creates a single virtual ethernet interface on the guest. Solution for you would be something below. - In /etc/sysconfig/network-scripts of dom0 , Configure eth0, eth1 and eth3 with appropriate network details. - Edit /etc/xen/xend-config.sxp, comment out Line 91 by putting a # in the beginning of the line and add the below line after that. (network-script network-custom) - Crate /etc/xen/scripts/network-custom with the below contents in it and give it 755 permission. #!/bin/bash /etc/xen/scripts/network-bridge $1 netdev=eth0 bridge=xenbr0 vifnum=0 /etc/xen/scripts/network-bridge $1 netdev=eth1 bridge=xenbr1 vifnum=1 /etc/xen/scripts/network-bridge $1 netdev=eth2 bridge=xenbr2 vifnum=2 - Reboot your system. - Now you should have xenbr0, xenbr1 and xenbr2 configured properly on your host system. Run "brctl show" to see details. Now if you want to start a guest with three virtual interfaces, Edit the guest configuration file in /etc/xen/<guest name> and change vif= parameter as below. vif = [ "mac=00:16:3e:7b:0e:a4,bridge=xenbr0,script=vif-bridge","mac=00:16:3e:7b:0e:a5,bridge=xenbr1,script=vif-bridge" ,"mac=00:16:3e:7b:0e:a6,bridge=xenbr2,script=vif-bridge"] This would create three virtual ethernet interfaces - eth0, eth1 and eth2 - in the guest where eth0 would be bridged to xenbr0, eth1 to xenbr1 and eth2 to xenbr2. Then configure these virtual interfaces in the guest as you usually do with a physical system. If eth0, eth1 and eth2 in dom0 are connected to separate subnets and if you configure these three virtual ethernets in the guest to obtain their ip addresses from dhcp, then they should have obtained an ip address from the respective dhcp servers when you restart network service in the guest. Please make sure that the mac address you assign is unique. The above vif = entry is for a para-virtualized guest. If it''s a fully virtualized guest, it should be as below. vif = [ ''type=ioemu, mac=00:16:3e:04:98:04, bridge=xenbr0'',''type=ioemu, mac=00:16:3e:04:98:05, bridge=xenbr1'',''type=ioemu, mac=00:16:3e:04:98:06, bridge=xenbr2'' ] --Sadique> > Can somebody help me on how to go about this . > > > Thanks , > Vishu > > > > _______________________________________________ > 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
Augusto Castelan Carlson
2008-Feb-06 15:01 UTC
Re: [Xen-users] Emulating Multiple NIC cards on Guests
Hi! In my case, I''m running fedora 8 and I have two interfaces (eth0 and eth1) in my host. The host has 2 guests. I would like to have my dom0 and dom1 to use eth0 and dom2 to use eth1. All in the same network. So I have to do what you have described to add another bridge. - In /etc/sysconfig/network-scripts of dom0 , Configure eth0, eth1 and> eth3 with appropriate network details. > - Edit /etc/xen/xend-config.sxp, comment out Line 91 by putting a # in > the beginning of the line and add the below line after that. > > (network-script network-custom) > > - Create /etc/xen/scripts/network-custom with the below contents in it > and give it 755 permission. > > #!/bin/bash > /etc/xen/scripts/network-bridge $1 netdev=eth0 bridge=xenbr0 vifnum=0 > /etc/xen/scripts/network-bridge $1 netdev=eth1 bridge=xenbr1 vifnum=1 > > - Reboot my system. > > - Now I should have xenbr0 and xenbr1 configured properly on > your host system. Run "brctl show" to see details.How should I assign IP addresses as I want to have the host an both guests in the same network? As I only want one interface per guest, nothing else is necessary, right? Thanks in advance. Regards, -- Augusto Castelan Carlson _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sadique Puthen
2008-Feb-06 15:29 UTC
Re: [Xen-users] Emulating Multiple NIC cards on Guests
Augusto Castelan Carlson wrote:> Hi! > > In my case, I''m running fedora 8 and I have two interfaces (eth0 and > eth1) in my host. The host has 2 guests. > > I would like to have my dom0 and dom1 to use eth0 and dom2 to use > eth1. All in the same network. > > So I have to do what you have described to add another bridge.You can passthrough eth1 to dom2 (bearing the security drawbacks) in this case which only requires configuring one default bridge. Or you can create two bridges as I explained and do that way which is more secure. --Sadique> > - In /etc/sysconfig/network-scripts of dom0 , Configure eth0, eth1 and > eth3 with appropriate network details. > - Edit /etc/xen/xend-config.sxp, comment out Line 91 by putting a # in > the beginning of the line and add the below line after that. > > (network-script network-custom) > > - Create /etc/xen/scripts/network-custom with the below contents in it > and give it 755 permission. > > #!/bin/bash > /etc/xen/scripts/network-bridge $1 netdev=eth0 bridge=xenbr0 vifnum=0 > /etc/xen/scripts/network-bridge $1 netdev=eth1 bridge=xenbr1 vifnum=1 > > - Reboot my system. > > - Now I should have xenbr0 and xenbr1 configured properly on > your host system. Run "brctl show" to see details. > > > > How should I assign IP addresses as I want to have the host an both > guests in the same network? > > As I only want one interface per guest, nothing else is necessary, > right? > > Thanks in advance. > > Regards, > -- > Augusto Castelan Carlson > ------------------------------------------------------------------------ > > _______________________________________________ > 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
Maximilian Wilhelm
2008-Feb-06 15:35 UTC
Re: [Xen-users] Emulating Multiple NIC cards on Guests
Am Wednesday, den 6 February hub Sadique Puthen folgendes in die Tasten: Hi! [...]> The above vif = entry is for a para-virtualized guest. If it''s a fully > virtualized guest, it should be as below.> vif = [ ''type=ioemu, mac=00:16:3e:04:98:04, bridge=xenbr0'',''type=ioemu, > mac=00:16:3e:04:98:05, bridge=xenbr1'',''type=ioemu, > mac=00:16:3e:04:98:06, bridge=xenbr2'' ]Silly queston: What''s the real difference between "normal" bridges and "ioemu" bridges? Ciao Max -- Follow the white penguin. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Augusto Castelan Carlson
2008-Feb-06 15:42 UTC
Re: [Xen-users] Emulating Multiple NIC cards on Guests
> > In my case, I''m running fedora 8 and I have two interfaces (eth0 and > > eth1) in my host. The host has 2 guests. > > > > I would like to have my dom0 and dom1 to use eth0 and dom2 to use > > eth1. All in the same network. > > > > So I have to do what you have described to add another bridge. > > You can passthrough eth1 to dom2 (bearing the security drawbacks) in > this case which only requires configuring one default bridge. Or you can > create two bridges as I explained and do that way which is more secure. >In the case where I create 2 bridges how should I assign IP addresses to the host interfaces, as I want to have the host an both guests in the same network? Thanks. Regards, -- Augusto Castelan Carlson _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sadique Puthen
2008-Feb-06 15:51 UTC
Re: [Xen-users] Emulating Multiple NIC cards on Guests
Maximilian Wilhelm wrote:> Am Wednesday, den 6 February hub Sadique Puthen folgendes in die Tasten: > > Hi! > > [...] > >> The above vif = entry is for a para-virtualized guest. If it''s a fully >> virtualized guest, it should be as below. >> > > >> vif = [ ''type=ioemu, mac=00:16:3e:04:98:04, bridge=xenbr0'',''type=ioemu, >> mac=00:16:3e:04:98:05, bridge=xenbr1'',''type=ioemu, >> mac=00:16:3e:04:98:06, bridge=xenbr2'' ] >> > > > Silly queston: > What''s the real difference between "normal" bridges and "ioemu" > bridges? >There are no normal bridges or ioemu bridges. Bridges is always normal. With ioemu we specify that the network interface type that this guest is going to use is a qemu emulation, not something which is built up using special drivers as we use with para-vitualized guests. type=ioemu has nothing to do with the bridges. --Sadique> Ciao > Max >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sadique Puthen
2008-Feb-06 15:53 UTC
Re: [Xen-users] Emulating Multiple NIC cards on Guests
Augusto Castelan Carlson wrote:> > > In my case, I''m running fedora 8 and I have two interfaces (eth0 and > > eth1) in my host. The host has 2 guests. > > > > I would like to have my dom0 and dom1 to use eth0 and dom2 to use > > eth1. All in the same network. > > > > So I have to do what you have described to add another bridge. > > You can passthrough eth1 to dom2 (bearing the security drawbacks) in > this case which only requires configuring one default bridge. Or > you can > create two bridges as I explained and do that way which is more > secure. > > > In the case where I create 2 bridges how should I assign IP addresses > to the host interfaces,Through /etc/sysconfig/network-scripts/ifcfg-eth0 in RHEL and its variants. Not sure about other distros.> as I want to have the host an both guests in the same network?Why this is an issue while the bridge acts like a virtual switch and eth0 in dom0 acts like a virtual uplink?> > > Thanks. > > Regards, > -- > Augusto Castelan Carlson > > ------------------------------------------------------------------------ > > _______________________________________________ > 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
Augusto Castelan Carlson
2008-Feb-06 16:12 UTC
Re: [Xen-users] Emulating Multiple NIC cards on Guests
I was not clear enough in my question...> In the case where I create 2 bridges how should I assign IP addresses > > to the host interfaces, > > Through /etc/sysconfig/network-scripts/ifcfg-eth0 in RHEL and its > variants. Not sure about other distros.I know how to assign address through ifcfg :-D> as I want to have the host an both guests in the same network? > > Why this is an issue while the bridge acts like a virtual switch and > eth0 in dom0 acts like a virtual uplink?My doubt is: I will assign an IP address to the host eth0 and one IP address for each guest. I do not need to give an IP address to eth1 as it will act like a virtual switch, isn''t? Thanks, Augusto _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sadique Puthen
2008-Feb-06 18:16 UTC
Re: [Xen-users] Emulating Multiple NIC cards on Guests
Augusto Castelan Carlson wrote:> I was not clear enough in my question... > > > In the case where I create 2 bridges how should I assign IP > addresses > > to the host interfaces, > > Through /etc/sysconfig/network-scripts/ifcfg-eth0 in RHEL and its > variants. Not sure about other distros. > > > I know how to assign address through ifcfg :-D > > > as I want to have the host an both guests in the same network? > > Why this is an issue while the bridge acts like a virtual switch and > eth0 in dom0 acts like a virtual uplink? > > > My doubt is: I will assign an IP address to the host eth0 and one IP > address for each guest. I do not need to give an IP address to eth1 as > it will act like a virtual switch, isn''t?You don''t necessarily require to assign an ip address to eth1 or even bring it up in dom0 if that is only used for network traffic to guests and not required to communicate to dom0. But the default behavior of network-bridge script is to bring it up automatically through do_ifup() in op_start (). What I usually do is I would copy the network-bridge to network-bridge-noifup and comment out do_ifup () calls in op_start() and op_stop() in network-bridge-noifup. Then configure my xend-config.sxp as below (network-script network-bridge-custom) Then I would configure netowrk-bridge-custom as below #!/bin/bash /etc/xen/scripts/network-bridge $1 netdev=eth0 bridge=xenbr0 vifnum=0 /etc/xen/scripts/network-bridge-noifup $1 netdev=eth1 bridge=xenbr1 vifnum=1 Hope this clears things. --Sadique> > Thanks, > > Augusto > ------------------------------------------------------------------------ > > _______________________________________________ > 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
btw. - w2k3 cluster quorum disks require to be capable of handling scsi2 reservations. I would assume xen does not (yet?) support scsi2 reservation virtualization. Or does it?> -----Ursprüngliche Nachricht----- > Von: "James Harper" <james.harper@bendigoit.com.au> > Gesendet: 06.02.08 12:01:18 > An: <xen-users@lists.xensource.com> > Betreff: RE: [Xen-users] Quorum disk problem> > Oops... this is another mailing list repeat. Just ignore my response :) > > > -----Original Message----- > > From: xen-users-bounces@lists.xensource.com [mailto:xen-users- > > bounces@lists.xensource.com] On Behalf Of Kedziora Marek > > Sent: Thursday, 31 January 2008 18:55 > > To: xen-users@lists.xensource.com > > Subject: [Xen-users] Quorum disk problem > > > > Hi! > > I have a problem setting up cluster of w2k3 servers. My configurations > > looks like this: > > > > server1: dom0 (centos5): virtual1 (w2k3) > > server2: dom0 (centos5): virtual2 (w2k3) > > > > I want to make a cluster with two nodes: virtual1 and virtual2. > > I have a quorum disk set up on SAN, both dom0 configures it via HBA > > (qlogic card with HP driver) as scsi /dev/sdb: > > > > SAN.quorum -> server1 hba (/dev/sdb) -> virtual1 > > SAN.quorum -> server2 hba (/dev/sdb) -> virtual2 > > > > Then it is passed as block device to domU with this xen config: > > > > disk = [ ..<other disks>..., ''phy:/dev/sdb:sdb:w'' ] > > > > Everything would be fine except that changes made to quorum disk > > on active node are not seen after changing active node to the other > > one. It looks like all changes are cached somewhere and active node > > writes to this same disk as it would be two different disks. After > > rebooting both nodes only changes from first active node are written to > > disk. > > > > Could you please help me in setting up the quorum disk ? > > TIA > > Best regards > > Marek Kedziora > > > > _______________________________________________ > > 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 >_________________________________________________________________________ In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten! Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi! Few days ago I got response from Sadique Puthen that Xen does not support HVM SCSI at all. James could you confirm that GPL PV driver should work in HVM environment ? Does it support reservation ? Thank you. Best regards, Marek Kedziora _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Hi! > Few days ago I got response from Sadique Puthen that Xen does not support > HVM SCSI at all. James could you confirm that GPL PV driver should work in > HVM environment ?Yes, the drivers I have written are for the Windows HVM.> Does it support reservation ?I don''t know much about SCSI Reservation, but I believe it is part of the scsi protocol. It is not explicitly supported under the PV drivers, so the answer is probably no. James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Viswanath T K
2008-Feb-12 12:26 UTC
Re: [Xen-users] Emulating Multiple NIC cards on Guests
Hi I tried out whatever you have and others have suggested but nothing has worked out yet. I shall elaborate on the steps I have undertaken on Fedora x86 64bit. 1. Installed xen, kernel-xen , virt-manager 2. Rebooted on xen kernel. 3. I have 3 NIC cards and for all of them I have assigned Static IPs. 4. When I do an ifconfig I get details of eth0,1,2 ,lo and virbr0. I dont see xenbr0. 5. Are virbr0 & xenbr0 the same ? 6. I dont see any file in /etc/xen/<guest name> so as to add vif=[], Is this file auto-generated when we create a guest using virt-manager. 7. I created a file in /etc/xen/<guest name> named guest1 and edited vif as you have mentioned and created guest using "xm create -c <guest name> This also failed giving the error, "Device 0 cannot be connected.Hot plug scripts failed ( I dont remember the exact error )" Help is needed on this. Thanks Viswanath On Wed, 2008-02-06 at 19:49 +0530, Sadique Puthen wrote:> Viswanath T K wrote: > > Hi All, > > > > I have a x86 64bit Machine on which I run fedora 7 64bit. > > I have 3 NIC cards on the machine. Now I want to create 2 > > paravirtualised guests with fedora 7 64 bit as the OS. > > My objective is I want the guests also to emulate or show the 3 NIC > > cards which are present on the host or dom0 . At present I am using > > virt-manager to create the guests and on doing the regular process, the > > 3 NIC cards are not shown on the guests. > > > > The default xen dom0 configuration creates only a single bridge and the > default guest configuration only creates a single virtual ethernet > interface on the guest. Solution for you would be something below. > > - In /etc/sysconfig/network-scripts of dom0 , Configure eth0, eth1 and > eth3 with appropriate network details. > > - Edit /etc/xen/xend-config.sxp, comment out Line 91 by putting a # in > the beginning of the line and add the below line after that. > > (network-script network-custom) > > - Crate /etc/xen/scripts/network-custom with the below contents in it > and give it 755 permission. > > #!/bin/bash > /etc/xen/scripts/network-bridge $1 netdev=eth0 bridge=xenbr0 vifnum=0 > /etc/xen/scripts/network-bridge $1 netdev=eth1 bridge=xenbr1 vifnum=1 > /etc/xen/scripts/network-bridge $1 netdev=eth2 bridge=xenbr2 vifnum=2 > > - Reboot your system. > > - Now you should have xenbr0, xenbr1 and xenbr2 configured properly on > your host system. Run "brctl show" to see details. > > Now if you want to start a guest with three virtual interfaces, Edit the > guest configuration file in /etc/xen/<guest name> and change vif= > parameter as below. > > vif = [ > "mac=00:16:3e:7b:0e:a4,bridge=xenbr0,script=vif-bridge","mac=00:16:3e:7b:0e:a5,bridge=xenbr1,script=vif-bridge" > ,"mac=00:16:3e:7b:0e:a6,bridge=xenbr2,script=vif-bridge"] > > This would create three virtual ethernet interfaces - eth0, eth1 and > eth2 - in the guest where eth0 would be bridged to xenbr0, eth1 to > xenbr1 and eth2 to xenbr2. Then configure these virtual interfaces in > the guest as you usually do with a physical system. If eth0, eth1 and > eth2 in dom0 are connected to separate subnets and if you configure > these three virtual ethernets in the guest to obtain their ip addresses > from dhcp, then they should have obtained an ip address from the > respective dhcp servers when you restart network service in the guest. > Please make sure that the mac address you assign is unique. > > The above vif = entry is for a para-virtualized guest. If it''s a fully > virtualized guest, it should be as below. > > vif = [ ''type=ioemu, mac=00:16:3e:04:98:04, bridge=xenbr0'',''type=ioemu, > mac=00:16:3e:04:98:05, bridge=xenbr1'',''type=ioemu, > mac=00:16:3e:04:98:06, bridge=xenbr2'' ] > > --Sadique > > > > > Can somebody help me on how to go about this . > > > > > > Thanks , > > Vishu > > > > > > > > _______________________________________________ > > 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 2/12/08 7:26 AM, "Viswanath T K" <viswanath.t@atc.tcs.com> wrote:> Hi > > I tried out whatever you have and others have suggested but nothing has > worked out yet. > > I shall elaborate on the steps I have undertaken on Fedora x86 64bit. > > 1. Installed xen, kernel-xen , virt-manager > 2. Rebooted on xen kernel. > 3. I have 3 NIC cards and for all of them I have assigned Static IPs. > 4. When I do an ifconfig I get details of eth0,1,2 ,lo and virbr0. I > dont see xenbr0. > 5. Are virbr0 & xenbr0 the same ? > 6. I dont see any file in /etc/xen/<guest name> so as to add vif=[], Is > this file auto-generated when we create a guest using virt-manager. > > 7. I created a file in /etc/xen/<guest name> named guest1 and edited > vif as you have mentioned and created guest using "xm create -c <guest > name> > This also failed giving the error, "Device 0 cannot be connected.Hot > plug scripts failed ( I dont remember the exact error )" > > Help is needed on this. > > > Thanks > ViswanathHave you gotten to the point that you have multiple bridges configured? `ip addr`, or `ifconfig`, should show you three bridges -- without them, you''re not going to be able to create the three interfaces. I run on opensuse, not Fedora, but I think it''s a fair bet that virbr0 and xenbr0 are two names for the same thing. Taking a look at the network-bridge script in /etc/xen/scripts/ will tell you, I think. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tuesday 12 February 2008 07:26:48 am Viswanath T K wrote:> 6. I dont see any file in /etc/xen/<guest name> so as to add vif=[], Is > this file auto-generated when we create a guest using virt-manager.No. While the domain is running, on a root console do ''virsh dumpxml "domain-id">domain.xml''. Then you can create a flat config file from the .xml file if you are familiar with the common options. Just remove any parms that refer to specific run time conditions, like the domain id #, and any pty in the ''console'' statement. Since virsh/virt-manager maintain a definition (in xenstore?) that shows up in ''xm list'' even when the domain is shutdown, you will need to do an ''xm delete domain-id'' before you can run ''xm create flat-config''. This is the same as clicking on ''delete'' in virt-manager. (You can always revert to the virsh behavior with ''virsh new domain.xml.) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sadique Puthen
2008-Feb-16 17:48 UTC
Re: [Xen-users] Emulating Multiple NIC cards on Guests
Ian Marlier wrote:> > On 2/12/08 7:26 AM, "Viswanath T K" <viswanath.t@atc.tcs.com> wrote: > > >> Hi >> >> I tried out whatever you have and others have suggested but nothing has >> worked out yet. >> >> I shall elaborate on the steps I have undertaken on Fedora x86 64bit. >> >> 1. Installed xen, kernel-xen , virt-manager >> 2. Rebooted on xen kernel. >> 3. I have 3 NIC cards and for all of them I have assigned Static IPs. >> 4. When I do an ifconfig I get details of eth0,1,2 ,lo and virbr0. I >> dont see xenbr0. >> 5. Are virbr0 & xenbr0 the same ? >> 6. I dont see any file in /etc/xen/<guest name> so as to add vif=[], Is >> this file auto-generated when we create a guest using virt-manager. >> >> 7. I created a file in /etc/xen/<guest name> named guest1 and edited >> vif as you have mentioned and created guest using "xm create -c <guest >> name> >> This also failed giving the error, "Device 0 cannot be connected.Hot >> plug scripts failed ( I dont remember the exact error )" >> >> Help is needed on this. >> >> >> Thanks >> Viswanath >> > > Have you gotten to the point that you have multiple bridges configured? > > `ip addr`, or `ifconfig`, should show you three bridges -- without them, > you''re not going to be able to create the three interfaces. > > I run on opensuse, not Fedora, but I think it''s a fair bet that virbr0 and > xenbr0 are two names for the same thing.Nops, xenbr0 is the bridge device to which you bridge peth0 (which is the renamed name for eth0) and vif<domid>.x interfaces. So this means that a client connected to xenbr0 can directly connect to the external network. virbr0 bridge just includes only the vif<domid>.x from all guests bridged to it. So it can''t connect to the external network unless you enable natting and IP forwarding in Dom0. Both xenbr0 and virbr0 is to enable virtual networking for guests, but using slightly different methods. --Sadique> Taking a look at the > network-bridge script in /etc/xen/scripts/ will tell you, I think. > > > > _______________________________________________ > 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