1

What are the requirements and things to know to move an LXC container from an host to an other ?

bux
  • 626
  • 2
  • 6
  • 20

2 Answers2

0

AFAIK, we haven't working and stable solution for this task. Bleeding of edge technology for containers live migration are OpenVZ and P.Haul (part of CRIU project): https://github.com/xemul/p.haul

As main requirement I will mention vanilla kernel from kernel.org.

Pavel Odintsov
  • 311
  • 1
  • 6
0

I use Duply to backup LXC containers. Unlike backing up a normal machine you DO want to include /dev from the LXC container in the backup.

Exclude the following files from the backup:

- /var/lib/lxc/*/rootfs/lost+found
- /var/lib/lxc/*/rootfs/media/*
- /var/lib/lxc/*/rootfs/mnt/*
- /var/lib/lxc/*/rootfs/proc/*
- /var/lib/lxc/*/rootfs/run/*
- /var/lib/lxc/*/rootfs/sys/*
- /var/lib/lxc/*/rootfs/tmp/*

& see my notes here for further details.

Stuart Cardall
  • 610
  • 5
  • 8