How to install LXD container hypervisor on Ubuntu 16.04 LTS

How to install LXD container hypervisor on Ubuntu 16.04 LTS

To install LXD, the container hypervisor for Ubuntu 16.04 LTS, follow these steps:

  1. Add the LXD PPA to your system's package sources by running the following command:
sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable
Sour‮:ec‬www.lautturi.com
  1. Update the package manager's package list:
sudo apt update
  1. Install the lxd package by running the following command:
sudo apt install lxd
  1. Initialize LXD by running the following command:
sudo lxd init

This will guide you through the process of setting up LXD on your system. Follow the prompts to choose your storage backend, network address, and other options.

  1. Once the initialization process is complete, you can start using LXD to manage containers on your system. To create a new container, run the following command:
lxc launch ubuntu:16.04 my-container

Replace my-container with the desired name for your container. This will create a new container based on the Ubuntu 16.04 image and start it.

  1. To access the container's console, run the following command:
lxc exec my-container bash

Replace my-container with the name of your container. This will open a terminal session within the container, allowing you to run commands and manage the container.

That's it! You now have LXD installed and configured on your Ubuntu 16.04 system, and you can use it to manage containers.

Created Time:2017-10-16 14:38:47  Author:lautturi