Bootstrap on LXD fails because there are no availability zones

I am unable to bootstrap a Juju controller on top of LXD because there are no availability zones configured, but still Juju insists:

$ juju bootstrap localhost master Creating Juju controller “master” on localhost/localhost Looking for packaged Juju agent version 2.8.1 for amd64 To configure your system to better support LXD containers, please see: https://github.com/lxc/lxd/blob/master/doc/production-setup.md Launching controller instance(s) on localhost/localhost… ERROR failed to bootstrap model: cannot start bootstrap instance in availability zone “ubuntu”: Not Found

Versions:

$ juju version 2.8.1-impish-amd64 $ lxd version 4.21

Any ideas?

Are you able to spawn lxc intances outside of juju?

lxc launch ubuntu:focal mycontainer1

1 Like

At some point we implemented a default zone for LXD controllers, I don’t remember when. Have you tried a more recent version of juju? 2.9.22 is available via snap.