Hi Valentin,<div><br></div><div>That's exactly how it works now. When you set</div><div><br></div><div>NIC = [</div><div>  NETWORK_ID = <vnet_id>,</div><div>  IP = <ip></div><div>]</div><div><br></div><div>


You are not hardcoding the IP, you are requesting that IP from the leases of the network. It will be assigned only if it is free, and will be marked as used, just like any other IP assigned automatically.</div><div><br></div>


<div>Regards<br clear="all">--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>


<br>
<br><br><div class="gmail_quote">On Tue, Nov 13, 2012 at 10:39 AM, Valentin Bud <span dir="ltr"><<a href="mailto:valentin.bud@gmail.com" target="_blank">valentin.bud@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hello Cyrille,<br>
<br>
I have noticed something this morning about IP addresses management<br>
inside OpenNebula and I thought I'd add my opinion.<br>
<br>
As far as I have noticed whenever you instantiate a machine OpenNebula<br>
uses the next IP address from the defined pool in the vnet. That's<br>
almost DHCP.<br>
<br>
One can check the status of the network using `onevnet show <vnet_id>`.<br>
Under `USED LEASES` one can see what leases are in use.<br>
<br>
If, for whatever reason, one wants a certain ip address to use for a<br>
particular VM, one can use `IP=x.x.x.x` in the template.<br>
<br>
I think here arises an issue. Human beings aren't good with numbers,<br>
that's one of the reasons we have DNS. I for one, forget which IP is<br>
allocated to which VM, I am talking about the ones I specify in the<br>
template using `IP`. I don't care which IP is allocated to which VM, I<br>
just care which IPs are allocated or, better said, reserved from the pool.<br>
<br>
I know there tools that perform the specific function of IP address<br>
management.<br>
<br>
OpenNebula could check if the IP address is in use whenever one<br>
creates/clones a template. The reserved IP address could be listed<br>
with `onevnet show <vnet_id>` under `RESERVED LEASES` or something.<br>
<br>
What do you people think about this?<br>
<br>
I also am aware that you guys welcome patches. I wish my Ruby skills<br>
were better so I could code this feature by myself. Speaking of Ruby,<br>
does anyone have some good docs for a noob? :)<br>
<br>
Cyrille, I hope I haven't hijacked your thread. I think the above<br>
thoughts are connected with your last question from your email. If<br>
that's not the case I am sorry.<br>
<br>
Cheers and Goodwill,<br>
v<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>
</blockquote></div><br></div>