Changes

Jump to navigation Jump to search
515 bytes removed ,  13:22, 12 July 2017
Line 51: Line 51:  
== Building CRIU From Source ==
 
== Building CRIU From Source ==
   −
=== Native Compilation ===
+
Simply run <code>make</code> in the CRIU source directory. This is the standard way, but there are some options available.
Simply run <code>make</code> in the CRIU source directory.
     −
=== Compilation in Docker container ===
+
# There's a ''docker-build'' target in Makefile which builds CRIU in Ubuntu Docker container. Just run <code>make docker-build</code> and that's it.
 
+
# CRIU has functionality that is either optional or behaves differently depending on the kernel CRIU is running on. By default build process includes maximum of it, but this behavior [[configuring|can be changed]].
There's a ''docker-build'' target in Makefile which builds CRIU in Ubuntu Docker container. Just run <code>make docker-build</code> and that's it.
+
# You may [[Manual build deps|specify build dependencies by hands]]
 
  −
=== Non-standard compilation ===
  −
 
  −
<div class="toccolours mw-collapsible mw-collapsed" style="width:800px">
  −
Building natively, but specifying built dependencies manually
  −
<div class="mw-collapsible-content">
  −
cd deps
  −
rsync -a --exclude=.git --exclude=deps .. criu-`uname -m`
  −
cd criu-`uname -m`
  −
make \
  −
  USERCFLAGS="-I`pwd`/../`uname -m`-linux-gnu/include -L`pwd`/../`uname -m`-linux-gnu/lib" \
  −
  PATH="`pwd`/../`uname -m`-linux-gnu/bin:$PATH"
  −
sudo LD_LIBRARY_PATH=`pwd`/../`uname -m`-linux-gnu/lib ./criu check
  −
cd ../..
  −
</div>
  −
</div>
  −
 
  −
=== Configuration ===
  −
 
  −
CRIU has functionality that is either optional or behaves differently depending on the kernel CRIU is running on. By default build process includes maximum of it, but this behavior can be changed.
  −
 
  −
''Main article: [[Configuring]]''
      
== Installation ==
 
== Installation ==

Navigation menu