openstack-manuals/doc/config-reference/compute/section_hypervisor_lxc.xml
Summer Long 100441efe6 Minor edits for the Config Ref Guide.
Minor edits (found in the last release), including link and case correction, and service-name updates.

Change-Id: I5410cf4b214800f9be433a513a320d69bc303208
Partial-Bug: #1121866
2014-03-05 16:10:39 +10:00

30 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<section xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"
xml:id="lxc">
<title>LXC (Linux containers)</title>
<para>LXC (also known as Linux containers) is a virtualization technology that works at the
operating system level. This is different from hardware virtualization, the approach used by
other hypervisors such as KVM, Xen, and VMware. LXC (as currently implemented using libvirt in
the Compute service) is not a secure virtualization technology for multi-tenant environments
(specifically, containers may affect resource quotas for other containers hosted on the same
machine). Additional containment technologies, such as AppArmor, may be used to provide better
isolation between containers, although this is not the case by default. For all these reasons,
the choice of this virtualization technology is not recommended in production.</para>
<para>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.</para>
<note><para>Some OpenStack Compute features might be missing when running with LXC as the hypervisor. See
the <link xlink:href="http://wiki.openstack.org/HypervisorSupportMatrix">hypervisor support
matrix</link> for details.</para></note>
<para>To enable LXC, ensure the following options are set in
<filename>/etc/nova/nova.conf</filename> on all hosts running the <systemitem class="service"
>nova-compute</systemitem>
service.<programlisting language="ini">compute_driver=libvirt.LibvirtDriver
libvirt_type=lxc</programlisting></para>
<para>On Ubuntu 12.04, enable LXC support in OpenStack by installing the
<literal>nova-compute-lxc</literal> package.</para>
</section>