lxc-hotmigrate
I've found the lxc container technology exceptionally lightweight and resources-saving. This scrips migrates a lxc container with lvm backing store to a different host, similar to vmware vcenter vm migration function.
I preferred a pure Debian implementation of lxc, and not the Proxmox one, to have hands free for updates and use only Debian official stuff.
The script can also be used in Proxmox, though, to move directly from proxmox to pure-Debian lxc and viceversa The configuration on destination host should be adjusted manually.
Arguments:
container name, container name, dst.host
Prerequisite: packages pv, cifs-utils, moreutils installed
Usage:
lxc-hotmigrate.sh lxc_name server
Download