Martin Gombač
2010-Mar-08 13:37 UTC
[Xen-users] Problems creating second PVm using another bridge
Hi, I''ve successfully set up one PV virtual machine. Now i wanted to create another one, still use bridging option, but use a different bridge. So i changed: vif = [ ''mac=00:16:XX:2a:30:fa, bridge=xenbr1'' ] to: vif = [ ''mac=00:16:X1:2a:30:fa, bridge=xenbr0'' ] xenbr0 is nonexistent and i expect Xen to create it when creating PVm, because I don''t remember creating xenbr1 bridge when i created my first machine and it''s working. xm create Tetrahedron.cfg -c Using config file "./Tetrahedron.cfg". Error: Device 0 (vif) could not be connected. Could not find bridge device xenbr0 Shouldn''t Xen create that bridge for me? Regards, M. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2010-Mar-08 16:53 UTC
Re: [Xen-users] Problems creating second PVm using another bridge
On Mon, Mar 08, 2010 at 02:37:01PM +0100, Martin Gomba?? wrote:> Hi, > > I''ve successfully set up one PV virtual machine. > Now i wanted to create another one, still use bridging option, but use a > different bridge. > > So i changed: > vif = [ ''mac=00:16:XX:2a:30:fa, bridge=xenbr1'' ] > to: > vif = [ ''mac=00:16:X1:2a:30:fa, bridge=xenbr0'' ] > > xenbr0 is nonexistent and i expect Xen to create it when creating PVm, > because I don''t remember creating xenbr1 bridge when i created my first > machine and it''s working. > > xm create Tetrahedron.cfg -c > Using config file "./Tetrahedron.cfg". > Error: Device 0 (vif) could not be connected. Could not find bridge > device xenbr0 > > Shouldn''t Xen create that bridge for me? >Check /etc/xen/xend-config.sxp, especially the "network-script" line. The default "network-bridge" script creates only 1 bridge, usually xenbr0. You can make it use your custom script, that does whatever. Note that network-script is executed boot time (when xend is started). You can also completely disable network-script and set up the bridges using the networking setup/scripts provided by your dom0 distribution. -- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mike Viau
2010-Mar-08 17:02 UTC
RE: [Xen-users] Problems creating second PVm using another bridge
> On Mon, Mar 08, 2010 at 02:37:01PM +0100, Martin Gomba?? wrote: > > Hi, > > > > I''ve successfully set up one PV virtual machine. > > Now i wanted to create another one, still use bridging option, but use a > > different bridge. > > > > So i changed: > > vif = [ ''mac=00:16:XX:2a:30:fa, bridge=xenbr1'' ] > > to: > > vif = [ ''mac=00:16:X1:2a:30:fa, bridge=xenbr0'' ] > > > > xenbr0 is nonexistent and i expect Xen to create it when creating PVm, > > because I don''t remember creating xenbr1 bridge when i created my first > > machine and it''s working. > > > > xm create Tetrahedron.cfg -c > > Using config file "./Tetrahedron.cfg". > > Error: Device 0 (vif) could not be connected. Could not find bridge > > device xenbr0 > > > > Shouldn''t Xen create that bridge for me? > > > > Check /etc/xen/xend-config.sxp, especially the "network-script" line. > > The default "network-bridge" script creates only 1 bridge, usually xenbr0. > You can make it use your custom script, that does whatever. > Note that network-script is executed boot time (when xend is started). > > You can also completely disable network-script and set up the bridges > using the networking setup/scripts provided by your dom0 distribution.How can one disable network-script? What options should be used in the xend-config.sxp? I apologize if it is in the wiki, I must be blind then...> > -- Pasi > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_________________________________________________________________ IM on the go with Messenger on your phone http://go.microsoft.com/?linkid=9712960 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2010-Mar-08 17:17 UTC
Re: [Xen-users] Problems creating second PVm using another bridge
On Mon, Mar 08, 2010 at 12:02:06PM -0500, Mike Viau wrote:> > On Mon, Mar 08, 2010 at 02:37:01PM +0100, Martin Gomba?? wrote: > > > Hi, > > > > > > I''ve successfully set up one PV virtual machine. > > > Now i wanted to create another one, still use bridging option, but use > a > > > different bridge. > > > > > > So i changed: > > > vif = [ ''mac=00:16:XX:2a:30:fa, bridge=xenbr1'' ] > > > to: > > > vif = [ ''mac=00:16:X1:2a:30:fa, bridge=xenbr0'' ] > > > > > > xenbr0 is nonexistent and i expect Xen to create it when creating PVm, > > > because I don''t remember creating xenbr1 bridge when i created my > first > > > machine and it''s working. > > > > > > xm create Tetrahedron.cfg -c > > > Using config file "./Tetrahedron.cfg". > > > Error: Device 0 (vif) could not be connected. Could not find bridge > > > device xenbr0 > > > > > > Shouldn''t Xen create that bridge for me? > > > > > > > Check /etc/xen/xend-config.sxp, especially the "network-script" line. > > > > The default "network-bridge" script creates only 1 bridge, usually > xenbr0. > > You can make it use your custom script, that does whatever. > > Note that network-script is executed boot time (when xend is started). > > > > You can also completely disable network-script and set up the bridges > > using the networking setup/scripts provided by your dom0 distribution. > > Link: [1]File-List > Link: [2]themeData > Link: [3]colorSchemeMapping > > How can one disable network-script? What options should be used in the > xend-config.sxp? > > I apologize if it is in the wiki, I must be blind then... >Just comment the whole line out, or change it to network-dummy. -- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mike Viau
2010-Mar-08 17:23 UTC
RE: [Xen-users] Problems creating second PVm using another bridge
> On Mon, Mar 08, 2010 at 12:02:06PM -0500, Mike Viau wrote: > > > On Mon, Mar 08, 2010 at 02:37:01PM +0100, Martin Gomba?? wrote: > > > > Hi, > > > > > > > > I''ve successfully set up one PV virtual machine. > > > > Now i wanted to create another one, still use bridging option, but use > > a > > > > different bridge. > > > > > > > > So i changed: > > > > vif = [ ''mac=00:16:XX:2a:30:fa, bridge=xenbr1'' ] > > > > to: > > > > vif = [ ''mac=00:16:X1:2a:30:fa, bridge=xenbr0'' ] > > > > > > > > xenbr0 is nonexistent and i expect Xen to create it when creating PVm, > > > > because I don''t remember creating xenbr1 bridge when i created my > > first > > > > machine and it''s working. > > > > > > > > xm create Tetrahedron.cfg -c > > > > Using config file "./Tetrahedron.cfg". > > > > Error: Device 0 (vif) could not be connected. Could not find bridge > > > > device xenbr0 > > > > > > > > Shouldn''t Xen create that bridge for me? > > > > > > > > > > Check /etc/xen/xend-config.sxp, especially the "network-script" line. > > > > > > The default "network-bridge" script creates only 1 bridge, usually > > xenbr0. > > > You can make it use your custom script, that does whatever. > > > Note that network-script is executed boot time (when xend is started). > > > > > > You can also completely disable network-script and set up the bridges > > > using the networking setup/scripts provided by your dom0 distribution. > > > > Link: [1]File-List > > Link: [2]themeData > > Link: [3]colorSchemeMapping > > > > How can one disable network-script? What options should be used in the > > xend-config.sxp? > > > > I apologize if it is in the wiki, I must be blind then... > > > > Just comment the whole line out, or change it to network-dummy. >I do not seem to have a network-dummy script, should I? If I should could you please post yours? localhost:/etc/xen/scripts# ls blktap network-nat vtpm-delete block network-route vtpm-hotplug-common.sh block-common.sh vif-bridge vtpm-impl block-enbd vif-common.sh vtpm-migration.sh block-nbd vif-nat xen-hotplug-cleanup external-device-migrate vif-route xen-hotplug-common.sh locking.sh vscsi xen-network-common.sh logging.sh vtpm xen-script-common.sh network-bridge vtpm-common.sh Thanks. -M> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_________________________________________________________________ Check your Hotmail from your phone. http://go.microsoft.com/?linkid=9712957 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2010-Mar-08 17:34 UTC
Re: [Xen-users] Problems creating second PVm using another bridge
On Mon, Mar 08, 2010 at 12:23:01PM -0500, Mike Viau wrote:> > On Mon, Mar 08, 2010 at 12:02:06PM -0500, Mike Viau wrote: > > > > On Mon, Mar 08, 2010 at 02:37:01PM +0100, Martin Gomba?? wrote: > > > > > Hi, > > > > > > > > > > I''ve successfully set up one PV virtual machine. > > > > > Now i wanted to create another one, still use bridging option, but > use > > > a > > > > > different bridge. > > > > > > > > > > So i changed: > > > > > vif = [ ''mac=00:16:XX:2a:30:fa, bridge=xenbr1'' ] > > > > > to: > > > > > vif = [ ''mac=00:16:X1:2a:30:fa, bridge=xenbr0'' ] > > > > > > > > > > xenbr0 is nonexistent and i expect Xen to create it when creating > PVm, > > > > > because I don''t remember creating xenbr1 bridge when i created my > > > first > > > > > machine and it''s working. > > > > > > > > > > xm create Tetrahedron.cfg -c > > > > > Using config file "./Tetrahedron.cfg". > > > > > Error: Device 0 (vif) could not be connected. Could not find > bridge > > > > > device xenbr0 > > > > > > > > > > Shouldn''t Xen create that bridge for me? > > > > > > > > > > > > > Check /etc/xen/xend-config.sxp, especially the "network-script" > line. > > > > > > > > The default "network-bridge" script creates only 1 bridge, usually > > > xenbr0. > > > > You can make it use your custom script, that does whatever. > > > > Note that network-script is executed boot time (when xend is > started). > > > > > > > > You can also completely disable network-script and set up the > bridges > > > > using the networking setup/scripts provided by your dom0 > distribution. > > > > > > Link: [1]File-List > > > Link: [2]themeData > > > Link: [3]colorSchemeMapping > > > > > > How can one disable network-script? What options should be used in the > > > xend-config.sxp? > > > > > > I apologize if it is in the wiki, I must be blind then... > > > > > > > Just comment the whole line out, or change it to network-dummy. > > > > I do not seem to have a network-dummy script, should I? If I should could > you please post yours? > > localhost:/etc/xen/scripts# ls > blktap network-nat vtpm-delete > block network-route vtpm-hotplug-common.sh > block-common.sh vif-bridge vtpm-impl > block-enbd vif-common.sh vtpm-migration.sh > block-nbd vif-nat xen-hotplug-cleanup > external-device-migrate vif-route xen-hotplug-common.sh > locking.sh vscsi xen-network-common.sh > logging.sh vtpm xen-script-common.sh > network-bridge vtpm-common.sh >Just comment out the "network-script" line from xend-config.sxp and reboot the server. -- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mike Viau
2010-Mar-08 20:57 UTC
[Xen-users] Problems creating second PVm using another bridge
Thanks Pasi! You have answered the first of my previous mail very well. Can I ask for your advice on what I should do with regards to what James Bulpin added in the wiki. "I then add an init.d script to bring the interface up between xend and xendomains starting." My thread starts here: http://lists.xensource.com/archives/html/xen-users/2010-03/msg00218.html -Mike Viau> Date: Mon, 8 Mar 2010 19:34:43 +0200 > From: pasik@iki.fi > To: viaum@sheridanc.on.ca > Subject: Re: [Xen-users] Problems creating second PVm using another bridge > CC: xen-users@lists.xensource.com > > On Mon, Mar 08, 2010 at 12:23:01PM -0500, Mike Viau wrote: > > > On Mon, Mar 08, 2010 at 12:02:06PM -0500, Mike Viau wrote: > > > > > On Mon, Mar 08, 2010 at 02:37:01PM +0100, Martin Gomba?? wrote: > > > > > > Hi, > > > > > > > > > > > > I''ve successfully set up one PV virtual machine. > > > > > > Now i wanted to create another one, still use bridging option, but > > use > > > > a > > > > > > different bridge. > > > > > > > > > > > > So i changed: > > > > > > vif = [ ''mac=00:16:XX:2a:30:fa, bridge=xenbr1'' ] > > > > > > to: > > > > > > vif = [ ''mac=00:16:X1:2a:30:fa, bridge=xenbr0'' ] > > > > > > > > > > > > xenbr0 is nonexistent and i expect Xen to create it when creating > > PVm, > > > > > > because I don''t remember creating xenbr1 bridge when i created my > > > > first > > > > > > machine and it''s working. > > > > > > > > > > > > xm create Tetrahedron.cfg -c > > > > > > Using config file "./Tetrahedron.cfg". > > > > > > Error: Device 0 (vif) could not be connected. Could not find > > bridge > > > > > > device xenbr0 > > > > > > > > > > > > Shouldn''t Xen create that bridge for me? > > > > > > > > > > > > > > > > Check /etc/xen/xend-config.sxp, especially the "network-script" > > line. > > > > > > > > > > The default "network-bridge" script creates only 1 bridge, usually > > > > xenbr0. > > > > > You can make it use your custom script, that does whatever. > > > > > Note that network-script is executed boot time (when xend is > > started). > > > > > > > > > > You can also completely disable network-script and set up the > > bridges > > > > > using the networking setup/scripts provided by your dom0 > > distribution. > > > > > > > > Link: [1]File-List > > > > Link: [2]themeData > > > > Link: [3]colorSchemeMapping > > > > > > > > How can one disable network-script? What options should be used in the > > > > xend-config.sxp? > > > > > > > > I apologize if it is in the wiki, I must be blind then... > > > > > > > > > > Just comment the whole line out, or change it to network-dummy. > > > > > > > I do not seem to have a network-dummy script, should I? If I should could > > you please post yours? > > > > localhost:/etc/xen/scripts# ls > > blktap network-nat vtpm-delete > > block network-route vtpm-hotplug-common.sh > > block-common.sh vif-bridge vtpm-impl > > block-enbd vif-common.sh vtpm-migration.sh > > block-nbd vif-nat xen-hotplug-cleanup > > external-device-migrate vif-route xen-hotplug-common.sh > > locking.sh vscsi xen-network-common.sh > > logging.sh vtpm xen-script-common.sh > > network-bridge vtpm-common.sh > > > > Just comment out the "network-script" line from xend-config.sxp and reboot the server. > > -- Pasi > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-usersLive connected with Messenger on your phone Learn more. _________________________________________________________________ Check your Hotmail from your phone. http://go.microsoft.com/?linkid=9712957 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users