feat: support minimal image variant for LTS templates#5156
Conversation
ea59cf1 to
15d129b
Compare
|
Probably we should just have separate |
4419f9e to
b4e53c4
Compare
b4e53c4 to
0fbe7e7
Compare
I suggested to have separate But |
0fbe7e7 to
3281693
Compare
|
Please keep the commit message descriptive |
| - Same as `default` but comment lines are omitted from the YAML | ||
| - [`ubuntu-22.04-minimal`](./ubuntu-22.04-minimal.yaml): Ubuntu 22.04 LTS Minimal (Jammy Jellyfish) [amd64 only] | ||
| - [`ubuntu-24.04-minimal`](./ubuntu-24.04-minimal.yaml): Ubuntu 24.04 LTS Minimal (Noble Numbat) | ||
| - [`ubuntu-26.04-minimal`](./ubuntu-26.04-minimal.yaml), `ubuntu-minimal`, `ubuntu-lts-minimal`: Ubuntu 26.04 LTS Minimal (Resolute Raccoon) |
There was a problem hiding this comment.
Bikeshedding: ubuntu-VERSION-minimal or ubuntu-minimal-VERSION.
cc @lima-vm/committers
There was a problem hiding this comment.
imo ubuntu-VERSION-minimal would be better for grouping and consistency. It also aligns with the upstream Ubuntu image naming convention.
There was a problem hiding this comment.
Please use name-version-variant, like in:
debian-13-genericcloud-amd64-daily.qcow2
Signed-off-by: Nachiket Roy <nachiket.roy.2@gmail.com>
3281693 to
9d88755
Compare
Now it became separate a separate distribution, like almalinux-kitten or the others This "works", but it was the thing that I wanted to avoid when I created the #5153 |
|
As we have found other use cases of variants, shall we close this PR in favor of: |
Summary
Add support for Ubuntu minimal cloud images without increasing the number of templates. This change introduces a variant-based image selection mechanism that allows users to opt into Ubuntu minimal images while continuing to use the existing Ubuntu templates. The default behavior remains unchanged. The minimal images provide a smaller download and guest footprint compared to the regular Ubuntu images, while still working with the standard Lima provisioning flow.
The change also includes updates to template generation and test coverage to ensure both standard and minimal Ubuntu images continue to work correctly.
Manual Verification
Users can opt into the minimal image variant by overriding imageOpts.variant during creation:
limactl create template:ubuntu --set ".imageOpts.variant=\"minimal\"" limactl start ubuntufixes #5153