Hi folks, I want to build a custom LXD image for one of the projects on top of Ubuntu. I am not able to get the yaml config right in the source
group. Are there any working examples of yaml configs that uses ubuntu-http
as source that I can refer to?
It seems that ubuntu-http
is assuming the name of the tarball to be ubuntu-base-<release>-base-<architecture>.tar.gz
. Therefore, it should be removed from the docs to reduce the confusion.
As an alternative, I suggest using debootstrap
. Here is an example definition:
image:
distribution: ubuntu
release: focal
variant: default
description: Ubuntu {{ image.release }}
architecture: amd64
source:
downloader: debootstrap
url: http://archive.ubuntu.com/ubuntu
skip_verification: true # Otherwise, GPG keys have to be provided under "source.keys" (or an HTTPS server has to be used).
packages:
manager: apt
update: true