Skip to content

Instantly share code, notes, and snippets.

@badsyntax
Created December 18, 2015 23:30
Show Gist options
  • Select an option

  • Save badsyntax/cabbf8c6db5a9a34bf9a to your computer and use it in GitHub Desktop.

Select an option

Save badsyntax/cabbf8c6db5a9a34bf9a to your computer and use it in GitHub Desktop.
Install and Enable the LXD REST API in Ubuntu 14.04
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:ubuntu-lxc/lxd-stable
sudo apt-get update
sudo apt-get install -y lxd
sudo newgrp lxd
sudo lxc config set core.https_address 127.0.0.1
sudo lxc config trust add $HOME/.config/lxc/client.crt
export LXD_URI=https://127.0.0.1:8443/
export LXD_CERT=$HOME/.config/lxc/client.crt
export LXD_KEY=$HOME/.config/lxc/client.key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment