Looking for some help… am trying to build a Centos/9-Stream/cloud image for LXD I’ve downloaded the centos.yaml from lxc-ci and I got the distrobuilder arguments from Jenkins.
The distrobuilder docs seemed to indicate I should do a build-dir and then a pack-lxc
distrobuilder build-dir centos.yaml $PWD/centos -o image.architecture=x86_64 -o image.release=9-Stream -o image.variant=cloud -o source.variant=boot -o
source.url=https://mirror1.hs-esslingen.de/pub/Mirrors/centos-stream
distrobuilder pack-lxc centos.yaml $PWD/rootfs $PWD/images
Both work ok… (warnings about overs not being supported)…
When I attempt to import the image…
lxc image import meta.tar.xz rootfs.tar.xz --alias centos/9-Stream/cloud
Error: Metadata tarball is missing metadata.yaml
I get
Error: Metadata tarball is missing metadata.yaml
[root@mdev images]# tar tvf meta.tar.xz
-rw-r--r-- root/root 61 2024-02-28 12:38 create-message
-rw-r--r-- root/root 11 2024-02-28 12:38 expiry
-rw-r--r-- root/root 1 2024-02-28 12:38 excludes-user
-rw-r--r-- root/root 64 2024-02-28 12:38 config
-rw-r--r-- root/root 110 2024-02-28 12:38 config-user
-rw-r--r-- root/root 124 2024-02-28 12:38 config-user.1
-rw-r--r-- root/root 124 2024-02-28 12:38 config-user.2
-rw-r--r-- root/root 124 2024-02-28 12:38 config-user.3
-rw-r--r-- root/root 124 2024-02-28 12:38 config-user.4
-rw-r--r-- root/root 71 2024-02-28 12:38 config.1
-rw-r--r-- root/root 71 2024-02-28 12:38 config.2
-rw-r--r-- root/root 71 2024-02-28 12:38 config.3
-rw-r--r-- root/root 71 2024-02-28 12:38 config.4
-rw-r--r-- root/root 34 2024-02-28 12:38 templates