
Import the following files from the former config-reference [1]: api.rst cells.rst fibre-channel.rst hypervisor-basics.rst hypervisor-hyper-v.rst hypervisor-kvm.rst hypervisor-lxc.rst hypervisor-qemu.rst hypervisor-virtuozzo.rst hypervisor-vmware.rst hypervisor-xen-api.rst hypervisor-xen-libvirt.rst hypervisors.rst index.rst iscsi-offload.rst logs.rst resize.rst samples/api-paste.ini.rst samples/index.rst samples/policy.yaml.rst samples/rootwrap.conf.rst schedulers.rst The below files are skipped as they're already included, in slightly different forms, in the nova documentation. config-options.rst nova-conf-samples.rst nova-conf.rst nova.conf Part of bp: doc-migration Change-Id: I145e38149bf20a5e068f8cfe913f90c7ebeaad36
39 lines
1.6 KiB
ReStructuredText
39 lines
1.6 KiB
ReStructuredText
======================
|
|
LXC (Linux containers)
|
|
======================
|
|
|
|
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.
|
|
|
|
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 LXC as
|
|
the hypervisor. See the `hypervisor support matrix
|
|
<http://wiki.openstack.org/HypervisorSupportMatrix>`_ for details.
|
|
|
|
To enable LXC, ensure the following options are set in ``/etc/nova/nova.conf``
|
|
on all hosts running the ``nova-compute`` service.
|
|
|
|
.. code-block:: ini
|
|
|
|
compute_driver = libvirt.LibvirtDriver
|
|
|
|
[libvirt]
|
|
virt_type = lxc
|
|
|
|
On Ubuntu, enable LXC support in OpenStack by installing the
|
|
``nova-compute-lxc`` package.
|