[one-users] DHCP and OpenNebula

Jaime Melis jmelis at opennebula.org
Fri May 9 02:17:54 PDT 2014


Valentin,

I actually hadn't thought of that, it's a great idea :) You could even map
the other context values, not just the IP!

Do you have this hook per chance?

cheers,
Jaime


On Fri, May 9, 2014 at 10:12 AM, Valentin Bud <valentin.bud at gmail.com>wrote:

> Hello Christophe,
>
> If you really want to use DHCP in combination with OpenNebula I suggest you
> take a look over omshell [1].
>
> With a simple hook you could enter the required DHCP host entry via OMAPI
> and your VM will pick it up at boot.
>
> [1]: http://www.linuxcommand.org/man_pages/omshell1.html
>
> Best,
> Valentin
>
>
> On Thu, May 8, 2014 at 6:46 PM, Ionut Popovici <ionut at hackaserver.com>wrote:
>
>>  NAT don't have anything how you manage your inside network or
>> control'it ..
>> DHCP will not masquerade your ip's
>> DHCP is Dinamyc Host Control Protocol this way you cand control the hosts
>> .. or you can control manualy configuring each host or use Conextualization
>> scripts to have ip's form your opennebula lesses
>> http://archives.opennebula.org/documentation:rel4.4:cong
>> On 5/8/2014 6:31 PM, Christophe Duez wrote:
>>
>> Owkey like that I know but I thought there was a script or something. so
>> that you don't need to type all the IP's
>> The problem is that I have only 1 ip-address that has connection to the
>> internet.
>> this ip is dedicated to a vm running NAT and DHCP so the other VM's will
>> get an IP from this VM's DHCP  and can pass through the NAT for connection
>> to the outside world.
>> having to put all the IP's in the DHCP config file is crazy work not?
>>
>>
>> On Thu, May 8, 2014 at 4:41 PM, Ionut Popovici <ionut at hackaserver.com>wrote:
>>
>>>  On 5/8/2014 5:09 PM, Christophe Duez wrote:
>>>
>>> I know of the mac address of opennebula but I don't know how to enter
>>> this in a dhcp config file :/
>>>
>>>   isc-dehcp-server config .
>>> /etc/dhcp/dhcpd.conf
>>>
>>> subnet 10.200.0.0 netmask 255.255.255.224 {
>>>   range 10.200.0.2 10.200.0.30;
>>>   option domain-name-servers 10.200.0.1;
>>>   option routers 10.200.0.1;
>>>   option broadcast-address 10.200.0.31;
>>>   default-lease-time 600;
>>>   max-lease-time 7200;
>>> }
>>>
>>> host host-2 {
>>>   hardware ethernet 02:00:0a:c8:00:02;
>>>   fixed-address 10.200.0.2;
>>> }
>>> host host-3 {
>>>   hardware ethernet 02:00:0a:c8:00:03;
>>>   fixed-address 10.200.0.3;
>>> }
>>> host host-4 {
>>>   hardware ethernet 02:00:0a:c8:00:04;
>>>   fixed-address 10.200.0.4;
>>> }
>>>
>>> ............
>>>
>>> host host-30 {
>>>  hardware ethernet 02:00:0a:c8:00:1E;
>>>  fixed-address 10.200.0.30;
>>>
>>> }
>>>
>>>
>>> On Thu, May 8, 2014 at 3:26 PM, Ionut Popovici <ionut at hackaserver.com>wrote:
>>>
>>>>  Or you can make you dhcp server with pools and add fixed address via
>>>> mac
>>>> Because opennebula use very nice mac asingment based on ip transformed
>>>> on hexa.
>>>> Default mac for opennebula is 02:00 and other 4 hexa digits are ip
>>>> address decimal tranformed on hexa.
>>>> for ip 10.10.10.10 opennebula will use mac
>>>> 02:00:0a:0a:0a:0a
>>>> or ip 10.10.0.1 = 02:00:0a:0a:00:01
>>>> with this you can easy make an dhcp lesses for your networks
>>>>
>>>> On 5/8/2014 4:04 PM, Christophe Duez wrote:
>>>>
>>>> But I need to know how to do it. not simply install and work....
>>>>
>>>>
>>>> On Thu, May 8, 2014 at 2:58 PM, Гусев Павел <pgusev at qsoft.ru> wrote:
>>>>
>>>>>  I think you must us Virtual Router (from Marketplace) with DHCP
>>>>> daemon
>>>>>
>>>>> --
>>>>> С уважением,
>>>>> Гусев Павел
>>>>> Руководитель отдела системного администрирования
>>>>>
>>>>> QSOFT | Ведущий web-интегратор
>>>>>
>>>>> офис 7(495) 771-7363 #110 | моб. 7(926) 850-1108
>>>>> pgusev at qsoft.ru
>>>>> Москва, Авангардная улица, 3  |  qsoft.ru
>>>>> San Francisco, 222 Columbus Ave |  qsoftus.com
>>>>>
>>>>>
>>>>>
>>>>> 08.05.2014, 16:25, "Christophe Duez" <
>>>>> christophe.duez at student.uantwerpen.be>:
>>>>>
>>>>>  Hello,
>>>>> Is it possible that a virtual DHCP-server gives ip addresses to the
>>>>> other VM's and that OpenNebula will take over this ip-address in sunstone?
>>>>> Because now my dhcp gives the new VM an IP-address but in the sunstone
>>>>> interface the VM has an other IP given by the Virtual Network template
>>>>>
>>>>> can this be changed?
>>>>>
>>>>> --
>>>>> Kind regards,
>>>>> Duez Christophe
>>>>> Student at University of Antwerp :
>>>>> Master of Industrial Sciences: Electronics-ICT
>>>>>
>>>>> E christophe.duez at student.uantwperen.be
>>>>> L linkedin duez-christophe<http://www.linkedin.com/pub/duez-christophe/74/7/39>
>>>>>      ,
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at lists.opennebula.org
>>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>>
>>>>>
>>>>
>>>>
>>>>  --
>>>> Kind regards,
>>>> Duez Christophe
>>>> Student at University of Antwerp :
>>>> Master of Industrial Sciences: Electronics-ICT
>>>>
>>>> E christophe.duez at student.uantwperen.be
>>>> L linkedin duez-christophe<http://www.linkedin.com/pub/duez-christophe/74/7/39>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing listUsers at lists.opennebula.orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>
>>>>
>>>>
>>>
>>>
>>>  --
>>> M.v.g.
>>> Duez Christophe
>>>
>>> T +32497552655
>>> E duez_christophe at hotmail.com
>>> S christophe.duez
>>> L linkedin duez-christophe<http://www.linkedin.com/pub/duez-christophe/74/7/39>
>>>
>>>
>>>
>>
>>
>>  --
>> M.v.g.
>> Duez Christophe
>>
>> T +32497552655
>> E duez_christophe at hotmail.com
>> S christophe.duez
>> L linkedin duez-christophe<http://www.linkedin.com/pub/duez-christophe/74/7/39>
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
> --
> Valentin Bud
> http://databus.pro | valentin at databus.pro
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
Jaime Melis
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | jmelis at opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140509/31bc3aa3/attachment-0002.htm>


More information about the Users mailing list