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 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 href="mailto:ml067@hdm-stuttgart.de" target="_blank">ml067@hdm-stuttgart.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<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 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 href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a 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 href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a><br>