OpenStack Docs: LXC (Linux containers) (2024)

LXC (also known as Linux containers) is a virtualization technology thatworks at the operating system level. This is different from hardwarevirtualization, the approach used by other hypervisors such as KVM, Xen,and VMware. LXC (as currently implemented using libvirt in the Computeservice) is not a secure virtualization technology for multi-tenantenvironments (specifically, containers may affect resource quotas forother containers hosted on the same machine). Additional containmenttechnologies, such as AppArmor, may be used to provide better isolationbetween containers, although this is not the case by default.For all these reasons, the choice of this virtualization technologyis not recommended in production.

If your compute hosts do not have hardware support for virtualization,LXC will likely provide better performance than QEMU. In addition,if your guests must access specialized hardware, such as GPUs,this might be easier to achieve with LXC than other hypervisors.

Note

Some OpenStack Compute features might be missing when running with LXCas the hypervisor. See the hypervisor support matrix for details.

To enable LXC, ensure the following options are set in /etc/nova/nova.confon all hosts running the nova-compute service.

compute_driver = libvirt.LibvirtDriver[libvirt]virt_type = lxc

On Ubuntu, enable LXC support in OpenStack by installing thenova-compute-lxc package.

OpenStack Docs: LXC (Linux containers) (2024)
Top Articles
Latest Posts
Article information

Author: Maia Crooks Jr

Last Updated:

Views: 6145

Rating: 4.2 / 5 (63 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Maia Crooks Jr

Birthday: 1997-09-21

Address: 93119 Joseph Street, Peggyfurt, NC 11582

Phone: +2983088926881

Job: Principal Design Liaison

Hobby: Web surfing, Skiing, role-playing games, Sketching, Polo, Sewing, Genealogy

Introduction: My name is Maia Crooks Jr, I am a homely, joyous, shiny, successful, hilarious, thoughtful, joyous person who loves writing and wants to share my knowledge and understanding with you.