<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hey Jaime,<br>
thanks for the explanation. Maybe the formulation of my question
wasn't really good at all. I've read most of the documentation and
bridging isn't a new topic for me.<br>
<br>
When OpenNebula launches a (the first) VM, the vnet0 is attached to
the bridge (this works flawlessly in my case).<br>
If my bridge has the IP 141.x.x.66 and the VMs get an IP , ranged
from 141.x.x.67-141.x.x.80, how are the packets been routed to the
VMs?<br>
<br>
Does OpenNebula (my context Script) just set the VM IP within the
running VM, or is there also a mechanism that sets the corresponding
IP (eg. 141.x.x.67) also on the bridge, so the VM is visible to the
Network?<br>
Or are VLAN Tags/Open vSwitch/ebtables the only way to process IP
Packages to the KVM virtual Interfaces?<br>
<br>
cheers, Martin<br>
<br>
<br>
Am 16.11.2011 17:40, schrieb Jaime Melis:
<blockquote
cite="mid:CA+HrgRom4i_BjTkXzESG3KLJuiJq+0qn7amUpB0zwQ-AgeU_Aw@mail.gmail.com"
type="cite">Hi Martin,
<div><br>
</div>
<div>The way the default network configuration works in OpenNebula
is by making the hypervisor hook the virtual network interface
of a virtual machine to a pre-existent bridge (created by the
administrator), which is, in turn, connected to a real physical
device:</div>
<div><br>
</div>
<div>
<div><font class="Apple-style-span" face="'courier new',
monospace"> +-------------------+</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"> | |</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"> | br0 |</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"> | |</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"> +---+----------+----+</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"> | |</font></div>
<div>
<font class="Apple-style-span" face="'courier new', monospace">
| |</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace">+---------+ +-----------+</font></div>
<div>
<font class="Apple-style-span" face="'courier new', monospace">|
| | |</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace">| eth0 | | vnet0 |</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace">| | | |</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace">+---------+ +-----------+</font></div>
<div><br>
</div>
br0: bridge created by administrator during the installation
process of OpenNebula (which may or may not have an IP)</div>
<div>eth0: real physical device (which doesn't have an IP)</div>
<div>vnet0: the virtual network device of the virtual machine,
created by the hypervisor.</div>
<div><br>
</div>
<div>You can verify this when running a VM by running the
following command in your worker nodes:</div>
<div><br>
</div>
<div><font class="Apple-style-span" face="'courier new',
monospace">$ bridge name<span class="Apple-tab-span"
style="white-space: pre;"> </span>bridge id<span
class="Apple-tab-span" style="white-space: pre;"> </span>STP
enabled<span class="Apple-tab-span" style="white-space: pre;">
</span>interfaces</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace">br0<span class="Apple-tab-span" style="white-space:
pre;"> </span>8000.001e682f4a02<span class="Apple-tab-span"
style="white-space: pre;"> </span>no<span
class="Apple-tab-span" style="white-space: pre;"> </span>eth0</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>vnet1</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><br>
</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace">br1<span class="Apple-tab-span" style="white-space:
pre;"> </span>8000.001e682f4a03<span class="Apple-tab-span"
style="white-space: pre;"> </span>no<span
class="Apple-tab-span" style="white-space: pre;"> </span>eth1</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><span class="Apple-tab-span" style="white-space:
pre;"> </span>vnet0</font></div>
<div><br>
</div>
<div>In this particular case there are two bridges: br0 and br1</div>
<div><br>
</div>
<div>You can read about alternative network setups here:</div>
<div><a moz-do-not-send="true"
href="http://opennebula.org/documentation:rel3.0:nm">http://opennebula.org/documentation:rel3.0:nm</a></div>
<div><br>
</div>
<div>Regards,</div>
<div>Jaime</div>
<div><br>
</div>
<div>
<div class="gmail_quote">On Mon, Nov 14, 2011 at 1:06 PM, Martin
Lauer <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:ml067@hdm-stuttgart.de" target="_blank">ml067@hdm-stuttgart.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"> Hi,<br>
I've set up my machine images with contextualization and
they're configured right, when looking into the machines
via VNC.<br>
The leases from my "<a moz-do-not-send="true"
href="http://public.net" target="_blank">public.net</a>"
are also given to the machines.<br>
Shouldn't the bridge on the host(s) "br0" be mapped with
additional IPs (the ones from the VMs)? This is just an
assumption, when thinking back to Eucalyptus, which I
tried to use before as a Private Cloud Infrastructure.<br>
<br>
Can someone give me a hint how routing is done in
OpenNebula and how packets are accepted by the bridge!<br>
<br>
Thanks,<br>
martin<span><font color="#888888"><br>
<pre cols="72">--
Martin Lauer
<font color="#c0c0c0">
<span style="color: rgb(0, 0, 0); font-family: Verdana,Helvetica,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;">Hochschule der Medien<span> </span></span>
<span style="color: rgb(0, 0, 0); font-family: Verdana,Helvetica,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;">Nobelstraße 10<span> </span></span>
<span style="color: rgb(0, 0, 0); font-family: Verdana,Helvetica,sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;">70569 Stuttgart<span></span></span></font></pre>
</font></span></div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org"
target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
Jaime Melis<br>
Project Engineer<br>
OpenNebula - The Open Source Toolkit for Cloud Computing<br>
<a moz-do-not-send="true" href="http://www.OpenNebula.org"
target="_blank">www.OpenNebula.org</a> | <a
moz-do-not-send="true" href="mailto:jmelis@opennebula.org"
target="_blank">jmelis@opennebula.org</a><br>
</blockquote>
</body>
</html>