<div dir="ltr">Hello Kerry,<div><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div></div><div>I am unsure how to use a DHCP client to suggest an IP to the DHCP server, or if DHCP supports this.<br></div></div></blockquote><div><br></div><div>The DHCP client can be configured to request a specific IP address from the DHCP server [1].</div><div><br></div><div>[1]: <a href="http://superuser.com/questions/487607/how-to-request-a-specific-ip-address-from-dhcp-server">http://superuser.com/questions/487607/how-to-request-a-specific-ip-address-from-dhcp-server</a><br></div><div><br></div><div>Best,<br>Valentin</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div></div><div><br></div><div>Thanks!!<br></div><div>Kerry<br></div></div><div class=""><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 8, 2014 at 1:42 AM, Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">The context packages are meant to be used with static networking. To<br>
add that parameters to network configuration you can do one of these<br>
things:<br>
<br>
* Create the network configuration in the base images manually and do<br>
not set network contextualization in OpenNebula so they are not<br>
overwritten.<br>
* Modify the context packages to add those parameters [1]<br>
<br>
For the third thing there is no way to do it. OpenNebula gets an IP<br>
from the network pool and assigns it to the NIC. There is no way to<br>
change it after it is selected and there is no external method of<br>
selecting the IP. What you can do is configure DHCP so it picks the<br>
same IP as OpenNebula had selected for the VM. The MAC addresses are<br>
generated from the MAC prefix and the IP, you can configure DHCP with<br>
those mac/ip pairs.<br>
<br>
MAC = PREFIX + IP in hex<br>
<br>
02:00:0a:00:00:01 = 02:00 + 10.0.0.1 (in hex is 0a:00:00:01)<br>
<br>
[1] <a href="https://github.com/OpenNebula/addon-context-linux/blob/master/base_rpm/etc/one-context.d/00-network#L103-L114" target="_blank">https://github.com/OpenNebula/addon-context-linux/blob/master/base_rpm/etc/one-context.d/00-network#L103-L114</a><br>
<div><div><br>
On Sat, Sep 6, 2014 at 12:23 AM, kerryhall . <<a href="mailto:kerryhall@gmail.com" target="_blank">kerryhall@gmail.com</a>> wrote:<br>
> Hi folks,<br>
><br>
> I have a small ONE cluster that I am currently setting up on 4.8. I have a<br>
> ethernet network model, and I have added the following line to my template:<br>
><br>
> SET_HOSTNAME="$<a href="http://NAME.mydomain.int" target="_blank">NAME.mydomain.int</a>"<br>
><br>
> So far so good, but I need to be able to do the following three things:<br>
> 1. set "BOOTPROTO=dhcp" in /etc/sysconfig/network-scripts/ifcfg-eth0 on new<br>
> vms<br>
> 2. set "DHCP_HOSTNAME="$<a href="http://NAME.mydomain.int" target="_blank">NAME.mydomain.int</a>" on new vms<br>
> 3. set the "IP" field in sunstone to vm's IP address provided by DHCP<br>
><br>
> How do I accomplish these items? I was thinking run a bash script on vm<br>
> startup for items 1 and 2, unless there is a builtin ONE way to do this, but<br>
> what about item 3? Is there just a straight up DHCP networking model I can<br>
> use to make this easier? Does anyone currently use ONE with DHCP?<br>
><br>
> Thanks!!<br>
> Kerry<br>
><br>
</div></div>> _______________________________________________<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>
<span><font color="#888888"><br>
<br>
<br>
--<br>
Javier Fontán Muiños<br>
Developer<br>
OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a><br>
</font></span></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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></div></div>