Skip to content

Conversation

@dmcgowan
Copy link
Member

The EFI variant for 1.16.0 causes #51. The non-EFI variant may be built in used or the 1.15.1 libkrun build works.

Workaround for #51. Ideally the EFI variant is fixed or an up to do non-EFI variant is available via Homebrew.

I explored building libkrun as part of the bake process, however, cross compiling within a Linux container is complex as it seems it would require a large licensed sdk.

The EFI variant in 1.16.0 throws an error. Prefer the 1.15.1 non-EFI
variant.

Signed-off-by: Derek McGowan <[email protected]>
Copilot AI review requested due to automatic review settings November 16, 2025 23:56
Copilot finished reviewing on behalf of dmcgowan November 16, 2025 23:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a workaround for issue #51 by updating the libkrun library loading mechanism on macOS to prioritize the non-EFI variant (libkrun.dylib) over the EFI variant (libkrun-efi.dylib), which has loading issues in version 1.16.0.

Key Changes

  • Modified library search to try multiple library names in priority order on macOS
  • Updated Homebrew installation instructions to use libkrun instead of libkrun-efi
  • Added documentation about the compatibility issue with libkrun-efi 1.16.0

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
internal/vm/libkrun/instance.go Refactored library loading to search for multiple library names (libkrun.dylib first, then libkrun-efi.dylib as fallback) and updated error messages accordingly
README.md Updated macOS installation instructions to use the slp/krun tap and libkrun package, with notes about the libkrun-efi compatibility issue

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dmcgowan dmcgowan merged commit 5b824a0 into containerd:main Nov 21, 2025
9 checks passed
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.

2 participants