I
I
Igor2013-11-25 11:05:41
Data synchronization
Igor, 2013-11-25 11:05:41

How to transfer LXC containers between machines with different hardware?

For testing, LXC virtualization based on ubuntu 12.04 is used

. How to transfer LXC containers between machines with different hardware?

Is it possible to selectively sync some of them?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vlad Zhivotnev, 2013-11-25
@leotop

install lxctl and migrate via lxctl migrate in the future.
In general, sync rootfs, copy the virtual machine config and run it. Everything.

I
Igor, 2013-11-25
@leotop

Portability - LXC containers can be zipped up and moved to any other host with the same processor architecture. This works great when your scaling your application, as individual services can be duplicated or moved with ease.
Solution from https://www.digitalocean.com/community/articles/getting-started-with-lxc-on-an-ubuntu-13-04-vps
For different architectures, chroot followed by rsync
is recommended. if only as normal servers via remote rsync or equivalents

V
Vitaliy, 2014-12-11
@omsknews

Hello everybody! and who will tell you where you can see an example of transferring all the happiness from a physical server to lxc? then banal copying to rootfs does not lead to anything good ((((

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question