Lxd: Image retrieval is too slow

Created on 5 Apr 2020  路  8Comments  路  Source: lxc/lxd

Required information

  • Distribution: Ubuntu
  • Distribution version: 20.04
  • The output of "lxc info" or if that fails:

    • Kernel version: 5.4.0-21-generic

    • LXC version: 4.0.0

    • LXD version: 4.0.0

    • Storage backend in use: dir

Issue description

Image retrieval is too slow even though the connection is good on my part.

Steps to reproduce

  1. $ lxc launch ubuntu:bionic
Creating the instance
Retrieving image: rootfs: 3% (8.06kB/s) 

Is there an other way to download the image, for example using a download manager like aria2 then import the downloaded image using lxc command.

Incomplete

Most helpful comment

Make sure to import as lxc image import /path/to/lxd.tar.xz /path/to/img.squashfs (tar.xz first)

All 8 comments

Does 'images:ubuntu/bionic/cloud' download faster?

You can go and download the two files by hand and import with lxc image import as an alternative indeed.

@stgraber thank you for the reply
Where can i go to get these files and what are their names ?

@stgraber
Yes images:ubuntu/bionic/cloud is faster

You need a .squashfs and the matching .tar.xz for it.

You can manually find them at https://cloud-images.ubuntu.com

Make sure to import as lxc image import /path/to/lxd.tar.xz /path/to/img.squashfs (tar.xz first)

Closing as bad performance/rounting on cloud-images.ubuntu.com is sadly out of our control.

@stgraber thank you so much

Was this page helpful?
0 / 5 - 0 ratings