Requirements

To run LXD, you must satisfy certain minimum requirements:

  • The host requirements apply to all installations of LXD, regardless of installation method.

  • The runtime dependencies are bundled in the LXD snap package, and updated when the snap refreshes. If you install LXD through a different method, you must install these dependencies at or above the minimum versions listed below and manage updates yourself.

To build LXD from source, you must also meet the build requirements.

Host requirements

These requirements apply to all installations of LXD, including the snap.

Kernel

The minimum supported kernel version is 6.8.

LXD requires a kernel with support for:

  • Namespaces (pid, net, uts, ipc and mount)

  • Seccomp

  • Native Linux AIO (io_setup(2), and so on)

  • Any other kernel feature required by the LXC version in use

The following optional features also require extra kernel options or newer versions:

  • Namespaces (user and cgroup)

  • AppArmor (including Ubuntu patch for mount mediation), strongly recommended for production deployments (see Use a host with AppArmor enabled)

  • Control groups (blkio, cpuset, devices, memory, pids and net_prio)

  • CRIU (see upstream CRIU for details)

  • SKBPRIO/QFQ qdiscs (for limits.priority, minimum kernel 5.17)

  • ZFS kernel module (for the ZFS storage driver), version 2.2 or higher

Hardware virtualization

Hardware-assisted virtualization (for example, Intel VT-x or AMD-V) is required for running virtual machines. Additional hardware support (for example, Intel VT-d or AMD-Vi) might be required for device pass-through.

Runtime dependencies

The following dependencies are required to run LXD. In snap installations, these dependencies are bundled in the snap and updated when the snap refreshes. If you use a different installation method, you must install and manage these dependencies yourself.

LXC

LXD requires LXC 5.0.0 or higher with the following build options:

  • apparmor (if using LXD’s AppArmor support)

  • seccomp

To run recent versions of various distributions, including Ubuntu, LXCFS should also be installed.

QEMU

Virtual machines require QEMU 8.2.2 or higher and virtiofsd 1.10.0 or higher. Some features like Confidential Guest support require a more recent QEMU and kernel version.

Dqlite

LXD uses Dqlite for its database, as detailed in The LXD Dqlite database.

ZFS userspace tools

The ZFS storage driver requires the ZFS userspace tools, version 2.2 or higher. The userspace tools must match the major and minor version of the ZFS kernel module on the host (see Kernel).

For snap installations, if none of the versions of the userspace tools bundled in the snap match the ZFS kernel module, you must install the userspace tools and configure the snap by running:

sudo snap set lxd zfs.external=true

Libraries

LXD, LXC, and Dqlite use a number of (usually packaged) C libraries:

  • libacl

  • libapparmor

  • libcap

  • liblz4

  • libseccomp

  • libsqlite3 3.37.2 or higher

  • libuv

Additional runtime dependencies

LXD might require the following packages at runtime:

  • attr

  • iproute2

  • nftables (or iptables)

  • rsync

  • squashfs-tools

  • squashfs-tools-ng

  • tar

  • xz-utils

Build requirements

To build LXD from source, you must also meet the requirements below.

For instructions on installing these dependencies on Ubuntu, see Install LXD from source.

Go

LXD requires Go 1.27.4 or higher and is only tested with the Golang compiler.

We recommend having at least 2 GiB of RAM to allow the build to complete.

Build toolchain

Building LXD from source requires the following packages:

  • autoconf

  • automake

  • build-essential

  • git

  • libtool

  • make

  • meson

  • ninja-build

  • pkg-config

  • python3-venv (for the documentation)

Development headers

The development headers for the runtime libraries discussed above are required to build LXD, LXC, and Dqlite. Building Dqlite also requires the xfslibs-dev header.