[one-users] Help needed in understand virtual bridges

2011-05-23 Thread Adnan Pasic
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


Re: [one-users] Help needed in understand virtual bridges

2011-05-24 Thread Adnan Pasic
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 
An: "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


Re: [one-users] Help needed in understand virtual bridges

2011-05-24 Thread Jaime Melis
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 

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  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 
> An: "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
> ___

Re: [one-users] Help needed in understand virtual bridges

2011-05-24 Thread Adnan Pasic
Hello together,
thanks for your help. Unfortunately, I made a rookie mistake - I didn't 
understand that in the virtual-network template I need to set the bridge that 
was created on the CLUSTER-NODES!!! All I had to do now is find out the correct 
name of the libvirt-created bridge (virbr0) and now the VM's are finally 
running :)

Thanks a bunch for your help!




Von: Jaime Melis 
An: Adnan Pasic 
Cc: "users@lists.opennebula.org" 
Gesendet: 12:51 Dienstag, 24.Mai 2011 
Betreff: Re: [one-users] Help needed in understand virtual bridges

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 

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  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 
> An: "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-ad