Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

LXC

From Wikipedia, the free encyclopedia
Operating system-level virtualization for Linux
For other uses, seeLXC (disambiguation).
Linux Containers
Developers
  • Kernel:Virtuozzo,IBM,Google, Eric Biederman and others
  • Userspace: Daniel Lezcano, Serge Hallyn, Stéphane Graber and others
Initial releaseAugust 6, 2008; 17 years ago (2008-08-06)[1]
Stable release
6.0.0[2] Edit this on Wikidata / 3 April 2024; 19 months ago (3 April 2024)
Repository
Written inC,Shell
Operating systemLinux
Platformx86,IA-64,PowerPC,SPARC,Itanium,ARM
TypeOS-level virtualization
LicenseGNU LGPL v.2.1 (some components underGNU GPL v2 andBSD)
Websitelinuxcontainers.org

Linux Containers (LXC) is anoperating system-level virtualization method for running multiple isolatedLinux systems (containers) on a control host using a single Linux kernel.

TheLinux kernel provides thecgroups functionality that allows limitation and prioritization of resources (CPU, memory, block I/O, network, etc.) without the need for starting anyvirtual machines, and also thenamespace isolation functionality that allows complete isolation of an application's view of the operating environment, includingprocess trees,networking,user IDs andmountedfile systems.[3]

LXC combines the kernel's cgroups and support for isolatednamespaces to provide an isolated environment for applications.[4] Early versions ofDocker used LXC as the container execution driver,[4] though LXC was made optional in v0.9 and support was dropped in Docker v1.10.[5][6]

Overview

[edit]

LXC was initially developed byIBM, as part of a collaboration between several parties looking to add namespaces to the kernel.[7] It provides operating system-level virtualization through a virtual environment that has its own process and network space, instead of creating a full-fledgedvirtual machine. LXC relies on theLinux kernelcgroups functionality[8] 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

[edit]

Originally, LXC containers were not as secure as other OS-level virtualization methods such asOpenVZ: in Linux kernels before 3.8, theroot user of the guest system could run arbitrary code on the host system with root privileges, just as they can inchroot jails.[9] Starting with the LXC 1.0 release, it is possible to run containers as regular users on the host using "unprivileged containers".[10] Unprivileged containers are more limited in that they cannot access hardware directly. However, even privileged containers should provide adequate isolation in the LXC 1.0 security model, if properly configured.[10]

Alternatives

[edit]

LXC is similar to other OS-level virtualization technologies on Linux such asOpenVZ andLinux-VServer, as well as those on other operating systems such asFreeBSD jails,AIXWorkload Partitions andSolaris Containers. In contrast to OpenVZ, LXC works in thevanilla Linux kernel requiring no additional patches to be applied to the kernel sources. Version 1 of LXC, which was released on 20 February 2014 as a long-term supported version, was supported for five years.[11] Version 4.0 of LXC 4.0 was supported until June 1, 2025 and LXC 5.0 will be until June 1, 2027.[12]

LXD

[edit]

LXD is an alternative Linux container manager, written inGo. It is built on top of LXC and aims to provide a better user experience.[13] It is a containerhypervisor providing anAPI to manage LXC containers.[14] The LXD project was started in 2015 and was sponsored from the start byCanonical Ltd., the company behindUbuntu. On 4 July 2023, the LinuxContainers project announced that Canonical had decided to take over the LXD project but a fork called Incus had been created.[15][16] On August 25, 2023, LXD version 5.17 was officially released under the control of Canonical, providing support for OpenZFS 2.2 delegation capabilities.[17]

See also

[edit]

References

[edit]
  1. ^"Downloads".Linux containers. Archived fromthe original on 2014-11-10. Retrieved2014-11-10.
  2. ^"Release v6.0.0". 3 April 2024. Retrieved11 April 2024.
  3. ^Rami Rosen (May 2013)."Resource management: Linux kernel namespaces and cgroups"(PDF).CS. UCSB. RetrievedFebruary 11, 2015.
  4. ^abKenlon, Seth (2020-01-30)."Exploring simple Linux containers with lxc".Red Hat. IBM. Retrieved2023-07-05.
  5. ^"Docker 0.9: introducing execution drivers and libcontainer".Blog. Docker. 2014-03-10. Retrieved2018-05-09.
  6. ^"1.10.0".Engine release notes. Docker. 2016-02-04. Retrieved2020-10-06.
  7. ^Webb, Jordan (2022-09-13)."LXC and LXD: a different container story".LWN.net. Retrieved2023-07-05.
  8. ^Koutoupis, Petros (2018-08-27)."Everything You Need to Know about Linux Containers, Part II: Working with Linux Containers (LXC)".Linux Journal. Retrieved2023-07-05.
  9. ^Marco, d'Itri (2011)."Evading from linux containers".BOFH. IT. Archived fromthe original on 9 January 2014. Retrieved12 February 2014.
  10. ^abGraber, Stéphane (1 January 2014)."LXC 1.0: Security features [6/10]". Retrieved12 February 2014.However, at least in Ubuntu, our default containers ship with what we think is a pretty good configuration of both the cgroup access and an extensive apparmor profile which prevents all attacks that we are aware of. [...] LXC is no longer running as root so even if an attacker manages to escape the container, he'd find himself having the privileges of a regular user on the host
  11. ^Graber, Stéphane (2013-12-20)."LXC 1.0: Your first Ubuntu container". St. Graber. Retrieved2014-02-23.
  12. ^"LXC".Linux containers. Retrieved2023-02-07.
  13. ^"Introduction".LXD. Linux Containers. Retrieved2020-04-14.
  14. ^Parrott, Thomas."Introduction to LXD projects".Ubuntu. Canonical. Retrieved2023-07-05.
  15. ^"LXD Has been moved to Canonical".Linux Containers. 2023-07-04. Archived fromthe original on 2023-07-04. Retrieved2023-07-05.
  16. ^Rudra, Sourav (2023-07-05)."The LXD Project Finds a New Home at Canonical".It’s Foss. Retrieved2023-07-05.
  17. ^Parrott, Thomas (25 August 2023)."LXD 5.17 has been released".Ubuntu. Canonical.

External links

[edit]
Hardware
(hypervisors)
Native
Hosted
Specialized
Independent
Tools
Operating
system
OS containers
Application containers
Virtual kernel architectures
Related kernel features
Orchestration
Desktop
Application
Network
See also
Organization
Kernel
Support
People
Technical
Debugging
Startup
ABIs
APIs
Kernel
System Call
Interface
In-kernel
Userspace
Daemons,
File systems
Wrapper
libraries
Components
Variants
Virtualization
Adoption
Range
of use
Adopters
Retrieved from "https://en.wikipedia.org/w/index.php?title=LXC&oldid=1323213505"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp