Rather than hardcoding a path to the /opt/homebrew/lib directory for the build.rs file to link with, we should use the path provided by the user in LIBKRUN_EFI instead. If the environment variable cannot be found because a user didn't use it, then fallback to the default path. Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me> |
||
|---|---|---|
| .github/workflows | ||
| docs | ||
| src | ||
| .gitignore | ||
| CODEOWNERS | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| build.rs | ||
| create_release_podman.sh | ||
| krunkit.entitlements | ||
README.md
krunkit
krunkit is a tool to launch configurable virtual machines using the libkrun platform.
Installation
krunkit relies on the efi flavor of libkrun. At present, libkrun-efi is only available on macOS. We provide a Homebrew repository to install krunkit and all of its dependencies, installable with:
$ brew tap slp/krunkit
$ brew install krunkit
Building from source
As noted above, krunkit relies on the efi flavor of libkrun. Ensure that is installed on your system.
# If libkrun-efi.dylib is not located at /opt/homebrew/opt/libkrun-efi/lib/
# provide the path at which it's located using the LIBKRUN_EFI variable. Otherwise,
# the Makefile will default to using the /opt/homebrew/... path.
$ make LIBKRUN_EFI=<path to libkrun-efi.dylib>
$ sudo make install
Usage
See docs/usage.md.
License: Apache-2.0