Need advice about which tool to choose?Ask the StackShare community!
Add tool
LXC vs LXD: What are the differences?
- Containerization technology: LXC is a Linux containerization technology that provides lightweight virtualization and enables running multiple isolated Linux systems on a single Linux host. On the other hand, LXD is a system container manager that is designed to manage LXC containers and provides a more comprehensive and user-friendly interface for working with containers.
- REST API and CLI: LXC primarily uses a command-line interface (CLI) for managing containers, while LXD offers both a CLI and a REST API to interact with containers. The REST API allows for programmatic control of containers, enabling automation and integration with other systems.
- Image management: LXC relies on manually created container images, and users have to maintain them. In contrast, LXD provides a centralized image registry where pre-configured container images are available for download. This makes it easier to manage and share container images across different hosts.
- Live migration: LXD supports live migration, which allows containers to be moved between different hosts without interruptions in service. This feature is not available in LXC, making it more difficult to balance container workloads across multiple hosts.
- Resource control: LXD offers more extensive resource control capabilities compared to LXC. It allows for fine-grained control over CPU, memory, network, and storage resources of containers, enabling better optimization and isolation. LXC provides more basic resource control options.
- Snapshots and container state: LXD allows for the creation of snapshots, which are point-in-time copies of the container's filesystem and configuration. This enables easy rollback to previous states or the creation of new containers from snapshots. LXC does not natively provide snapshot functionality.
In summary, LXD builds upon LXC and provides additional features such as a comprehensive REST API, image management, live migration, enhanced resource control, and snapshot capabilities, making it a more advanced and user-friendly system container manager.
Decisions about LXC and LXD
Florian Sager
IT DevOp at Agitos GmbH · | 3 upvotes · 453.4K views
lxd/lxc and Docker aren't congruent so this comparison needs a more detailed look; but in short I can say: the lxd-integrated administration of storage including zfs with its snapshot capabilities as well as the system container (multi-process) approach of lxc vs. the limited single-process container approach of Docker is the main reason I chose lxd over Docker.
Manage your open source components, licenses, and vulnerabilities
Learn MorePros of LXC
Pros of LXD
Pros of LXC
- Easy to use5
- Lightweight4
- Simple and powerful3
- Good security3
- LGPL2
- Reliable1
- Trusted1
Pros of LXD
- More simple10
- Open Source8
- API8
- Best8
- Cluster7
- Multiprocess isolation (not single)5
- Fast5
- I like the goal of the LXD and found it to work great5
- Full OS isolation4
- Container3
- More stateful than docker3
- Systemctl compatibility2
Sign up to add or upvote prosMake informed product decisions
- No public GitHub repository available -
What is LXC?
LXC is a userspace interface for the Linux kernel containment features. Through a powerful API and simple tools, it lets Linux users easily create and manage system or application containers.
What is LXD?
LXD isn't a rewrite of LXC, in fact it's building on top of LXC to provide a new, better user experience. Under the hood, LXD uses LXC through liblxc and its Go binding to create and manage the containers. It's basically an alternative to LXC's tools and distribution template system with the added features that come from being controllable over the network.
Need advice about which tool to choose?Ask the StackShare community!
Jobs that mention LXC and LXD as a desired skillset
What companies use LXC?
What companies use LXD?
What companies use LXC?
What companies use LXD?
Manage your open source components, licenses, and vulnerabilities
Learn MoreSign up to get full access to all the companiesMake informed product decisions
What tools integrate with LXC?
What tools integrate with LXD?
What tools integrate with LXD?
What are some alternatives to LXC and LXD?
Docker
The Docker Platform is the industry-leading container platform for continuous, high-velocity innovation, enabling organizations to seamlessly build and share any application — from legacy to what comes next — and securely run them anywhere
KVM
KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V).
OpenVZ
Virtuozzo leverages OpenVZ as its core of a virtualization solution offered by Virtuozzo company. Virtuozzo is optimized for hosters and offers hypervisor (VMs in addition to containers), distributed cloud storage, dedicated support, management tools, and easy installation.
Kubernetes
Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions.
Git
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.