Checkpoint/restore in User-space [1] enables the current running state
of lxc containers to be stored as a set of image files. Then, one could
restore the container to its previous state (before checkpointing) on
the same or another system.

[1] https://criu.org/

Signed-off-by: Radostin Stoyanov <rstoyan...@gmail.com>
---
 configure.ac    |  1 +
 m4/virt-criu.m4 | 27 +++++++++++++++++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100644 m4/virt-criu.m4

diff --git a/configure.ac b/configure.ac
index ae798faa5..8defba3bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -282,6 +282,7 @@ LIBVIRT_CHECK_AVAHI
 LIBVIRT_CHECK_BASH_COMPLETION
 LIBVIRT_CHECK_BLKID
 LIBVIRT_CHECK_CAPNG
+LIBVIRT_CHECK_CRIU
 LIBVIRT_CHECK_CURL
 LIBVIRT_CHECK_DBUS
 LIBVIRT_CHECK_DEVMAPPER
diff --git a/m4/virt-criu.m4 b/m4/virt-criu.m4
new file mode 100644
index 000000000..05847d96b
--- /dev/null
+++ b/m4/virt-criu.m4
@@ -0,0 +1,27 @@
+dnl CRIU is used to checkpoint/restore LXC containers.
+dnl
+dnl Copyright (C) 2016 Katerina Koukiou
+dnl
+dnl This library is free software; you can redistribute it and/or
+dnl modify it under the terms of the GNU Lesser General Public
+dnl License as published by the Free Software Foundation; either
+dnl version 2.1 of the License, or (at your option) any later version.
+dnl
+dnl This library is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+dnl Lesser General Public License for more details.
+dnl
+dnl You should have received a copy of the GNU Lesser General Public
+dnl License along with this library.  If not, see
+dnl <http://www.gnu.org/licenses/>.
+dnl
+
+AC_DEFUN([LIBVIRT_CHECK_CRIU],[
+    AC_PATH_PROG([CRIU], [criu], [no],
+        [$PATH:/sbin:/usr/sbin:/usr/local/sbin])
+    if test "x$ac_cv_path_CRIU" != "xno"; then
+        AC_DEFINE_UNQUOTED([CRIU], ["$CRIU"],
+        [Location of criu program])
+    fi
+])
-- 
2.14.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to