[pve-devel] implementation of a dhcp service in proxmox ?

Alexandre DERUMIER aderumier at odiso.com
Wed May 22 16:01:22 CEST 2013


>>Can we use the following feature (from 'man DSNMASQ')? 
Good catch, yes indeed, I think it should work.

seem that openstack use it !  (--dhcp-script=/usr/bin/quantum-dhcp-agent-dnsmasq-lease-update)

https://lists.launchpad.net/openstack/msg20332.html

/usr/sbin/dnsmasq
> --no-hosts --no-resolv --strict-order --bind-interfaces
> --interface=tapc71e5285-a0 --except-interface=lo --domain=openstacklocal
> --pid-file=/var/lib/quantum/dhcp/93e695f6-5dae-41b1-8a92-2bce8cb0e785/pid
> --dhcp-hostsfile=/var/lib/quantum/dhcp/93e695f6-5dae-41b1-8a92-2bce8cb0e785/host
> --dhcp-optsfile=/var/lib/quantum/dhcp/93e695f6-5dae-41b1-8a92-2bce8cb0e785/opts
> --dhcp-script=/usr/bin/quantum-dhcp-agent-dnsmasq-lease-update
> --leasefile-ro --dhcp-range=set:tag0,50.50.1.0,static,120s


----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Dietmar Maurer" <dietmar at proxmox.com>, "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Mercredi 22 Mai 2013 12:33:08 
Objet: RE: [pve-devel] implementation of a dhcp service in proxmox ? 

Can we use the following feature (from 'man DSNMASQ')? 

--dhcp-script=<path> 
Whenever a new DHCP lease is created, or an old one destroyed, 
or a TFTP file transfer completes, the executable specified by 
this option is run. <path> must be an absolute pathname, no 
PATH search occurs. The arguments to the process are "add", 
"old" or "del", the MAC address of the host (or DUID for IPv6) , 
the IP address, and the hostname, if known. "add" means a lease 
has.... 

--leasefile-ro 
Completely suppress use of the lease database file. The file 
will not be created, read, or written. Change the way the lease- 
change script (if one is provided) is called, so that the lease 
database may be maintained in external storage by the script.... 


> dnsmasq also provides DNS (and DHCP) - do we need both? 
> 
> > -----Original Message----- 
> > From: Alexandre DERUMIER [mailto:aderumier at odiso.com] 
> > Sent: Mittwoch, 22. Mai 2013 11:56 
> > To: Dietmar Maurer 
> > Cc: pve-devel at pve.proxmox.com; Michael Rasmussen 
> > Subject: Re: [pve-devel] implementation of a dhcp service in proxmox ? 
> > 
> > I just found this project: 
> > 
> > http://sourceforge.net/p/small-dhcp/code/HEAD/tree/ 
> > 
> > "A small cross-platform DHCP server with a Perl back-end, allowing you 
> > to write Perl scripts to manage your DHCP leases. Requires libnet and libpcap." 
> > 
> > 
> > 
> > 
> > 
> > ----- Mail original ----- 
> > 
> > De: "Dietmar Maurer" <dietmar at proxmox.com> 
> > À: "Michael Rasmussen" <mir at datanom.net> 
> > Cc: pve-devel at pve.proxmox.com 
> > Envoyé: Mercredi 22 Mai 2013 11:22:58 
> > Objet: Re: [pve-devel] implementation of a dhcp service in proxmox ? 
> > 
> > > > I guess that is not possible (at least not easily). 
> > > > 
> > > What exactly is the problem? 
> > 
> > When do you release a lock (think of crashed cluster members, comm 
> > timeouts, ...)? 
> > _______________________________________________ 
> > pve-devel mailing list 
> > pve-devel at pve.proxmox.com 
> > http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
> 
> _______________________________________________ 
> pve-devel mailing list 
> pve-devel at pve.proxmox.com 
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list