[one-users] How opennebula allocate ip to vm

Jass Zhao jass.zhao at gmail.com
Wed Sep 9 21:34:08 PDT 2009


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.

Gnep>>> Understood. But that requires pre-configure the dhcp server.

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:
http://opennebula.org/doku.php?id=documentation:rel1.4:cong

Gnep>>> Does this work for windows guest and any HVM guest?



On Thu, Sep 10, 2009 at 1:53 AM, Jaime Melis <j.melis at gmail.com> wrote:

> Hi Gnep,
> 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:
>
>   IP=192.168.1.9 => MAC=00:03:c0:a8:01:09
>
> 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.
>
> 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:
> http://opennebula.org/doku.php?id=documentation:rel1.4:cong
>
> I hope this helps.
>
> Jaime
>
> On Wed, Sep 9, 2009 at 6:26 PM, Jass Zhao <jass.zhao at gmail.com> wrote:
>
>> Hi,
>>
>> I'm planning to use opennebula, and I got a question about vm ip address.
>>
>> 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.
>>
>> From the documents, "onevnet show“ could tell the vm ip. I'm confused.
>> Does vm register its ip back to opennebula?
>>
>> Gnep
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20090910/2058b280/attachment.htm>


More information about the Users mailing list