Migrate my LXC containers from snap to apt

I did manage to install the DEB version of LXD by running in order:

  • sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
  • wget http://archive.ubuntu.com/ubuntu/pool/main/l/lxd/lxd-client_3.0.3-0ubuntu1~18.04.1_amd64.deb
  • sudo dpkg -i lxd-client_3.0.3-0ubuntu1~18.04.1_amd64.deb
    *wget http://archive.ubuntu.com/ubuntu/pool/main/l/lxd/lxd_3.0.3-0ubuntu1~18.04.1_amd64.deb
  • sudo dpkg -i lxd_3.0.3-0ubuntu1~18.04.1_amd64.deb

Now if I do sudo /usr/bin/lxc ls I don’t see any containers which is normal I guess. If I switch the default remote to lxd.snap one then I can see my containers again.

But the problem now is:

vagrant@n1:~$ sudo /usr/bin/lxc move lxd.snap:migrate local:migrate
Error: Unable to perform container live migration. CRIU isn't installed on the source server

I tried the command sudo snap set lxd criu.enable=true but it doesn’t change anything. Do you know what could be the reason of that?

I can see it there but still doesn’t work:

vagrant@n1:~$ sudo cat /var/snap/lxd/common/config
# This file is auto-generated, do NOT manually edit
daemon_debug=false
daemon_group=lxd
ceph_builtin=false
openvswitch_builtin=false
criu_enable=true
shiftfs_enable=auto