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

Dietmar Maurer dietmar at proxmox.com
Fri Jun 26 17:33:42 CEST 2015


> lxc-attach -n container -s NETWORK -- /sbin/ip link ...
> 
> From lxc doc:
> https://linuxcontainers.org/fr/lxc/manpages/man1/lxc-attach.1.html
> "Or, alternatively, use the -s to use the tools installed on the host outside
> the container:
> lxc-attach -n container -s NETWORK -- /sbin/ip link delete eth1"
> 
> So it should work why any guest os.

Ah, OK

> Now, I don't known how/write the config. (maybe lxc-attach -- echo "...config"
> > /etc/network/interfaces )
> I don't known if update config when container is running.
> 
> I don't have checked, but currently, if container is offline and we change ip
> address,
> do you rewrite the guest network config when vm start? or only on vm_create ?

Yes, we rewrite at start:

src/lxc-pve-mount-hook 




More information about the pve-devel mailing list