How to Install LXD on Ubuntu 20.04

LXD-containers-logo

In this article, we will have explained the necessary steps to install and configure LXD on Ubuntu 20.04 Focal Fossa. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

LXD is a next generation system container manager. It offers a user experience similar to virtual machines but using Linux containers instead. It can run hundreds of containers of a variety of Linux distributions. LXD can set up any network and storage. Its containers are lightweight, secure by default and a great alternative to running Linux virtual machines.

LXD Features:

  • Secure by design (unprivileged containers, resource restrictions and much more)
  • Scalable (from containers on your laptop to thousand of compute nodes)
  • Intuitive (simple, clear API and crisp command line experience)
  • Image based (with a wide variety of Linux distributions published daily)
  • Support for Cross-host container and image transfer (including live migration with CRIU)
  • Advanced resource control (cpu, memory, network I/O, block I/O, disk usage and kernel resources)
  • Device passthrough (USB, GPU, unix character and block devices, NICs, disks and paths)
  • Network management (bridge creation and configuration, cross-host tunnels)
  • Storage management (support for multiple storage backends, storage pools and storage volumes)

Install LXD on Ubuntu

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade

Step 2. Install Snap.

Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build:

sudo apt install snapd

Step 3. Install LXD on Ubuntu system.

To install LXD, simply use the following command:

sudo snap install lxd

Step 4. Accessing LXD on Ubuntu.

Once the installation is completed, you can launch the LXD by hitting the super key and searching for it using the search bar or copy and paste the below-mentioned command on your Terminal and carry out the task:

lxd

That’s all you need to do to install LXD on Ubuntu 20.04 Focal Fossa. I hope you find this quick tip helpful. Don’t forget to share your valuable queries/suggestions in the below comment box & also drop your worthwhile feedback.