Ask Your Question
0

Are there specific images for lxd containers and others for virtual machines that can be spawned in the same Openstack Instance?

asked 2019-04-25 09:38:14 -0500

phil111 gravatar image

REF: Are there specific images for lxd containers and others for virtual machines that can be spawned in the same Openstack Instance?

Are there specific images for linux containers instances running on lxd hypervisor and specific Virtual machine images that can also be spawned within OpenStack using the lxd hypervisor? Or is the end result of the instance based on the specific openStack setup and associated hypervisor?

I launched instances using some images but I have no way of clearly differentiating that a given image or instance is an lxd container or a typical VM. Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-04-25 21:23:51 -0500

updated 2019-04-25 21:26:36 -0500

https://linuxcontainers.org/lxd/getti... talks about images for LXD. Also check out https://jujucharms.com/u/openstack-ch....

By "OpenStack instance", do you mean "OpenStack cloud"? If so, yes you can deploy several hypervisors including LXD in the same cloud, but each compute node can have one hypervisor only. Note that "instance" has a very specific meaning in OpenStack: instance is synonymous with server managed by Nova.

LXD obviously needs raw images (i.e. it can't process qcow2, VDI etc formats). Since other hypervisors can also use raw images, you can't differentiate between LXD and other images.

To see whether an instance runs on LXD, you need to be admin or log on to the instance.

edit flag offensive delete link more

Comments

Thanks @Bernd. Would it be possible to add another compute node with a different hypervisor on an existing OpenStack cloud then? how exactly then can install a specific nova instance as a container (linux container) and a VM. The instance only shows the hypervisor type

phil111 gravatar imagephil111 ( 2019-04-27 06:03:15 -0500 )edit

Yes you can. I think you need flavor metadata to select the hypervisor.

You can also use host aggregates (which, again, requires flavor metadata).

Bernd Bausch gravatar imageBernd Bausch ( 2019-04-27 06:16:52 -0500 )edit

Read about the filter scheduler, in particular the ComputeCapabilitiesFilter. By extra specs, the document means flavor metadata.

Bernd Bausch gravatar imageBernd Bausch ( 2019-04-27 06:57:16 -0500 )edit

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

Stats

Asked: 2019-04-25 09:38:14 -0500

Seen: 29 times

Last updated: Apr 25