How To Install and Configure LXD on Ubuntu 20.04/18.04/16.04

Here is a set of three tutorials on how to configure LXD on a VPS,

  1. on Ubuntu 20.04 LTS. Shows how to use the snap package of LXD 4.0.x (stable channel), the default version on Ubuntu 20.04. Uses a LXD proxy device to expose a Web server to the Internet. Also does nat=true to avoid dealing with the PROXY protocol. The storage pool is placed on block storage.
  1. on Ubuntu 18.04. Show how to use the default deb package of LXD (LXD 3.0.x) as found on Ubuntu 18.04. Uses iptables for port forwarding. The storage pool is placed on block storage.
  1. the original old tutorial for LXD 2.0.x on Ubuntu 16.04.
4 Likes