Juju should be able to use a locally installed LXD image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Andrew Wilkins |
Bug Description
I should be able to manually import an image into LXD and have Juju use that.
= Setup (sudo lxd init previously done) =
wget https:/
lxc image import xenial-
You should then be able to launch an image:
lxc launch ubuntu-xenial
= Go "Offline" =
Edit /etc/hosts and add:
127.0.0.1 cloud-images.
127.0.0.1 streams.ubuntu.com
= Bug =
Then you try with juju bootstrap
$ juju bootstrap
Since Juju 2 is being run for the first time, downloading latest cloud information.
Fetching latest public cloud list...
Updated your list of public clouds with 1 cloud region added:
added cloud region:
- aws/us-east-2
Clouds
aws
aws-china
aws-gov
azure
azure-china
cloudsigma
google
joyent
localhost
rackspace
Select a cloud [localhost]:
Enter a name for the Controller [localhost-
Creating Juju controller "localhost-
Looking for packaged Juju agent version 2.0.0 for amd64
To configure your system to better support LXD containers, please see: https:/
Launching controller instance(s) on localhost/
ERROR failed to bootstrap model: cannot start bootstrap instance: image not imported!
tags: | added: lxd lxd-provider |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.2.0 |
Changed in juju: | |
milestone: | 2.2-beta1 → 2.2-beta2 |
Changed in juju: | |
milestone: | 2.2-beta2 → 2.1.0 |
Actually this is also reproducible by doing a juju bootstrap, and then "going offline" even if it Juju downloaded the image files itself.