[lxc-users] LXD launch fails

Fajar A. Nugraha list at fajar.net
Wed May 17 04:57:46 UTC 2017

On Wed, May 17, 2017 at 7:59 AM, CLOSE Dave <Dave.Close at us.thalesgroup.com>

> Instructions modified to handle the company proxy per
> <https://insights.ubuntu.com/2016/03/16/lxd-2-0-installing-
> and-configuring-lxd-212/>:
>    # lxc config set core.proxy_http http://squid01.internal:3128
>    # lxc config set core.proxy_https http://squid01.internal:3128
>    # lxc config set core.proxy_ignore_hosts image-server.local
I assume the proxy address is modified correctly to your real proxy?

> (All values shown per the original pages. I modified them to use a valid
> user name and the correct local proxy.)
> Everything works /except/ the launch command. I can list the images
> available so I'm getting through the proxy and accessing the correct

IIRC some commands are executed as the client (lxc command run by the
user), while others are run by lxd (lxc tells lxd to run something). "lxc
launch" should belong to the second category.

> site. But the launch reports,
>    $ lxc launch images:fedora/25
>    Creating joint-hamster
>    Retrieving image: metadata: 100% (1.80GB/s)
>    error: Unable to fetch https://images.linuxcontainers.org/images/fedora
>      /25/amd64/default/20170505_02:42/rootfs.tar.xz:
>      503 Service Unavailable
> Is the service actually running (I've seen this result for 24 hours)?

Try accessing the file directly. Works for me.

> Am
> I making some other mistake?

- doublecheck your proxy setup, in case there's a typo somewhere
- check your proxy logs
- check /var/log/lxd/lxd.log (or wherever that is in fedora), look for

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170517/3a8d7445/attachment-0001.html>

More information about the lxc-users mailing list