To install LXD pure-container hypervisor on Ubuntu 18.04 LTS, you can use the following steps:
- Add the LXD PPA (Personal Package Archive) to your system by running the command:
sudo add-apt-repository -y ppa:ubuntu-lxc/lxd-stable
- Update the package lists by running:
sudo apt-get update
- Install the LXD package by running:
sudo apt-get install lxd
- After the installation is complete, initialize LXD by running:
sudo lxd init
- Follow the prompts to configure your LXD setup. Choose the default storage backend and network address if you’re unsure.
- Once the initialization is complete, you can start creating and managing containers using the
lxc
command.
Note: It is important to keep your system up to date, to do this you can use the command sudo apt update && sudo apt upgrade