r/openstack • • May 07 '18

Is OpenStack multi-hypervisor configuration (KVM and LibVirt-LXC) possible?

New to the OS world, but can't seem to find any definitive indication if this is possible or not. I've read the "config" steps described here (https://docs.openstack.org/ocata/config-reference/compute/hypervisor-lxc.html) for setting up the nova compute node as an LXC hypervisor, but it effectively did nothing for my compute node2 when node1 is still set as QEMU/KVM. Is the crux of the issue that you can't utilize multiple hypervisor types simultaneously?

--GC

9 Upvotes

9 comments sorted by

View all comments

1

u/[deleted] May 08 '18

To be more specific, it can host multiple-hypervisor but you’ll have to create a way for the scheduler to be able to filter one host or another, this is usually made by leveraging aggregates or metadata at images and/or flavors level.

As stated, Queens is rather the latest release ;-)

Can you pastebin your nova config on the lxc host?

1

u/erthmeld May 08 '18

Great, that's what I assumed but just cannot wrap my head around how to get the compute node setup.

As for the version, I didn't deploy the initial OS architecture, but I believe at the time Ocata was current. Unfortunately at this point the least of my concerns is a version upgrade of the OS stack.

2

u/[deleted] May 08 '18

If you’re dealing with a recent Openstack, I highly suggest you to have a look at the Kolla/Kolla-ansible project, it will give you a handy way to create Openstack services as dockerized process and so give you a way to easily update/manage your setup.

For the nodes hypervisor setup, if you disable your kvm node even without specific metadata all your instances should be processed by the lxc node or if not give you an handy error messages.

1

u/erthmeld May 08 '18

Unfortunately the hypervisor kvm nodes already have resources configured and running that won't allow this approach for diagnostics.