Skip to content

Krunvm does not find /opt/homebrew/lib/libkrunfw.4.dylib #70

Closed

Description

@discapes

If I install krunvm with homebrew (on Apple M2 Pro) and try to start a debian microVM, I get the following error:

krunvm start debian-microVM
Couldn't find or load libkrunfw.4.dylib
Error starting VM

The workaround DYLD_LIBRARY_PATH=/opt/homebrew/lib krunvm start debian-microVM works. Related: Homebrew/brew#13481

Activity

  1. added a commit that references this issue on Sep 18, 2025
    9da3368
  2. slp commented on Sep 18, 2025

    @slp
    Collaborator

    Thanks for reporting this. If you have the opportunity, please give #71 a try.

  3. added a commit that references this issue on Sep 18, 2025
    8ad6319
  4. discapes commented on Sep 18, 2025

    @discapes
    Author

    The error message about not being able to find or load libkrunfw.4.dylib disappears, so I assume the patch is working. However I still get just Error starting VM, but that might be related to something in my build environment. If I try the code on the main branch, I get Error setting VM mapped volumes.

  5. added a commit that references this issue on Nov 24, 2025
    09976b9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions