<br>With that information you can populate your dhcp configuration file with all the possible MACs that will be generated since you already know the range of IPs that you have defined in your OpenNebula vnet definition file.<br>

<div><br></div><div>Gnep>>> Understood. But that requires pre-configure the dhcp server.</div><div><br></div>Nevertheless, there are other methods that also work for the VM to get automatically configured with its assigned IP. For example you could follow the instructions described in the following article:<br>
<div><a href="http://opennebula.org/doku.php?id=documentation:rel1.4:cong" target="_blank">http://opennebula.org/doku.php?id=documentation:rel1.4:cong</a><br></div><div><br></div><div>Gnep>>> Does this work for windows guest and any HVM guest?</div>
<div><br></div><div><br></div><br><div class="gmail_quote">On Thu, Sep 10, 2009 at 1:53 AM, Jaime Melis <span dir="ltr"><<a href="mailto:j.melis@gmail.com">j.melis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Gnep,<br>The MAC address is built using the first two bytes defined in oned.log (MAC_PREFFIX) and the remaining bytes is the IP in hexadecimal. For instance:<br><br>  IP=192.168.1.9 => MAC=00:03:c0:a8:01:09<br><br>With that information you can populate your dhcp configuration file with all the possible MACs that will be generated since you already know the range of IPs that you have defined in your OpenNebula vnet definition file.<br>

<br>Nevertheless, there are other methods that also work for the VM to get automatically configured with its assigned IP. For example you could follow the instructions described in the following article:<br><a href="http://opennebula.org/doku.php?id=documentation:rel1.4:cong" target="_blank">http://opennebula.org/doku.php?id=documentation:rel1.4:cong</a><br>

<br>I hope this helps.<br><br>Jaime<br><br><div class="gmail_quote"><div><div class="h5">On Wed, Sep 9, 2009 at 6:26 PM, Jass Zhao <span dir="ltr"><<a href="mailto:jass.zhao@gmail.com" target="_blank">jass.zhao@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div><div class="h5">
<div>Hi,<br></div><div><br></div><div>I'm planning to use opennebula, and I got a question about vm ip address.</div><div><br></div><div>Assuming I submit a Xen vm, nebula automatically create the guest os configuration file, which includes the vm's mac address. If the vm use dhcp to get its ip, the vm is the only one that knows what the ip is. In other words, it seems opennebula has no way to get the vm ip in advance. How can I get the vm's ip once I submit a vm.</div>


<div><br></div><div>From the documents, "onevnet show“ could tell the vm ip. I'm confused. Does vm register its ip back to opennebula?</div><div><br></div><div>Gnep</div><div><br></div><div><br></div>
<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></blockquote></div><br>
</blockquote></div><br>