[pve-devel] [PATCH 3/3] add hotplug ip configuration

Dietmar Maurer dietmar at proxmox.com
Fri Jun 26 16:49:38 CEST 2015


> fixme:
> 
> -ip removal
> -ipv6 support
> -permanent guest file write config ?

Hi Alexandre,

very interesting patches! 

I am not sure if you can update the IP configuration this way, because
the correct way to do it is dependent on the OS. For example
on debian I would expect something like this:

# ifdown ethX
# rewrite config
# ifup ethX

So I would move that code into the LXC setup classes (PVE/LXCSetup/*.pm).

Or do you think that is not necessary?

I am also thinking about adding a PVE/LXCSetup/CloudInit.pm class. This
class is used for containers supporting cloud-init, and I think cloud-init
has its own way to reconfigure network at runtime?




More information about the pve-devel mailing list