Hi Martin

On Sun, Sep 16, 2018 at 8:46 PM, Martin Bobák <martin.bo...@savba.sk> wrote:

> Hi all,
>
> what is the recommended way of nova-lxd plugin installation on a fresh
> xenial host running a pure OpenStack devstack (Queens) installation? I have
> tried to install the nova-lxd plugin by pip install, or allowing it during
> OpenStack devstack  installation, but each attempt lead to the same result.
> The plugin is either not recognized or the installation doesn't finish
> successfully. I went through the nova-lxd homepage as well as its github
> repo, but I wasn't able to solve the whole installation problem (e.g. I
> found out that the installation of the newest version of pylxd helps with
> installation of the plugin, however, the plugin isn't still recognized. So
> additional configuration is needed...).
>
> Do you have any thoughts about it?
>

I'm one of the maintainers for nova-lxd, so hopefully can get you up and
running.

In order for nova-lxd to be configured in nova, the /etc/nova-compute.conf
needs to contain the lines:

[DEFAULT]
compute_driver = nova_lxd.nova.virt.lxd.LXDDriver

This little 'fact' is hidden away in the "nova-compute-lxd" debian package,
unfortunately.

You'll also need to configure an [lxd] section in nova.conf to control the
storage pool in LXD for containers to use when launching instances.

[lxd]
allow_live_migration = True
pool = {{ storage_pool }}

The storage pool will need to be set up separately in lxd.
--

However, an 'easy' way to test OpenStack with nova-lxd, is to use charms.
We have a number of bundles that work with Juju.  For example we have a
deployable bundle for xenial and queens at https://github.com/
openstack-charmers/openstack-bundles/tree/master/development/openstack-lxd-
xenial-queens which also has some (hopefully) useful instructions on how to
get it going.

Note the instructions say you have to use MaaS, but you should be able to
adjust using it to the hardware you are using.

As an alternative, the openstack-ansible project also supports nova-lxd,
but I don't have any experience with that.

Do come back if you have any further questions; do let me know how you get
on.

Best regards
Alex.


> Best,
> Martin.
>
> --
>  Martin Bobák, PhD.
>  Researcher
>  Institute of Informatics
>  Slovak Academy of Sciences
>  Dubravska cesta 9
> <https://maps.google.com/?q=Dubravska+cesta+9&entry=gmail&source=g>,
> SK-845 07 Bratislava, Slovakia
>  Room: 311, Phone: +421 (0)2 5941-1278
>  E-mail: martin.bo...@savba.sk
>  URL: http://www.ui.sav.sk/w/odd/pdip/
>  LinkedIn: https://www.linkedin.com/in/martin-bobak/
>
> _______________________________________________
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users




-- 
Alex Kavanagh - Software Engineer
Cloud Dev Ops - Solutions & Product Engineering - Canonical Ltd
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to