Here is a set of three tutorials on how to configure LXD on a VPS,
- 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=trueto avoid dealing with the PROXY protocol. The storage pool is placed on block storage.
- 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
iptablesfor port forwarding. The storage pool is placed on block storage.
- the original old tutorial for LXD 2.0.x on Ubuntu 16.04.