Hi Krishna

Those docs are not great. Here's a Tl;DR step-by-step guide for a fresh
16.04 machine. I recommend you use the 16.04 beta because it includes
everything you need for a great experience by default.

  sudo apt install zfsutils-linux
  sudo add-apt-repository ppa:juju/devel
  sudo apt-get update
  sudo apt install juju2

Those give you all the latest bits you'll need.

  sudo mkdir /var/lib/zfs
  sudo truncate -s 50G /var/lib/zfs/lxd.img

This makes a sparse 50G file as a storage back-end for LXD containers.
Being a sparse file it doesn't actually take up 50G but will fill up as
you use the ZFS filesystem for various containers over time. You could
alternatively use a spare disk, preferably a nice fast one :)

  sudo zpool create lxd /var/lib/zfs/lxd.img
  sudo zpool status

At this point you should see that you have a ZFS pool setup with nothing
going on.

  sudo lxd init --auto --storage-backend zfs --storage-pool lxd
  newgrp -  # I think this is needed to get into the LXD group

You may need to logout and login to be in the lxd group.

And finally:

  juju bootstrap --config default-series=xenial lxd-test lxd

So now:

~$ juju list-controllers
CONTROLLER       MODEL    USER         SERVER
local.lxd-test*  default  admin@local  10.0.3.161:17070

~$ juju create-model test
created model "test"

~$ juju switch
local.lxd-test:test

~$ juju deploy wordpress

... and you're off.

Mark

On 01/04/16 10:46, Matthew Williams wrote:
> Hi Krishna,
>
> You can use the lxd provider. There are instructions at the following places
>
> https://jujucharms.com/docs/devel/config-LXD
> https://jujucharms.com/docs/devel/controllers-creating
>
> Thanks
>
> Matty
>
> On Fri, Apr 1, 2016 at 8:25 AM, Krishna Bandi <[email protected]> wrote:
>
>> Hi Team,
>>
>>  Hope you all doing great. I was trying to use ibm-base-layer and as
>> confirm by Matt it uses juju 2.0 so I was trying to install juju 2.0 on
>> ubuntu x86 machine by following the link
>> https://jujucharms.com/docs/devel/introducing-2and found it has steps for
>> aws setup only and I am not able to install local lxc containers.
>>
>> Can you please advise on how to set up local lxc containers using juju
>> 2.0.
>>
>> Also we are not able to install juju 2.0 on power machine, please suggest
>> on this.
>>
>> Thanks & Regards,
>>
>> Bandi K Chaitanya
>> ------------------------------
>> *Mobile:*+91-9731459999
>> *E-mail:* *[email protected]* <[email protected]>
>> [image: IBM]
>>
>>
>>
>> --
>> Juju mailing list
>> [email protected]
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/juju
>>
>>
>
>

-- 
Juju mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to