I'm too cheap to pay for EC2, and I don't have enough servers to set up my own openstack, how do I configure juju to use Linux Containers (LXC) on something like my laptop?


Install Juju:

sudo add-apt-repository ppa:juju/devel
sudo apt-get update
sudo apt-get install juju-core lxd

You just need to configure the local provider:

newgrp lxd

Then bootstrap a new controller:

juju bootstrap lxd-test lxd

Follow the documentation for the rest of the configuration steps:

  • I'd like to add that for people with more than one environment setup in the yaml file, you select the environment by passing -e <environment_name> to select which one to use. – mfisch Nov 21 '12 at 5:01
  • After running juju init -w, I get an error: " invalid choice: 'init'". I am using the version of Juju in the Raring archives. Do I need to use the PPA? – Nathan Osman Aug 30 '13 at 7:10
  • I'm using ubuntu 12.04 and I had to add cloud-archive:tools PPA in order to be able to bootstrap. – s3v3n Aug 17 '14 at 13:21

protected by Community Jun 16 '13 at 14:40

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.