How to install LXC / LXD on Linux

What is LXD?

LXD ([lɛks'di:]) is a next generation system container and virtual machine manager. It offers a unified user experience around full Linux systems running inside containers or virtual machines.

LXD is image based and provides images for a wide number of Linux distributions. It provides flexibility and scalability for various use cases, with support for different storage backends and network types and the option to install on hardware ranging from an individual laptop or cloud instance to a full server rack.

When using LXD, you can manage your instances (containers and VMs) with a simple command line tool, directly through the REST API or by using third-party tools and integrations. LXD implements a single REST API for both local and remote access.

The LXD project was founded and is currently led by Canonical Ltd with contributions from a range of other companies and individual contributors.

Before installing LXC LXD, check if you already have it. By running;

which lxc which lxd

If no path is shown then go ahead with the below steps;

Step 1 RUN

sudo apt update

Step 2

sudo apt install lxc lxd

Step 3

Add your account to the lxd group and RUN and follow the steps.

lxd init

 

If you need assistance with your projects feel free to email me at info@airgad.com or whatsapp Jesse stay safe!