dhaiz
(DHAIZ)
May 24, 2022, 7:40am
1
I have a question,
I’m using LXD Cluster LXD-1 and LXD-2, I have an application container and need to stay online because the data keeps flowing every second.
If I want to move the container from LXD-1 to LXD-2, is it possible to move the container to another host server without having to shut down first?
Thanks
LXD uses CRIU
but it isn’t perfect and requires you to put in some work.
Its mentioned / explained a little in the docs here
A high level overview of what needs to be done was given in this thread.
Hi, all, I am conducting my master’s research in current methods to perform live migration on containers. I have found that all migration techniques are heavily dependent on criu. As it turns out using Ubuntu 18.04 as host os, I have been unable to live migrate anything using lxc move, except alpine containers.
Keep getting several errors associated to criu in all cases.
Even with alpine the moment I install an SSH Daemon it fails. Can you suggest any scenario when live migration actually work…
It also seems possible to-do it with VM’s which might be easier but I dont have any practical experience to share, sorry!
ruskofd
(Florian Bobin (old account))
May 24, 2022, 5:23pm
3
Live-migration of containers seems to be a difficult topic compare to virtual machines. LXD VM live migration exists but for now, it is not as transparent as VMware vMotion (and even vMotion has problems with some applications).