[lxc-users] Migrating LXD VMs/containers between nodes

Dilvan Moreira dilvan at gmail.com
Wed Nov 25 15:40:45 UTC 2015


Hi,

I am setting up a small cluster using a VM (master) and 3 bare metal
servers (all running Ubuntu 14.04). Each bare metal server also has 2T of
disk space exported using Ceph 0.94.5
<http://docs.ceph.com/docs/v0.94.5/start/>.

I would like to be able to run LXD VMs (containers) on this cluster and to
easily migrate these VMs to different nodes. I could have installed
OpenStack, but that seems rather complicated to me (maybe OpenStack is an
overkill for such a small cluster like mine). So, my solution was to create
a big Ceph/rbd block volume and mount it at the LXD container folder (
/var/lib/lxd/containers) in all nodes. To move a VM, I just shut it down in
one node and then start it again in another.

For just one VM it's working fine, but it doesn't seem to me as a long term
solution. My questions:

   1.

   Is there a way to pass a block volume (Ceph/rbd) or folder to a LXD VM,
   so LXD itself would mount the root folder (/)? It would be nice to have
   a block volume for each VM (and not all VMs using the same folder).
   2.

   Is there a simpler solution than OpenStack for my use case (or a simpler
   installation procedure for OpenStack)?
   3.

   Ultimately, I would like my cluster to have the ability to schedule VMs
   to nodes, move VMs from failed nodes, etc. Any suggestions on how to get
   that?

--
Dilvan de Abreu Moreira, Ph.D.     dilvan at gmail.com
http://java.icmc.usp.br
Warning: I use a spam filter, some emails sent to me CAN be lost!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20151125/85c6452f/attachment.html>


More information about the lxc-users mailing list