[lxc-users] Migrating LXD VMs/containers between nodes
Bostjan Skufca
bostjan at a2o.si
Wed Nov 25 17:48:24 UTC 2015
I recently asked a similar questions (did not mention rdb though that was
exactly what I had in my mind:), maybe you will find Stephane's answer
informative:
https://lists.linuxcontainers.org/pipermail/lxc-users/2015-November/010414.html
b.
On 25 November 2015 at 16:40, Dilvan Moreira <dilvan at gmail.com> wrote:
> 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!
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20151125/e8b17895/attachment-0001.html>
More information about the lxc-users
mailing list