[pve-devel] API to get mac and vm id
Alexandre DERUMIER
aderumier at odiso.com
Thu Sep 13 09:51:01 CEST 2012
I'm reading libvirt code, they seem to use dnsmasq on each bridge
libvirt test sample
"
@DNSMASQ@ --strict-order --bind-interfaces --conf-file= \
--except-interface lo --txt-record=example,example value \
--listen-address 192.168.122.1 --listen-address 192.168.123.1 \
--listen-address 2001:db8:ac10:fe01::1 \
--listen-address 2001:db8:ac10:fd01::1 --listen-address 10.24.10.1 \
--dhcp-range 192.168.122.2,192.168.122.254 \
--dhcp-leasefile=/var/lib/libvirt/dnsmasq/default.leases \
--dhcp-lease-max=253 --dhcp-no-override \
--dhcp-hostsfile=/var/lib/libvirt/dnsmasq/default.hostsfile\
"
I don't know if dnsmasq can register dynamic records in a dns server
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag>
À: "Alexandre DERUMIER" <aderumier at odiso.com>
Cc: "Dietmar Maurer" <dietmar at proxmox.com>, pve-devel at pve.proxmox.com
Envoyé: Jeudi 13 Septembre 2012 09:14:02
Objet: Re: [pve-devel] API to get mac and vm id
Hi,
i don't care about assigning IPs to vms BUT:
- IP should be removed from assigned pool when VM is deleted
- I want to assign hostnames to automatically to VMs based on VM id
- i want to automatically create DNS entries into our DNS system based
on hostname and IPs
So i'm not sure whether this helps the community or not.
Stefan
Am 13.09.2012 08:36, schrieb Alexandre DERUMIER:
> I don't know what exactly stefan want do do with perl.
>
> For me, I would like to be able to specify ip address for each vm interface in promox gui,
> then maybe this can configure an external dhcp server or other daemon which can do dhcp.
>
> I know that libvirt have this feature, but I really don't know how the implementation is done.
> http://libvirt.org/formatnetwork.html#elementsAddress
>
> ----- Mail original -----
>
> De: "Dietmar Maurer" <dietmar at proxmox.com>
> À: "Alexandre DERUMIER" <aderumier at odiso.com>, "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag>
> Cc: pve-devel at pve.proxmox.com
> Envoyé: Jeudi 13 Septembre 2012 06:35:22
> Objet: RE: [pve-devel] API to get mac and vm id
>
>>>> I would like to create a small tool which will act as a dhcp addon to
>> proxmox and simulate a dhcp server with perl.
>> Great ! I would like to have something like this too :)
>
> OK, can someone explain how to 'simulate a dhcp server with perl'?
> (Why not use 'dnsmasq' - or a real dhcp server)?
>
More information about the pve-devel
mailing list