[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] two bridges with xen 3.2.0
Hi, the answer is ... the same!! with all the 3.0 and 3.1 releases i've always used the bridge this way, without any ip address at all. anyway... i've also tried to set the ip address before i perform de "xm create", just in case this had also changed, but it doesn't work either. i just used your line and put the correct ip addresses in my case, but it just doesn't work. i'm using debian etch. i've tried in a couple of servers, just to check if there was some particular problem with that machine, but found nothing. I've used etch to run xen 3.1.x releases for quite a while now, i don't see why it's not working now. i'm also using mdadm to build a raid-1 array for xen, to make sure that the virtual machines are always up. I don't think it has something to do whit it... but i prefer to give all the details so that you can say what it's wrong with my sytem. thank you. El dc 20 de 02 del 2008 a les 18:34 +0000, en/na Gareth Bult va escriure: > Urm, > > I've never tried "not" giving it an IP/MAC in the vif= .. what happens if you > add them as per my example? > > > ----- Original Message ----- > step 3.: "Jordi Moles" <jordi@xxxxxxxxx> > To: "Gareth Bult" <gareth@xxxxxxxxxxxxx> > Cc: xen-users@xxxxxxxxxxxxxxxxxxx > Sent: 20 February 2008 18:11:16 o'clock (GMT) Europe/London > Subject: Re: [Xen-users] two bridges with xen 3.2.0 > > Hi, i tried something new.... > > i read somewhere that the problem now was that i had not installed > hotplug on my debian. > > i did this: > > ******** > > # apt-get install hotplug > S'està llegint la llista de paquets... Fet > S'està construint l'arbre de dependÃncies... Fet > Paquets suggerits: > ifrename > S'ELIMINARAN els segÃents paquets: > initramfs-tools udev > S'instalÂlaran els segÃents paquets NOUS: > hotplug > 0 actualitzats, 1 nous a instalÂlar, 2 a eliminar i 0 no actualitzats. > Es necessita obtenir 67,3kB d'arxius. > DesprÃs de desempaquetar s'alliberaran 971kB d'espai en disc. > Voleu continuar [S/n]? > Des:1 http://ftp.rediris.es etch/main hotplug 0.0.20040329-26 [67,3kB] > 67,3kB descarregats en 1s (48,9kB/s) > S'estan preconfigurant els paquets... > (S'està llegint la base de dades ... hi ha 31229 fitxers i directoris > instalÂlats actualment.) > S'està desinstalÂlant initramfs-tools ... > S'està desinstalÂlant udev ... > > ************************************************************** > * Please reboot your system as soon as possible! > * After removing udev the system may not be fully functional. > ************************************************************** > > S'està seleccionant el paquet hotplug prÃviament no seleccionat. > (S'està llegint la base de dades ... hi ha 31093 fitxers i directoris > instalÂlats actualment.) > S'està desempaquetant hotplug (de .../hotplug_0.0.20040329-26_all.deb) ... > S'està configurant hotplug (0.0.20040329-26) ... > > x01glus01:/etc/udev/rules.d# > > ******** > > The thing is that it removed 2 different paquets, "initramfs-tools" and > "udev", which i don't if xen needs. > > anyway... after that, i keep getting the same error; > > ********** > Error: Device 0 (vif) could not be connected. Hotplug scripts not working. > ********** > > any idea? > > > > > > > > > > > > > En/na Jordi Moles ha escrit: > > Hi guys, > > > > let's see... > > > > i've got my own script for bridges: > > > > ******* > > #!/bin/sh > > XENDIR="/etc/xen/scripts" > > > > $XENDIR/network-bridge "$@" netdev=eth0 bridge=eth0 vifnum=0 > > $XENDIR/network-bridge "$@" netdev=eth1 bridge=eth1 vifnum=1 > > ******* > > > > this is my interfaces file > > > > ********* > > auto lo > > iface lo inet loopback > > > > auto eth0 > > iface eth0 inet static > > address 192.168.1.200 > > netmask 255.255.255.0 > > network 192.168.1.0 > > broadcast 192.168.1.255 > > gateway 192.168.1.231 > > > > auto eth1 > > iface eth1 inet static > > address 192.168.2.200 > > netmask 255.255.255.0 > > ********* > > > > and virtual machines have this in their conf files: > > > > ************ > > vif = [ 'bridge=eth0', 'bridge=eth1' ] > > ************ > > > > so.... > > > > when i try to create the machine... i get this: > > > > ********** > > Error: Device 0 (vif) could not be connected. Hotplug scripts not > > working. > > ********** > > > > Any idea? > > > > Thank you. > > > > En/na Gareth Bult ha escrit: > >> Ok, > >> > >> /etc/network/interfaces - as you like it, don't change it for xen .. > >> and xen won't change it. > >> > >> Here's my config; > >> > >> (xend-tcp-xmlrpc-server no) > >> (xend-unix-xmlrpc-server yes) > >> (xend-api-server ((unix))) > >> (xend-relocation-server yes) > >> (xend-relocation-port 8002) > >> (xend-relocation-address '<my private ip>') > >> (xend-relocation-hosts-allow '') > >> (network-script my-network-bridge) > >> (vif-script vif-bridge) > >> (dom0-min-mem 196) > >> (dom0-cpus 0) > >> (vncpasswd '') > >> (xend-http-server yes) > >> (xend-port 8000) > >> (xend-address '<my private ip>') > >> (xend-unix-server yes) > >> (xend-unix-path /var/lib/xend/xend-socket) > >> > >> Note; I called my script; "my-network-bridge", everything else is > >> "default". > >> > >> hth > >> > >> > >> ----- Original Message ----- > >> step 3.: "Jordi Moles" <jordi@xxxxxxxxx> > >> To: "Gareth Bult" <gareth@xxxxxxxxxxxxx> > >> Cc: xen-users@xxxxxxxxxxxxxxxxxxx > >> Sent: 20 February 2008 16:07:07 o'clock (GMT) Europe/London > >> Subject: Re: [Xen-users] two bridges with xen 3.2.0 > >> > >> Hi, > >> > >> i'm sorry guys, i don't quite get it. > >> > >> i replaced my script with this one: > >> > >> *********** > >> > >> #!/bin/sh > >> XENDIR="/etc/xen/scripts" > >> > >> $XENDIR/network-bridge "$@" netdev=eth0 bridge=eth0 vifnum=0 > >> $XENDIR/network-bridge "$@" netdev=eth1 bridge=eth1 vifnum=1 > >> > >> > >> *********** > >> > >> on the other hand.... > >> > >> what about /etc/xen/xend-config.sxp ? Do i have to keep the > >> (vif-script vif-bridge) line? Do i have to use another script? > >> > >> what about /etc/network/interfaces? can i use something like this? > >> > >> **************** > >> auto lo > >> iface lo inet loopback > >> > >> auto eth0 > >> iface eth0 inet static > >> address 192.168.1.200 > >> netmask 255.255.255.0 > >> network 192.168.1.0 > >> broadcast 192.168.1.255 > >> gateway 192.168.1.231 > >> > >> auto eth1 > >> iface eth1 inet static > >> address 192.168.2.200 > >> netmask 255.255.255.0 > >> > >> **************** > >> > >> or do i have to replace eth0 with peth0 in this file? will debian > >> load the newtork interfaces if i change the name? > >> > >> Thank you. > >> > >> En/na Gareth Bult ha escrit: > >> > >>> Hi, > >>> > >>> Here's my Xen3.2 script .. working 100% on multiple boxes ... > >>> > >>> #!/bin/sh > >>> XENDIR="/etc/xen/scripts" > >>> > >>> $XENDIR/network-bridge "$@" netdev=eth0 bridge=eth0 vifnum=0 > >>> $XENDIR/network-bridge "$@" netdev=eth1 bridge=eth1 vifnum=1 > >>> > >>> NOTE:: > >>> > >>> The nice people at Xen changed the default bridge from Xenbr<n> to > >>> eth<n>. > >>> > >>> New method; > >>> a. rename device eth0 to peth0 > >>> b. create a bridge called eth0 (!!) > >>> c. include peth0 as a device for bridge eth0 > >>> > >>> !! > >>> > >>> Much improved method, however, the documentation stinks .. > >>> > >>> Gareth. > >>> > >>> > >>> ----- Original Message ----- > >>> step 3.: "Jordi Moles" <jordi@xxxxxxxxx> > >>> To: xen-users@xxxxxxxxxxxxxxxxxxx > >>> Sent: 20 February 2008 11:50:33 o'clock (GMT) Europe/London > >>> Subject: [Xen-users] two bridges with xen 3.2.0 > >>> > >>> hi, > >>> > >>> i'm trying the new 3.2.0. > >>> > >>> i've always used two bridges since 3.0.x with the following set up: > >>> > >>> Replace > >>> > >>> (network-script network-bridge) > >>> > >>> with > >>> > >>> (network-script network-bridge-both) > >>> > >>> in file /etc/xen/xend-config.sxp > >>> > >>> The content of network-bridge-both is > >>> > >>> ************ > >>> > >>> #!/bin/sh > >>> dir=$(dirname "$0") > >>> "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0 > >>> "$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=xenbr1 > >>> > >>> ************ > >>> > >>> As i said, this used to work for 3.0.x and 3.1.x releases..... > >>> > >>> Now, it doesn't work anymore... > >>> > >>> when the xen loads.... > >>> > >>> there's only this in the ifconfig command: > >>> > >>> -lo > >>> -peth0 > >>> -peth1 > >>> > >>> What's different from the earlier releases? Thank you. > >>> > >>> _______________________________________________ > >>> Xen-users mailing list > >>> Xen-users@xxxxxxxxxxxxxxxxxxx > >>> http://lists.xensource.com/xen-users > >>> > >>> _______________________________________________ > >>> Xen-users mailing list > >>> Xen-users@xxxxxxxxxxxxxxxxxxx > >>> http://lists.xensource.com/xen-users > >>> > >> > >> > >> > >> _______________________________________________ > >> Xen-users mailing list > >> Xen-users@xxxxxxxxxxxxxxxxxxx > >> http://lists.xensource.com/xen-users > >> > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@xxxxxxxxxxxxxxxxxxx > > http://lists.xensource.com/xen-users > > > > _______________________________________________ > Xen-users mailing list > Xen-users@xxxxxxxxxxxxxxxxxxx > http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |