LXD

Mist allows you to manage Linux Containers (LXC/LXD) alongside other supported platforms.

Specifically for LXD, with Mist you can:

  • Get a list of your containers. Listings include relevant metadata, e.g. state, IPs, config parameters etc.
  • Start, stop, reboot and destroy containers.
  • Create new containers from images that are already available on your host. 
  • List, create, attach, detach and delete storage volumes. Please note that in order to create new volumes you first need to define storage pools in your LXD host.

You can also leverage features that are common to all our supported clouds, e.g. tags, ownership, expiration dates, cost quotas, RBAC, shell, scripts, orchestration, monitoring, rules, audit logs etc.

Getting started

To get started with LXD in Mist, you first need to add an LXD host. In more detail:

  1. If your LXD host does not allow remote access, enable it now. In the FAQ section below you will find some quick instructions on how to do it.
  2. Log in Mist.
  3. Go to Mist's add cloud form at https://mist.io/clouds/+add and click the LXD logo.
  4. In the form that appears at the bottom, type a name for your cloud. Also, provide the hostname or IP of your LXD host and the port LXD listens to.
  5. Copy and paste your certificate details in the respective fields. The CA certificate is optional. 
  6. Click the "ADD CLOUD" button and you are ready to go.

FAQ

How do I setup remote access?

By default, LXD does not allow remote access. To enable it on port 8443, run the following command as root on your LXD host:

lxc config set core.https_address [::]:8443

Communications with the LXD daemon happen using JSON over HTTPS. The supported protocol must be TLS1.2 or better. You can find more details in the official documentation here.

To create a self-signed TLS certificate, run the following commands on your LXD host:

openssl genrsa -out lxd.key 4096
openssl req -new -key lxd.key -out lxd.csr
openssl x509 -req -days 3650 -in lxd.csr -signkey lxd.key -out lxd.crt
lxc config trust add lxd.crt

lxd.key goes to the "Key" field of Mist's add cloud form. lxd.crt goes to the "Certificate" field. 

Still need help? Contact Us Contact Us