Skip to content

Copying between instances

turtle0x1 edited this page Jan 7, 2019 · 5 revisions

Offline Container Copying

To be able to copy a container between to hosts you need to ssh onto the host you want to copy the container from E.G Host 1 and add a remote Host 2

This command adds the Host 2 as a remote

lxc remote add host2 IP_ADDRESS_OF_HOST

  • Dont forget to check your firewall rules
  • I have opened an issue on LXD to see if the remotes can be managed through the API so we can handle this for you, but there is no guarantee it will be accepted

Online Container Migration

Online migration is currently very flimsy (in this application) the LXD_Manager application may return success even if it didn't, you need to install criu and perhaps other dependencies. A further wright up to follow!

Clone this wiki locally