Your submission was sent successfully! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates from Canonical and upcoming events where you can meet our team.Close

Run system containers with LXD

Fast, dense, and secure container and VM management at any scale

LXD provides a unified user experience for managing system containers and virtual machines. For more demanding workloads, LXD can be set up in a cluster environment to run containers, VMs, or a combination of the two on a set of machines. LXD has direct hardware access, minimising overhead and matching the density and efficiency of containers.


Install now


Why choose LXD?


Run a full Linux OS inside a container

LXD system containers run a complete filesystem with background processes. This allows you to run any workload, or containerise your traditional systems and apps without modifying the apps or your operations. LXD containers offer the density and efficiency of containers with a VM-like experience.

Cloud-like experience

LXD is image based and supports images for a large number of Linux distributions. It comes with built-in image stores that supply official Ubuntu images and images provided by the community, which allows 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.

Secure 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 utilises UEFI SecureBoot and provides vTPM support.

Resource restrictions through cgroups and ulimits, as well as RBAC, are also supported.

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


Alternatives for running workloads


System containers

  • To run a full Linux OS inside a container
  • Utilises Kernel of the host
  • Identical performance to bare metal

Virtual machines

  • For workloads needing a different kernel or OS than the host
  • Legacy free
  • Cloud-like experience

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


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

Join the LXD community



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


Deploy workloads across different platforms with Juju

Juju makes it easy to deploy the exact same software on a variety of different platforms, including public and private cloud, bare metal, Kubernetes clusters. It is also a useful tool for local deployments, ideal for development.


Access the tutorial about operating your instances using Juju ›

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 ›

Replace your VMware infrastructure with best-of-breed open source

Open source brings cost savings, increased flexibility and higher quality for your infrastructure. Learn how to build a fully functional cloud infrastructure on Ubuntu while ensuring feature parity with VMware solutions.


Learn more with the "From VMware to open source" webinar ›


Learn more about LXD