How to use live migration without Snap?

How to use live migration without Snap?

I wonder how you can enable CRIU without using Snap?
snap set lxd criu.enable=true

what if I build LXD from source?

to be honest i use alpine linux with criu installed (apk add criu)

Regards.

Your mileage may vary but here is the gist

Hello! @k4my4b

Doesn’t LXD provide for live migration without using Snap?

I did not find anything in the LXD documentation about this (https://linuxcontainers.org/lxd/docs/master/howto/move_instances/#move-instances)

PS: In any case, thanks for the help @k4my4b
Regards.

With instances yes, as for the server itself (lxd) not as far as I know.

@k4my4b I am very grateful to you for your help!

I need live migration between lxd clusters without snap

is it possible?

Regards.

@Ibragim_Ganizade
Apparently not
" For containers, there is limited support for live migration using CRIU. However, because of extensive kernel dependencies, only very basic containers (non-systemd containers without a network device) can be migrated reliably. In most real-world scenarios, you should stop the container, move it over and then start it again."
However if that’s something you wanna do still according to the docs having criu installed on your system will suffice

1 Like

@k4my4b Thank you very much!

as I understand it, live migration works without snap the main thing is that criu is installed in the system

Regards.

@Ibragim_Ganizade
according to the docs that appears to be the case

Otherwise, make sure you have CRIU installed on both systems.

1 Like

I also want to do it with my Snap