Skip to content

Commit 54fc6ea

Browse files
authored
Merge pull request #4395 from AkihiroSuda/docs
docs: krunkit: update installation steps
2 parents 6cac16d + 06aa828 commit 54fc6ea

File tree

1 file changed

+29
-8
lines changed

1 file changed

+29
-8
lines changed

website/content/en/docs/config/vmtype/krunkit.md

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,38 @@ For reference: https://github.com/slp/homebrew-krun
2020

2121

2222
## Using the driver with Lima
23-
Build the driver binary and point Lima to it. See also [Virtual Machine Drivers](../../dev/drivers).
2423

25-
```bash
26-
git clone https://github.com/lima-vm/lima && cd lima
24+
The `krunkit` driver is usually bundled with Lima as an external driver:
25+
26+
```console
27+
$ limactl info | jq .vmTypesEx
28+
{
29+
"krunkit": {
30+
"location": "/opt/homebrew/Cellar/lima/2.0.1/libexec/lima/lima-driver-krunkit"
31+
},
32+
"qemu": {
33+
"location": "internal"
34+
},
35+
"vz": {
36+
"location": "internal"
37+
}
38+
}
39+
```
40+
41+
If the driver is not installed, build and install the driver as follows:
2742

28-
# From the Lima source tree
29-
# <PREFIX> is your installation prefix. With Homebrew, use: $(brew --prefix)
30-
go build -o <PREFIX>/libexec/lima/lima-driver-krunkit ./cmd/lima-driver-krunkit/main_darwin_arm64.go
31-
limactl info # "vmTypes" should include "krunkit"
43+
```bash
44+
git clone https://github.com/lima-vm/lima
45+
cd lima
46+
# Replace vX.Y.Z with the actual version
47+
git checkout vX.Y.Z
48+
make ADDITIONAL_DRIVERS=krunkit additional-drivers
49+
# Replace /usr/local with the actual installation prefix
50+
cp -a _output/libexec/lima/lima-driver-krunkit /usr/local/libexec/lima/
3251
```
3352

53+
See also [Developers' guide » Virtual Machine Drivers](../../dev/drivers.md).
54+
3455
## Quick start
3556

3657
You can run AI models either:
@@ -173,4 +194,4 @@ and enjoy chatting with the AI model.
173194
- To verify GPU/Vulkan in the guest container or VM, use tools like `vulkaninfo --summary`.
174195
- AI models on containers can run on any Linux distribution but without containers Fedora is required.
175196
- For more information about usage of `llama-cli`. See [llama.cpp](https://github.com/ggml-org/llama.cpp) `README.md`.
176-
- Driver architecture details: see [Virtual Machine Drivers](../../dev/drivers).
197+
- Driver architecture details: see [Virtual Machine Drivers](../../dev/drivers).

0 commit comments

Comments
 (0)