Hi Adnan,

The required bridge setup is actually quite straight-forward. I'll
assume you want to connect your VMs to the same network your eth0 is
connected to. The following commands should be executed on the worker
nodes.

brctl addbr br0
ifconfig eth0 0.0.0.0 up
brctl addif br0 eth0
ifconfig br0 <old_eth0_ip_address>

Don't do this over an ssh connection since you will get disconnected.

That's quick recipe to make it work, but you should read documents on
bridging, especially to make the persistent, each distro has its own
mechanism:
http://wiki.debian.org/BridgeNetworkConnections
http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge
(extensive)

regards,
Jaime

On Tue, May 24, 2011 at 11:54 AM, Adnan Pasic <pq...@yahoo.de> wrote:
> Here is the problem I'm having, and as can be seen obviously the virtual
> bridge is creating this error, so please tell me what to do? Do I need to
> create a virtual bridge on my front-end? And how can I do this?
> Tue May 24 11:46:31 2011 [DiM][D]: Deploying VM 7
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> nebula1:/srv/cloud/one/one-templates/ttylinux.img
> 192.168.0.2:/srv/cloud/one/var//7/images/disk.0
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> DST: /srv/cloud/one/var//7/images/disk.0
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Creating directory /srv/cloud/one/var//7/images
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Executed "mkdir -p /srv/cloud/one/var//7/images".
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Executed "chmod a+w /srv/cloud/one/var//7/images".
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Cloning /srv/cloud/one/one-templates/ttylinux.img
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Executed "cp -r /srv/cloud/one/one-templates/ttylinux.img
> /srv/cloud/one/var//7/images/disk.0".
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Executed "chmod a+rw /srv/cloud/one/var//7/images/disk.0".
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: TRANSFER SUCCESS 7 -
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 Command
> execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then
> /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//7/images/deployment.0;
> else                              exit 42; fi'
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 STDERR follows.
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 error: Failed
> to create domain from /srv/cloud/one/var//7/images/deployment.0
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 error: Failed
> to add tap interface to bridge 'br0': No such device
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 ExitCode: 255
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: DEPLOY FAILURE 7 error:
> Failed to create domain from /srv/cloud/one/var//7/images/deployment.0
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: error: Failed to add
> tap interface to bridge 'br0': No such device
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: ExitCode: 255
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_delete.sh:
> Deleting /srv/cloud/one/var//7/images
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_delete.sh:
> Executed "rm -rf /srv/cloud/one/var//7/images".
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: TRANSFER SUCCESS 7 -
>
>
>
> ________________________________
> Von: Adnan Pasic <pq...@yahoo.de>
> An: "users@lists.opennebula.org" <users@lists.opennebula.org>
> Gesendet: 16:38 Montag, 23.Mai 2011
> Betreff: [one-users] Help needed in understand virtual bridges
>
> Hello,
> this could very likely be my last question regarding opennebula, because if
> I get this to work, my opennebula should finally start running. The question
> I have is - how do I really set up this virtual network?
> I have a front-end PC, and two clusters (with IP-addresses: 192.168.0.1 ,
> and .2, .3 respectively) and now everything is set. Even the command
> "onehost list" shows me the clusters as being discovered and connected.
> Currently I have only two interfaces in my front-end, eth0 (connecting the
> PCs over a local network) and the lo-interface.
> Can you now please tell me how I can create this virtual bridge, needed for
> our virtual machines? And is this the bridge that needs to be mentioned in
> the network-template file?
> Thank you!
> Best regards,
> Adnan
> _______________________________________________
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>
> _______________________________________________
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
Jaime Melis, Cloud Technology Engineer/Researcher
Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | jme...@opennebula.org
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to