Skip to content

Commit 8eb03a4

Browse files
authored
Merge pull request #35 from AkihiroSuda/dev
Simplify installation steps
2 parents 41fd9cc + 341ebb7 commit 8eb03a4

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,19 @@ For the usage of containerd and nerdctl (contaiNERD ctl), visit https://github.c
7575

7676
## Getting started
7777
### Requirements (Intel Mac)
78-
- coreutils (for `realpath` command) (`brew install coreutils`)
79-
- QEMU (`brew install qemu`)
78+
- QEMU v6.0.0 or later (`brew install qemu`)
8079

81-
- Run the following commands to enable `--accel=hvf`:
80+
81+
<details>
82+
<summary>
83+
Signing the binary (not needed for recent version of QEMU and macOS, in most cases)
84+
</summary>
85+
86+
<p>
87+
88+
If you have installed QEMU v6.0.0 or later on macOS 11, your binary should have been already automatically signed to enable HVF acceleration.
89+
90+
However, if you see `HV_ERROR`, you might need to sign the binary manually.
8291

8392
```bash
8493
cat >entitlements.xml <<EOF
@@ -102,10 +111,11 @@ Note: **Only** on macOS versions **before** 10.15.7 you might need to add this e
102111
<true/>
103112
```
104113

114+
</p>
115+
</details>
105116

106117
### Requirements (ARM Mac)
107118

108-
- coreutils (for `realpath` command) (`brew install coreutils`)
109119
- QEMU with `--accel=hvf` support, see https://gist.github.com/citruz/9896cd6fb63288ac95f81716756cb9aa
110120

111121
> **NOTE**

cmd/lima

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
#!/bin/sh
22
set -eu
33
: "${LIMA_INSTANCE:=default}"
4-
LIMA="$(realpath "$0")"
5-
LIMA_BINDIR="$(dirname "$LIMA")"
6-
LIMACTL="${LIMA_BINDIR}/limactl"
7-
if [ -d "$LIMACTL" ]; then
8-
LIMACTL="limactl"
9-
fi
4+
: "${LIMACTL:=limactl}"
105
exec "$LIMACTL" shell "$LIMA_INSTANCE" "$@"

0 commit comments

Comments
 (0)