Skip to content

Update Lima golden image to Ubuntu 26.04 LTS - #618

Draft
hbrodin wants to merge 1 commit into
mainfrom
feat/issue-616-ubuntu-26
Draft

hbrodin wants to merge 1 commit into
mainfrom
feat/issue-616-ubuntu-26

Conversation

@hbrodin

@hbrodin hbrodin commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Use Ubuntu 26.04 LTS cloud images for the Lima golden-image builder on arm64 and amd64.
  • Include both source-image URLs in the Lima image recipe hash so coop setup rebuilds cached Ubuntu 24.04 golden images. Existing instance disks keep their OS.
  • Apply Lima's internal_netplanOptional setting to builder and fast-start templates, and assert the guest OS version in the macOS integration suite.

Closes #616.

Verification

  • cargo build --workspace, cargo test --workspace, cargo fmt --all -- --check, and workspace Clippy with all targets and features passed.
  • macOS arm64 cross-target cargo check and Clippy passed. cargo deny --workspace check, taplo format --check, bash -n tests/integration.sh, and staged prek run passed.
  • Both Ubuntu cloud-image URLs and the Docker and GitHub CLI apt repository endpoints responded successfully. Deliberately changing the arm64 URL and removing source-image identity from the recipe hash each failed the corresponding unit test.

Integration results

Full integration was run against commit 6eda63f6af49fe6e29c0b0bd5d5cf102b82c2c6d on both backends.

  • Linux/Firecracker: passed. The --full suite exited 0 with 613 passed, 0 failed, and 12 expected skips. This included bridge isolation, lifecycle and failure-recovery coverage, model switching, and the credential-injecting proxy phases.

  • macOS/Lima: failed during setup. The host had Lima 1.0.2. All pre-setup CLI phases passed, but Lima rejected the generated golden-image builder template before creating the VM:

    field `param` key "internal_netplanOptional" is not used in any provision, probe, copyToHost, or portForward
    

The failure exposes a previously undocumented dependency: internal_netplanOptional and the corresponding Ubuntu 26.04 cidata/netplan behavior require Lima 2.1.3 or newer. Older Lima releases neither recognize this internal parameter nor contain the associated first-boot NIC-rename workaround, so removing the parameter is not a compatible fallback.

Required follow-up before ready for review

  • Add a Lima 2.1.3 minimum-version prerequisite check with actionable upgrade guidance and update the documentation.
  • Rerun the full macOS/Lima integration suite with Lima 2.1.3 or newer, including golden-image setup, fresh boot, SSH, agent bootstrap, workspace transfer, stop, restart, and built-in profiles.

The dependency and acceptance criteria are tracked in #616.

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.

Update the Lima golden image to Ubuntu 26.04 LTS

1 participant