openstack的本地lxd驱动程序
nova-lxd的Python项目详细描述
新星lxd
用于使用lxd管理容器的openstack计算驱动程序。
DEVSTACK上的NOVA LXD
出于开发目的,nova lxd提供了devstack插件。使用它,只要包括
下面是您的devstacklocal.conf
:
[[local|localrc]]
enable_plugin nova-lxd https://git.openstack.org/openstack/nova-lxd
# You should enable the following if you use lxd 3.0.
# In addition, this setting requires zfs >= 0.7.0.
#LXD_BACKEND_DRIVER=zfs
根据需要更改git存储库(指向main
Nova LXD回购)。如果您想使用本地树,可以将树符号链接到
/opt/stack/nova-lxd
从那里开始你的发展。
devstack默认图像不能用于lxd,因为lxd不支持它们。一旦你 堆栈已建立,并且已针对devstack配置身份验证,请执行以下操作:
wget http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-root.tar.gz
glance image-create --name xenial --disk-format raw --container-format bare --file xenial-server-cloudimg-amd64-root.tar.gz
可以使用devstack中的练习脚本测试配置。例如,
DEFAULT_IMAGE_NAME=xenial ./exercises/volumes.sh
请注意:devstack中的练习脚本可能不起作用,因为它们有要求 使用Cirros图像。
支持和讨论
我们使用lxc邮件列表进行开发人员和用户讨论,您可以 查找并订阅以下网址:https://lists.linuxcontainers.org
如果你喜欢现场讨论,我们中的一些人也会 #lxcontainers在irc.freenode.net上。
错误报告
错误报告可以在https://bugs.launchpad.net/nova-lxd