[Lxc-users] Moving lxc containers
Amit Uttamchandani
amit.uttam at gmail.com
Mon Mar 28 23:21:01 UTC 2011
On Mon, Mar 28, 2011 at 12:59:25PM +1100, Trent W. Buck wrote:
>
> If you use tar, make sure to pass --numeric-owner, ESPECIALLY if the
> container is RH-derived and the host is Debian-derived (or vice-versa).
>
> Otherwise things MOSTLY work except you get a few really strange
> behaviours, and you eventually track it down and realize that the untar
> operation changed UIDs to match the new dom0, e.g. the container sees
>
> -rwsr-xr-- 1 root cups 48112 Feb 18 07:18
> /usr/lib/dbus-1.0/dbus-daemon-launch-helper
>
> instead of
>
> -rwsr-xr-- 1 root messagebug 48112 Feb 18 07:18
> /usr/lib/dbus-1.0/dbus-daemon-launch-helper
>
Thanks for the reply.
Hmmm...I could try this. I was thinking more along the lines of rsync.
Since some containers are running production code, I would then rsync
over the container to another system, make and test changes on the
mirrored container and then rsync back the changes.
More information about the lxc-users
mailing list