I am receiving the following error:
Error: Failed to run: /snap/lxd/current/bin/lxd forkmigrate mycontainer /var/snap/lxd/common/lxd/containers /var/snap/lxd/common/lxd/logs/mycontainer/lxc.conf /var/snap/lxd/common/lxd/containers/mycontainer/state true:
The setup is as follows:
I have two AWS Ubuntu 18.04 nodes, with LXD 4.6 and CRIU installed. One is the source node, the other is the remote. On the source, I am running a simple script which prints a number every few seconds and increments it. I am successfully able to take a stateful snapshot, and then do an incremental copy to the destination node. However, on the destination node, I am unable to restore the container statefully.
On the source:
$ lxc snapshot mycontainer --stateful
$ lxc copy mycontainer dest:mycontainer --refresh
On the destination:
$ lxc list
+-------------+---------+------+------+-----------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+-------------+---------+------+------+-----------+-----------+
| mycontainer | STOPPED | | | CONTAINER | 2 |
+-------------+---------+------+------+-----------+-----------+
$ lxc start mycontainer
$ lxc restore mycontainer snap1 --stateful
Error: Failed to run: /snap/lxd/current/bin/lxd forkmigrate mycontainer /var/snap/lxd/common/lxd/containers /var/snap/lxd/common/lxd/logs/mycontainer/lxc.conf /var/snap/lxd/common/lxd/containers/mycontainer/state true:
Any suggestions would be helpful. Thanks.