<div dir="ltr"><div>Hi,</div><div><br></div><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;line-height:19.5px">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 <a href="http://docs.ceph.com/docs/v0.94.5/start/" rel="nofollow" style="margin:0px;padding:0px;border:0px;font-size:15px;text-decoration:none;color:rgb(12,101,165)">Ceph 0.94.5</a>.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;line-height:19.5px">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 (<code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:pre-wrap;background-color:rgb(238,238,238)">/var/lib/lxd/containers</code>) in all nodes. To move a VM, I just shut it down in one node and then start it again in another.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;line-height:19.5px">For just one VM it's working fine, but it doesn't seem to me as a long term solution. My questions:</p><ol style="margin:0px 0px 1em 30px;padding:0px;border:0px;font-size:15px;list-style-position:initial;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;line-height:19.5px"><li style="margin:0px 0px 0.5em;padding:0px;border:0px;font-size:15px;word-wrap:break-word"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both">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 (<code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:pre-wrap;background-color:rgb(238,238,238)">/</code>)? It would be nice to have a block volume for each VM (and not all VMs using the same folder).</p></li><li style="margin:0px 0px 0.5em;padding:0px;border:0px;font-size:15px;word-wrap:break-word"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both">Is there a simpler solution than OpenStack for my use case (or a simpler installation procedure for OpenStack)?</p></li><li style="margin:0px 0px 0.5em;padding:0px;border:0px;font-size:15px;word-wrap:break-word"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both">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?</p></li></ol><div><div class="gmail_signature"><div>--</div><div>Dilvan de Abreu Moreira, Ph.D. <a href="mailto:dilvan@gmail.com" target="_blank">dilvan@gmail.com</a></div><div><a href="http://java.icmc.usp.br" target="_blank">http://java.icmc.usp.br</a><br>Warning: I use a spam filter, some emails sent to me CAN be lost!</div></div></div>
</div>