and a few more commands based on my interpretation of the documentation.
May I know what the correct command to fetch the images might be?
Would there be a way to import the images beforehand without going through the CLI/LXD launch? (as in can I pre-fetch the images in chroot environment by downloading the tarballs from source?)
Just to clarify the difference between the image import and image copy.
The image import command is used for importing the local image from metadata tarball and rootfs / raw disk. For example, when an image is created using lxd-imagebuilder.
The image copy command is used for copying images between servers.
As of being able to pre-download the images into the chroot environment, would it be something that’d be possible? I’m asking since the image has to be uploaded to the database for it to work. Also, I’ve done a snapshot testing of lxc bootstrapped with Juju, launching a VM with the snapshot image (raw) with network changes. The juju controller remains bootstrapped as expected.
If I copy over the files from snap directories, would this be able to be picked up by the snap/lxd daemon when I boot the image?
I’ve tried different combinations of the properties, e.g. lxc image copy ubuntu:22.04-squashfs, lxc image copy ubuntu:22.04-20240716-squashfs, lxc image copy ubuntu:22.04-server-cloudimg-amd64.squashfs.
Would you know if I could target the one Juju downloads without defining the fingerprint?
The first fingerprint (82b997ec581b) is for a container image released on 2024.07.01.
The second one ( a9585abb92b2) is for a virtual machine released on 2024.07.16.
When referencing images by alias, LXD will download the latest version (those released on 2024.07.16 in this case). To get an older version of a specific image, a fingerprint needs to be provided.
lxc image copy ubuntu:22.04 local: → Latest container image released on 2024.07.16 with fingerprint e728500de9fa (in time of writing)
lxc image copy ubuntu:82b997ec581b local: → Container image released on 2024.07.01 with fingerprint 82b997ec581b