Skip to content

build_library: fix Exoscale image format, size, and compression#4075

Open
jheidel wants to merge 1 commit into
flatcar:mainfrom
jheidel:fix-exoscale-image
Open

build_library: fix Exoscale image format, size, and compression#4075
jheidel wants to merge 1 commit into
flatcar:mainfrom
jheidel:fix-exoscale-image

Conversation

@jheidel
Copy link
Copy Markdown

@jheidel jheidel commented Jun 7, 2026

Fix Exoscale image format, size, and compression

Exoscale requires Custom Templates to be at least 10GB, expects a .qcow2 extension, and Exoscale Custom Templates do not support compressed (.bz2) images. Currently, Flatcar releases an 8GB compressed .img.bz file.

This change ensures the output file uses the .qcow2 extension, applies a post-conversion resize to exactly 10G, and disables compression in the release pipeline, matching that of similar platforms (scaleway, etc).

This fixes flatcar/Flatcar#2163

How to use

Reviewers can verify that the generated .qcow2 image can be directly used by Exoscale Custom Template and that this instance can be used to create a new compute instance with 10G disk size.

Testing done

The changes were verified using the Flatcar SDK:

  1. Build base image and oem sysexts:
./run_sdk_container ./build_image --board=amd64-usr --getbinpkg
./run_sdk_container ./build_image --board=amd64-usr --getbinpkg oem_sysext
  1. Generate Exoscale image:
./run_sdk_container ./image_to_vm.sh --board=amd64-usr --getbinpkg --format=exoscale --image_compression_formats=none
  1. Verify image metadata:

    qemu-img info __build__/images/amd64-usr/latest/flatcar_production_exoscale_image.qcow2
    image: flatcar_production_exoscale_image.qcow2
    file format: qcow2
    virtual size: 10 GiB (10737418240 bytes)
    
  2. Real-world test: The resulting image was hosted on a public web server and successfully imported into Exoscale's 'Add Custom Template' UI without any manual renaming, resizing, or decompression required.

Exoscale requires Custom Templates to be at least 10GB, expects a
.qcow2 extension, and Exoscale Custom Templates do not support
compressed (.bz2) images. Currently, Flatcar releases an 8GB
compressed .img file.

This change ensures the output file uses the .qcow2 extension,
applies a post-conversion resize to exactly 10G, and disables
compression in the release pipeline to match platform requirements
and UI prompts.

Signed-off-by: Jeff Heidel <jheidel@gmail.com>
@jheidel jheidel requested a review from a team as a code owner June 7, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exoscale image cannot be used directly with Exoscale Custom Template

1 participant