[lxc-devel] Hot-add network devices in LXC

Daniel Lezcano daniel.lezcano at free.fr
Fri Mar 11 06:57:22 UTC 2011


On 03/11/2011 02:00 AM, Carlos N. A. Corrêa wrote:
> Hi, people.
>
> I'm trying to implement a mechanism to permit the addition of a new network
> device to a container "on-the-fly".
>
> That would be useful to me in some complex virtual networking scenarios,
> where a container need to connect to a newborn bridge and I can't stand to
> lxc-stop/modify config manually/lxc-start.
>
> I'm thinking about:
>
> 1. Hacking commands.(h|c) to create a new callback for hot netdev addition
> 2. Implement the callback through a call to instanciate_(veth|macvlan|etc)
> 3. Updating lxc_handler->conf->network by adding a new netdev to the list
>
> Could this be accomplished some other way? Do you think that it could be
> useful to others?

At the first glance, that sounds good.





More information about the lxc-devel mailing list