lxd init on 16.04

Daniel Bidwell drbidwell at gmail.com
Thu May 12 17:05:34 UTC 2016


I tried the "dpkg-reconfigure lxd" several times and it didn't make any
difference.  I discovered that I had an old lxc package that was
installed and upgraded to lxc1.  I removed lxc1 and lxc-net and tried
to purge all of their old config files.

I then did the "dpkg-reconfiugre lxd" again and "lxd init".  Still no
luck.

I looked in /var/lib/lxd and removed all of the image files.  There was
still a directory in /var/lib/lxd/images
of d69bf4853c7b88399d57bcbb4250798d93de0aa9a10f104fbb0902573e1dfef0.zfs
which I had to unmount.  The directory that it was supposed to have
been mounted from was not visible.

Still no luck with the "lxd init".  I want to make lxd get it's storage
from my zfs file system.  What else might lxd be looking at that needs
to be cleaned out?


On Wed, 2016-05-11 at 11:41 +0400, John Meinel wrote:
> If you have a container or images, you can't run LXD init, because it
> would potentially change the storage backend, etc. If you already had
> LXD up and running, what were you looking to do with LXD init ? It is
> possible that you could delete all of your instances and images and 
> then run it.  Or you could directly set the configuration you need
> "lxc config set ???". You can set core.trust_password, 
> core.https_address. I don't think you can set the storage backend,
> because then you'd have to migrate all of your data over, which is
> the same thing as deleting it and running 'lxd init' and then
> starting fresh.
>
> John
> =:->

On Wed, 2016-05-11 at 14:22 -0700, Reed O'Brien wrote:
> I think you have to run `sudo dpk-reconfigure lxd` first. 
> 
> See https://insights.ubuntu.com/2016/04/07/lxd-networking-lxdbr0-expl
> ained/
> 
> See also some notes I wrote:
> https://github.com/reedobrien/juju-notes/blob/master/writing-a-ci-tes
> t.md#install-lxd
> 
> Cheers,
> Reed
> 
> On Wed, May 11, 2016 at 1:35 PM, Daniel Bidwell <drbidwell at gmail.com>
> wrote:
> > I just upgraded a machine to 16.04 and tried to do an "lxd init"
> > and
> > received an err of "LXD init cannot be used at this time".  What
> > causes
> > this?  What do I have to clear out to make it work correctly?
> > --
> > Daniel Bidwell <drbidwell at gmail.com>
> > 
> > 
> > --
> > Juju-dev mailing list
> > Juju-dev at lists.ubuntu.com
> > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman
> > /listinfo/juju-dev
> > 
> 
> 
> -- 
> Reed O'Brien 
> ✉ reed.obrien at canonical.com
> ✆ 415-562-6797
> 
-- 
Daniel Bidwell <drbidwell at gmail.com>




More information about the Juju-dev mailing list