[lxc-users] Copying/cloning a container between nodes if LXC/LXD is not running

Ron Kelley rkelleyrtp at gmail.com
Tue May 3 21:02:58 UTC 2016


Greetings all,

I updated some packages on my Ubuntu 15.10 server today which (when rebooted) caused the bridged networking to no longer work.  As a result, the LXD daemon would not start, in turn, preventing me from spinning up some containers.  After fixing the networking issue, I realized I don’t have an emergency plan/process to recover a container on Node-B if Node-A fails.

I am looking for a way to rsync container-1 on Node-A to Node-B if/when LXC/LXD is not running on Node-A.  I realized the UID/GID values are different between the nodes, thus I need a way to sync the rootfs between nodes and remap the UID/GID properly.

Any pointers?

Thanks.



More information about the lxc-users mailing list