dns and dhcp integration

l.mierzwa

Member
Jun 2, 2009
147
0
16
Are there any plans to integrate managing of dns and dhcp entries for virtual machines into pve? I currently use simple python app that I wrote to glue ldap, dhcp3, powerdns and libvirt but it feels like reinventing a wheel to create another managemant layer so I'm looking for something better.

Łukasz Mierzwa
 
Are there any plans to integrate managing of dns and dhcp entries for virtual machines into pve? I currently use simple python app that I wrote to glue ldap, dhcp3, powerdns and libvirt but it feels like reinventing a wheel to create another managemant layer so I'm looking for something better.

Łukasz Mierzwa

you mean for KVM guest (or Containers)?
 
Yes, for guests, so when You are creating guest named 'vm1' dns and dhcp entry is created for this guest.
 
Yes, for guests, so when You are creating guest named 'vm1' dns and dhcp entry is created for this guest.

how should that work? as we have full virtualization the host has no access to guest (unless you install some software inside the VM)?
 
how should that work? as we have full virtualization the host has no access to guest (unless you install some software inside the VM)?

Why do You need access to guest? You create guest with management tools, when You are setting up guest hardware and stuff You also setup it's hostname and ip address, this ip address and hostname is then added to dhcp/dns server (I use ldap as backend for both so I just add some data to ldap). You would need to get inside of guest if You want to make static configuration inside guest, using dhcp/dns does not require this.
 
To be more precise, I would like that feature. But we have that bridged network setup, so running an dhcp server on a bridge can badly interact with the existing system (most admins run an dhcp server on the local network).

Do you know a way to avoid that?
 
To be honest I never tried to run dhcp server on the host machine, I use virtual machine or another machines that aren't bridged.