[Lxc-users] Moving lxc containers

Ramez Hanna rhanna at informatiq.org
Sun Mar 27 09:45:36 UTC 2011


On Sun, 27 Mar 2011, 11:34:47 EEST, Amit Uttamchandani <amit.uttam at gmail.com> wrote:

>
> I'm just wondering what the best way is to move an lxc container? Can I
> just tar the root filesystem and untar it on another system? Or should I
> rsync it over?
>
> I understand that before doing any of the above, the container should be
> shutdown first. However, is there a way to do this while the container
> is running?
>
> Thanks,
> Amit
>
> ------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet
> the growing manageability and security demands of your customers.
> Businesses are taking advantage of Intel(R) vPro (TM) technology - will
> your software   be a part of the solution? Download the Intel(R)
> Manageability Checker   today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users

AFAIK you should be able to tar the filesystem even while running
in case the container isx already running you might want to skip a few dirs like /proc and /sys and /dev and maybe /var/run

--
br
rh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110327/98c3473a/attachment.html>


More information about the lxc-users mailing list