[pve-devel] [PATCH 2/2] setup DHCP server at vm_start

Alexandre DERUMIER aderumier at odiso.com
Tue Sep 3 08:43:10 CEST 2013


>>And what if bridge or vlan changes? Above only works for ip changes. 

Do you mean, modify bridge configuration ? or change the vm network nic config ?

Libvirt do it like this, setup bridges/dhcp/ippool (restart dnsmasq) , and vm get ip through dhcp-config (without restart)

I don't have tried your patches yet, I need to look a little bit how ressources pool work.

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

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Mardi 3 Septembre 2013 06:37:12 
Objet: RE: [pve-devel] [PATCH 2/2] setup DHCP server at vm_start 

> >>Also, how does 'dhcp-script' option helps here? 
> with dhcp script, you don't need to restart dnsmasq deamon to change the 
> config, as the dhcp-script can do something like: 
> 
> #dhcp-script.pl macaddress 
> parse vm config files 
> return ip 

And what if bridge or vlan changes? Above only works for ip changes. 

> But As you say, I think that client will try to wait around 30s for a dhcp 
> response, so restart could be ok too. 
> (Just need to avoid parallel restart, and restart only on config change) 


More information about the pve-devel mailing list