Can nova-compute-lxd run lxd instances alongside kvm instances

asked 2016-07-27 17:32:35 -0600 gravatar image

When installing nova-compute-lxd on a compute node, is there any conflict with continuing to run normal kvm instances on that compute node?

This is a basic question, but the (getting started with LXD on Openstack page) currently makes no mention of it.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-07-28 17:38:14 -0600 gravatar image

Answering my own question: as of OpenStack Mitaka on Ubuntu 16.04, the packages nova-compute-kvm and nova-compute-lxd are mutually exclusive. Installing nova-compute-lxd uninstalls nova-compute-kvm. The package install makes one edit to nova-compute.conf to switch compute_driver, and one new file rootwrap.d/lxd.filters is added.

diff --git a/nova-compute.conf b/nova-compute.conf
index 48ad489..d5ea654 100644
--- a/nova-compute.conf
+++ b/nova-compute.conf
@@ -1,4 +1,2 @@
+compute_driver = nova_lxd.nova.virt.lxd.LXDDriver
diff --git a/rootwrap.d/lxd.filters b/rootwrap.d/lxd.filters
new file mode 100644
index 0000000..ff47c31
--- /dev/null
+++ b/rootwrap.d/lxd.filters
@@ -0,0 +1,5 @@
+# nova-rootwrap filters for compute nodes running flex
+# This file should be owned by (and only-writable by) the root user
+tar: CommandFilter, tar, root
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-07-27 17:32:35 -0600

Seen: 1,077 times

Last updated: Jul 28 '16