Skip to content

Live migrating OVZ mainstream container

Pavel Emelyanov edited this page Mar 7, 2014 · 26 revisions

This page describes how to create and live migrate and OVZ container on Fedora 20

The p.haul needs this software to work

  • CRIU. Take the HEAD of criu repository (http://github.com/xemul/criu), or the 1.2 release
  • Python
  • The python-rpyc package
  • The protobuf-python package
After cloning the p.haul repository make sure that p.haul/*.proto links point to respective files in CRIU sources. Then run make to compile CRIU images reading modules for p.haul.

Create and start a container

Checked and known to work are the templates below

  • Centos-6-x86_64
  • Ubuntu-10.04-x86_64
Also check the known issues page for potential problems you might have while migrating a container

Migrate it

Migrating is done using the p.haul script with the help of p.haul service on destination node. Both, p.haul command and service use CRIU service to dump and restore container.

  • Start CRIU service on both nodes
 # criu service -v4 -o $log_file --daemon
  • Start P.Haul service on destination node
 # p.haul-service
  • Do live migration
 # p.haul ovz $id $dst_node_ip -v4

Report BUGs

Feel free to contact us on xemul (at) parallels (dot) com and criu (at) openvz (dot) org

Clone this wiki locally