[lxc-users] Migrating LXD VMs/containers between nodes
Dilvan Moreira
dilvan at gmail.com
Thu Nov 26 14:30:51 UTC 2015
Hi,
What about Proxmox? It seems easy to install and it supports LXC out of
the box. I couldn’t find anywhere if it supports LXD. Does anyone knows the
difference between the LXC supported by Proxmox and LXD?
--
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!
On Thu, Nov 26, 2015 at 9:50 AM, Dilvan Moreira <dilvan at gmail.com> wrote:
> On Wed, Nov 25, 2015 at 3:50 PM, Serge Hallyn <serge.hallyn at ubuntu.com>
> wrote:
>
>> Quoting Dilvan Moreira (dilvan at gmail.com):
>> > 1.
>> > Is there a way to pass a block volume (Ceph/rbd) or folder to a LXD
>> VM,
>>
>> You can just have your scripts mount the volume/folder to
>> /var/lib/lxd/containers/container/rootfs. You can set
>> lxc.rootfs= in the raw.lxc.
>
>
> Where this raw.lxc file is located (Can I have one for each VM)? In any
> case, that doesn’t solve my problem. I cannot just start a VM from another
> machine (as I can do now), I will have to copy the metadata.yam file and
> templates folder. Don’t they change over time? Is it safe to copy them just
> after the container is created?
>
>
>
>> Or you can wait for
>>
>> https://github.com/lxc/lxc/pull/670
>>
>> Once that gets into lxc, I've not thought through whether you'll need
>> any specific support from lxd.
>>
>> I think what you're doing now makes a lot of sense - the only shortcoming
>> is that live migration may be complicated because of the shared rootfs.
>>
>> Note that Guido (cc:d) is also doing a similar setup (using NFS).
>>
>> > 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)?
>>
>> imho juju is the simplest way to install openstack.
>>
>
> In all examples I found of juju installing OpenStack (I don’t know much
> about juju), it was using a set of VMs or MaaS (Metal as a Service). VMs
> would be pointless in my case and MaaS is very complicated to implement
> (and not very useful in my case). Can I use juju in real bare metal? If so,
> can you point me to some example/documentation?
>
>
>> > 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?
>>
>> The biggest complication I see is that when you ask lxd to move a
>> container,
>> lxd will want to migrate the rootfs. I'm waiting for clarification from
>> Tycho on whether lxd will be smart enough to DTRT.
>>
>
> Using Ceph/rbd, there is no need to migrate anything. I am not aiming
> to have live migration, so the plan is to shutdown the container and start
> it agin in another node.
>
> Cheers,
>
> Dilvan.
>
>> _______________________________________________
>> 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/20151126/71a85ec8/attachment.html>
More information about the lxc-users
mailing list