Ask Your Question
1

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

asked 2016-07-27 17:32:35 -0500

jeff.kowalczyk@gmail.com 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 https://linuxcontainers.org/lxd/getting-started-openstack/ (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
1

answered 2016-07-28 17:38:14 -0500

jeff.kowalczyk@gmail.com 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 @@
 [DEFAULT]
-compute_driver=libvirt.LibvirtDriver
-[libvirt]
-virt_type=kvm
+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
+
+[Filters]
+tar: CommandFilter, tar, root
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 903 times

Last updated: Jul 28 '16