LXC
<templatestyles src="Module:Hatnote/styles.css"></templatestyles>
Lua error in package.lua at line 80: module 'strict' not found.
Developer(s) | |
---|---|
Initial release | August 6, 2008[1] |
Stable release | 2.0.6[2] / 23 November 2016 |
Written in | C, Python, Shell, Lua |
Operating system | Linux |
Platform | x86, IA-64, PowerPC, SPARC, Itanium, ARM |
Type | OS-level virtualization |
License | GNU LGPL v.2.1 (some components under GNU GPL v2 and BSD) |
Website | linuxcontainers |
LXC (Linux Containers) is an operating-system-level virtualization method for running multiple isolated Linux systems (containers) on a control host using a single Linux kernel.
The Linux kernel provides the cgroups functionality that allows limitation and prioritization of resources (CPU, memory, block I/O, network, etc.) without the need for starting any virtual machines, and also namespace isolation functionality that allows complete isolation of an applications' view of the operating environment, including process trees, networking, user IDs and mounted file systems.[3]
LXC combines the kernel's cgroups and support for isolated namespaces to provide an isolated environment for applications. Docker can also use LXC as one of its execution drivers, enabling image management and providing deployment services.
Overview
LXC provides operating system-level virtualization through a virtual environment that has its own process and network space, instead of creating a full-fledged virtual machine. LXC relies on the Linux kernel cgroups functionality that was released in version 2.6.24. It also relies on other kinds of namespace isolation functionality, which were developed and integrated into the mainline Linux kernel.
Security
Originally, LXC containers were not as secure as other OS-level virtualization methods such as OpenVZ: in Linux kernels before 3.8, the root user of the guest system could run arbitrary code on the host system with root privileges, much like chroot jails.[4] Starting with the LXC 1.0 release, it is possible to run containers as regular users on the host using "unprivileged containers".[5] Unprivileged containers are more limited in that they cannot access hardware directly. Nevertheless, even privileged containers should provide adequate isolation in the LXC 1.0 security model, if properly configured.[5]
Alternatives
LXC is similar to other OS-level virtualization technologies on Linux such as OpenVZ and Linux-VServer, as well as those on other operating systems such as FreeBSD jails, AIX Workload Partitions and Solaris Containers. In contrast to OpenVZ, LXC works in the vanilla Linux kernel requiring no additional patches to be applied to the kernel sources. Version 1 of LXC, which was released on 20 February 2014, is a long-term supported version and intended to be supported for five years.[6]
See also
- CoreOS
- Docker, a project automating deployment of applications inside software containers
- Apache Mesos, a large-scale cluster management platform based on container isolation
- Operating system-level virtualization implementations
- Proxmox Virtual Environment, an open-source server virtualization management platform supporting LXC containers and KVM
- Anbox, uses LXC to execute Android applications in other Linux distributions
References
<templatestyles src="Reflist/styles.css" />
Cite error: Invalid <references>
tag; parameter "group" is allowed only.
<references />
, or <references group="..." />
External links
<templatestyles src="Div col/styles.css"/>
- Official website and source code repository on GitHub
- IBM developerworks article about LXC
- "Evading from Linux Containers" by Marco D'Itri
- Presentation about cgroups and namespaces, the underlying technology of Linux containers, by Rami Rosen
- Presentation about Linux Containers and the future cloud, by Rami Rosen
- LXC : Install and configure the Linux Containers
- LSS: Secure Linux containers (LWN.net)
- Introduction to Linux Containers
- LXC on Android on YouTube, April 2013
- ↑ Lua error in package.lua at line 80: module 'strict' not found.
- ↑ Lua error in package.lua at line 80: module 'strict' not found.
- ↑ Lua error in package.lua at line 80: module 'strict' not found.
- ↑ Lua error in package.lua at line 80: module 'strict' not found.
- ↑ 5.0 5.1 Lua error in package.lua at line 80: module 'strict' not found.
- ↑ Lua error in package.lua at line 80: module 'strict' not found.