← Back to issue list

Build provider LXD uses x86-only image source

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1836526
Type
issue
State
closed
Author
~fnordahl
Labels
—
Created
Updated
Closed

Current evaluation

Fixed by refactoring LXD provider to use craft-providers BuilddBase, ensuring images are available for all architectures.

Resolution: closed resolved

Reason: Resolved because LXD images are now available for all architectures supported by snapcraft. The code was refactored to delegate LXD setup to craft-providers BuilddBase, which correctly handles multi-arch image selection.

Evaluated by: mr-cal-bot

No scores available.

Issue body

The LXD build provider loads Ubuntu Minimal Cloud images. These images are available for x86 platforms only. Subsequently attempts to run ``snapcraft build --use-lxd`` on a non-x86 platform (arm64, s390x or ppc64el) result in this sequence of error messages: Launching a container. An error occurred with the instance when trying to launch with 'LXD': The requested image couldn't be found. Ensure that 'LXD' is setup correctly and try again. Changing snapcraft to load full cloud images or just using the standard LXD Ubuntu image server would most likely solve this issue. https://github.com/snapcore/snapcraft/blob/d59622a8100c021e02fb5a99947e42602d306ae2/snapcraft/internal/build_providers/_lxd/_images.py#L33

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b — closed resolved Fixed by refactoring LXD provider to use craft-providers BuilddBase, ensuring images are available for all architectures.
stealth/space-bunny-alpha
Impact: 58
Quick Win: 35
Complexity: 28
Confidence: 86
Actionability: 84
close resolved LXD builds once failed on arm64, s390x, and ppc64el due to a hard-coded x86 Minimal Cloud image. Current code delegates LXD setup to craft-providers BuilddBase, removing that image module.
stealth/space-bunny-alpha
Impact: 58
Quick Win: 29
Complexity: 42
Confidence: 96
Actionability: 86
close resolved LXD builds on arm64, s390x, and ppc64el could not find Ubuntu minimal images; Snapcraft moved the provider to Ubuntu buildd images, and current code still uses BuilddBase.
qwen/qwen3.6-35b-a3b
Impact: 80
Quick Win: 45
Complexity: 30
Confidence: 85
Actionability: 80
close resolved LXD build provider used x86-only Ubuntu Minimal Cloud images, preventing builds on arm64/s390x/ppc64el. The LXD provider code has been refactored out of snapcraft into the craft-providers library, which uses multi-architecture buildd images.
qwen/qwen3.8-27b
Impact: 15
Quick Win: 12
Staleness: 95
Complexity: 20
Confidence: 82
Support Request: 0
close stale LXD build provider in old Go-based snapcraft 1.x used x86-only Ubuntu Minimal Cloud images, breaking builds on arm64/s390x/ppc64el. The referenced file no longer exists; snapcraft 2.x+ uses craft-providers with multi-arch buildd images from cloud-images.ubuntu.com. Issue is 7+ years old with zero maintainer interaction.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 25
Confidence: 90
Support Request: 0
close stale LXD build provider fails on non-x86 architectures due to x86-only image sources. Issue has been inactive for over 7 years with no maintainer response.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 30
Confidence: 85
Support Request: 10
close stale LXD build provider uses x86-only images, failing on non-x86 architectures. Issue is 7 years old, unlabelled, and has no maintainer response.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 15
Confidence: 80
Support Request: 5
close stale LXD build provider only loads x86-only Ubuntu Minimal Cloud images, causing launch failures on non-x86 architectures. Unlabelled and inactive for over six years.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcraft#3943 (confidence 95%)

    Refactored providers to use craft-providers BuilddBase, removing the hardcoded x86-only image module.

Related issues

Issue Project State Summary Similarity
#2966 build providers: move to buildd images snapcraft merged Merged as commit 916097e6d, moving LXD build providers to Ubuntu buildd images to support all architectures and core20.
76%