---
title: LXD
description: "Low-touch virtual infrastructure with LXD at any scale. Built on top\
  \ of Linux containers,\n  LXD offers a unified user experience in managing system\
  \ containers, virtual machines and clusters. Easily configurable,\n  flexible and\
  \ trusted way to run your workloads."
url: https://canonical.com/lxd?format=md
---

# Lightweight open source virtualization with LXD

## The comprehensive platform for open source virtualization with a cloud-like experience.

LXD is an open source solution for managing virtual machines and system containers. It provides a security-maintained and scalable environment with minimal overhead. Manage your workloads with ease and configure them to suit your use case via a user-friendly web interface.

[Install now](https://canonical.com/lxd/install)

#### *“With LXD there’s no loss of function like you get with a hypervisor. We benchmarked it against our existing environment and it delivered twice the performance on our database with half the resources.”*

---

##### Suzie Roseberry

Intelligent Transportation Systems Developer and Database Administrator at WYDOT

[Read more in the WYDOT case study ›](https://ubuntu.com/engage/hypervisor-to-lxd-case-study)

---

## Why choose LXD?

---

### Run any type of workload

LXD provides both KVM-based VMs and system containers based on LXC – that can run a full Linux OS – in a single open source virtualization platform. LXD has numerous built-in management features, including live migration, snapshots, resource restrictions, projects and profiles, and governs the interaction with various storage and networking options.

### Cloud-like experience

LXD is image based and supports images for a large number of Linux distributions, as well as Windows VMs. It comes with built-in
image stores which enable you to
spin up a container or a VM in a matter of seconds. Existing integrations with various deployment and
orchestration tools allow you to manage your infrastructure in a cloud-like way.
When combined with software-defined storage and networking, LXD becomes a lightweight cloud solution [MicroCloud](https://canonical.com/microcloud).

### Security-maintained and scalable

LXD runs unprivileged containers by default — protecting the host system from potential attacks. For
virtual machines, LXD uses modern virtual hardware (VirtIO) exclusively. In addition, it uses UEFI
SecureBoot and provides vTPM support.

Resource restrictions through cgroups and ulimits, as well as fine-grained access control, are also supported.

LXD is also easy to scale – from containers on your laptop to thousands of instances in the data
center.

---

## Alternatives for running workloads

LXD supports a variety of different virtualization options, so you can always pick the best strategy for each of your workloads.

---

---

### Virtual machines

* QEMU/KVM-based VMs
* For workloads needing a different kernel or OS than the host
* Legacy free
* Cloud-like experience

---

---

### System containers

* To run a full Linux OS inside a container
* Uses Kernel of the host
* Identical performance to bare metal
* Run VM-like workloads more efficiently

---

---

### Clusters for more demanding workloads

* Up to 50 servers in a unified cluster with 1000s of instances
* Run containers, VMs, or a combination of the two
* Same distributed database
* Managed uniformly

[Watch this deep dive into LXD clustering](https://www.youtube.com/watch?v=nrOR6yaO_MY)

---

## Key features

* Flexible resource limits (CPU, memory, network I/O, disk space, and some
  kernel resources)
* Advanced snapshot support, including scheduling and automatic expiry
* Projects for segmenting your LXD server, and easy multi-user setup for
  enhanced security
* Hardware passthrough (GPU, USB, NIC, disks, and more)
* Support for live-migration and stateful snapshotting
* Advanced networking support (OVN, SR-IOV, hardware acceleration support)
* High availability clustering when combined with CEPH and OVN for storage and
  network redundancy
* LTS releases every two years — supported for five years
* Commercial support available through
  [Ubuntu Pro](https://ubuntu.com/pricing/infra)

[See how LXD features compare to eSXI ›](https://ubuntu.com/blog/esxi-alternative)

---

### Join the LXD community

### Documentation

[Read the documentation ›](https://canonical.com/lxd/docs)

---

### Forum

[Discuss with other users ›](https://discourse.ubuntu.com/c/lxd/126)

---

### Tutorials

[Watch tutorials on YouTube ›](https://www.youtube.com/c/LXDvideos/videos)

---

---

## Enhance your experience with best-in-class open-source tools

---

### MicroCloud: a LXD–based cloud solution

MicroCloud is the newest addition to Canonical’s cloud infrastructure portfolio. It is a low-touch, open-source cloud solution based on LXD, purpose-built for scalable clusters and edge deployments for all types of enterprises.

---

Watch the "[Introduction to MicroCloud](https://ubuntu.com/engage/introduction-to-microcloud)" webinar to learn more.

### Easily manage bare metal infrastructure with MAAS and LXD

MAAS can automatically deploy and configure LXD as part of the deployment of a physical machine. Or it can
be connected to an existing LXD deployment to dynamically create virtual machines on it.

---

[Access
the tutorial about setting up your own MAAS and LXD environment ›](https://canonical.com/maas/tutorials/build-a-maas-and-lxd-environment-in-30-minutes-with-multipass-on-ubuntu#1-overview)

---

### Learn more about LXD

### Blogs

[LXD 5.21.0 LTS is now available ›](https://ubuntu.com/blog/lxd_5-21-0_lts)

[ESXi Alternative: try open source LXD ›](https://ubuntu.com/blog/esxi-alternative)

[Using LXD to host your own ERP, cost-effectively ›](https://ubuntu.com/blog/using-lxd-to-host-your-own-erp-cost-effectively)

[Open source for beginners: setting up your dev environment with LXD ›](https://ubuntu.com/blog/open-source-for-beginners-dev-environment-with-lxd)

---

### Webinars

[Learn the basics of LXD ›](https://www.brighttalk.com/webcast/6793/298235)

[Run
Kubernetes on LXD for edge computing ›](https://www.brighttalk.com/webcast/6793/470152?utm_source=brighttalk-portal&utm_medium=web&utm_campaign=viewing-history)

---

### Whitepapers

[Lift and Shift, or Rebuild: choosing your cloud migration strategy ›](https://ubuntu.com/engage/cloud-migration-strategy-lift-and-shift-or-rebuild)

[How to build a lightweight system container
cluster ›](https://ubuntu.com/engage/lxd-whitepaper)
