[lxc-devel] live migrate and /dev/lxd

Tycho Andersen tycho.andersen at canonical.com
Mon Jun 22 14:13:45 UTC 2015


On Mon, Jun 22, 2015 at 06:41:16AM +0200, Dietmar Maurer wrote:
> > On dump, this would probably just be having the plugin query LXD to
> > make sure that all requests for the container were flushed so that
> > CRIU would at least dump the socket buffers for the kernel. On
> > restore, the plugin would tell /dev/lxd to reconnect in some sort of
> > "previously connected" mode, and then hand that FD back to CRIU as the
> > fd that the application sees when it is resumed. As long as LXD and
> > the plugin know how to negotiate restoring the external resource's
> > state, everything should Just Work.
> 
> That may work, but sounds quite complex to me.

All of migration is quite complex :)

> So what kind of events
> to you plan to sent to the container (what for)?

Perhaps hardware hotplug events or cloud-init userdata updates or
something; I'm not sure we've really thought about all the ways we
plan to use it yet.

Tycho


More information about the lxc-devel mailing list