# Installing LXD Hypervisor
# Installation
Install snapd package
sudo apt update -y && sudo apt upgrade -y
sudo apt install snapd -y
Install lxd package via snap
sudo snap install lxd
Add user to lxd group
sudo usermod -a -G lxd <user>
# Initial Configuration
lxd init
# Basic Administration
To create your first container, simple run the following command. Note that you can leave the container_name optional if you like.
lxc launch images:debian/stretch/amd64 <container_name>
To view a list of containers you have:
lxc list
To access your container:
lxc exec <container_name> -- /bin/bash
To stop your container:
lxc stop <container_name>
To delete your container:
lxc delete <container_name>