<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Simon,</div><div><br></div><div>If I understand your request properly, you are actually referring to the Amazon Elastic IP behavior.</div><div>This allows you to lease an IP, associate it with a running VM, de-associate it, and release the IP (if you want to).</div><div><br></div><div>We recently developed a prototype to enable this in opennebula, you may be interested by this post in the blog:</div><div><a href="http://blog.opennebula.org/?p=2695">http://blog.opennebula.org/?p=2695</a></div><div><br></div><div>And you may want to check the screencast:</div><div><a href="http://www.youtube.com/watch?v=q1I4cR69sW8">http://www.youtube.com/watch?v=q1I4cR69sW8</a></div><div>and see if that's what you are looking for.</div><div><br></div><div>Thanks,</div><div><br></div><div>-sebastien</div><br><div><div>On Mar 23, 2012, at 11:55 AM, Simon Boulet wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Shank, Carlos,<br><br>@Shank I dont see why this breaks anything. Users can already submit<br>VM with multiple NICs. Plus I believe NIC hotplug is supported by most<br>hypervisors out there. Say I run a load balancer VM, I can't afford to<br>have to restart the VM to add NIC/ IP address. I know I can simply<br>hotplug the NIC from the host but the problem is that OpenNebula<br>handles the IP Leases. I need to a way to tell OpenNebula that a new<br>IP address is used /reserved by the VM.<br><br>@Carlos<br><br>I would be more than happy to help. Here is what I believe needs to be<br>implemented:<br><br>1- Implementing two new calls in the oned XML RPC API (on.vn.assign<br>and on.vn.unassign)<br><br>Standard OpenNebula checks / assignment ie. make sure the user has<br>access to the Virtual Network and that an IP address is available.<br><br>2- Implement 2 new VNM scripts ex. addnic and remnic<br><br>There could be several ways of implementing those scripts depending of<br>the hypervisors (VNM driver of the host). The script would receive<br>sufficient information to know to which VM the new NIC is to be<br>attached ex. : base64 encoded XML containing the new <NIC>..</NIC> and<br>the VMID as a second parameter?<br><br>3- Implement "assign" and "unassign" calls in onevnet cli and Sunstone.<br><br>I believe we have sufficient knowledge and time here to add this<br>feature (the oned XML-RPC call, the custom VNM we use here, and could<br>do the Sunstone part too... would need someone for the cli work as<br>well as for adding the addnic and remnic to the different VNMs).<br><br>I need confirmation this is how we should be implementing it, and<br>maybe some help through the process. Feel free to contact me directly,<br>or direct me to another mailing-list for development work.<br><br>Simon<br><br>2012/3/23 Carlos Martín Sánchez <<a href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a>>:<br><blockquote type="cite">Hi Simon,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">That functionality is not available in OpenNebula at the moment, but it is<br></blockquote><blockquote type="cite">something we have in mind to be included at some point in the mid or<br></blockquote><blockquote type="cite">long-term.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'm not sure if your email is a feature request, or you were asking for<br></blockquote><blockquote type="cite">comments on how to implement it. We can give you support if that is the<br></blockquote><blockquote type="cite">case.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Regards<br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Carlos Martín, MSc<br></blockquote><blockquote type="cite">Project Engineer<br></blockquote><blockquote type="cite">OpenNebula - The Open-source Solution for Data Center Virtualization<br></blockquote><blockquote type="cite"><a href="http://www.OpenNebula.org">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a> | @OpenNebula<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Thu, Mar 22, 2012 at 10:38 PM, Simon Boulet <<a href="mailto:simon@nostalgeek.com">simon@nostalgeek.com</a>> wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Hello<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I'd like to be able to Add IP addresses (Leases) to running VM (hot<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">plugging new NIC).<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Is this something possible? From what I understand this is not<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">possible (as of OpenNebula 3.3). A VM would have to be destroyed and a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">new template submitted.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">My thinking was something like adding a one.vn.assign API call and an<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">"assign" option under the Lease Management page (on Sunstone). Then a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">window would come up where you can pick an existing VM. However, I am<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">not sure how this would interact with the hypervisor, perhaps a call<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">to a new vmm script (for hypervisors that can do NIC hotplug).<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Perhaps an "unassign" call would make sense too (hot remove of IP Leases).<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">What are your thoughts?<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Thanks<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Simon<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Users mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>http://lists.opennebula.org/listinfo.cgi/users-opennebula.org<br></div></blockquote></div><br></body></html>