Stateful snapshots for containers

Is it possible to implement stateful snapshots for LXC containers?
Currently this feature is not fully supported for containers because of CRIU limitations.

That correct. Stateful snapshots work for containers, but only containers that are compatible with CRIU, which at this time is basically busybox based containers only.

1 Like

What’s are example of such containers?

does installing criu on Ubuntu containers help?
apt install criu

criu needs to be installed on the LXD host, but it is included in the snap package already.

1 Like
lxc launch images:busybox/1.34.1 c1
lxc snapshot c1 --stateful
lxc restore c1 snap0
1 Like