[lxc-users] Snapshot of a LXC container

Tamas Papp tompos at martos.bme.hu
Mon Mar 10 12:49:51 UTC 2014


On 03/10/2014 01:34 PM, Richard Weinberger wrote:
> On Mon, Mar 10, 2014 at 1:11 PM, Thouraya TH <thouraya87 at gmail.com> wrote:
>> Hello,
>>
>> Please, is it possible to migrate a container to a new node and restart it
>> there ? And How? should i take a snapshot of the container or i  can
>> transfer the repository of container directly to the new node and restart it
>> ?
> Someday it may work with CRIU.
> See: http://criu.org/Main_Page

As per my understanding he asked about the filesystem, correct me if I'm
wrong.


You can just copy files over to the new place.

A good method:

rsync --delete -rvalH --numeric-ids /var/lib/lxc/CONTAINER
dsthost:/var/lib/lxc/
lxc-stop -n CONTAINER
rsync --delete -rvalH --numeric-ids /var/lib/lxc/CONTAINER
dsthost:/var/lib/lxc/
ssh dsthost lxc-start -d -n CONTAINER


tamas


More information about the lxc-users mailing list