Skip to content

Commit d03a9a8

Browse files
authored
Merge pull request #56 from AkihiroSuda/dev
CI: explicitly install libslirp v4.5.0
2 parents 6e8fbc4 + 5c2a602 commit d03a9a8

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ jobs:
6464
run: make
6565
- name: Install
6666
run: make install
67+
- name: Install libslirp v4.5.0 explicitly (v4.6.0 is broken)
68+
# Workaround until https://gitlab.freedesktop.org/slirp/libslirp/-/issues/48 gets fixed
69+
# and packaged in homebrew
70+
run: |
71+
cd /tmp
72+
wget https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a53ffe2362d2a7e55fd1a8a9bc71c1ec15bb00/Formula/libslirp.rb
73+
brew install ./libslirp.rb
74+
rm -f libslirp.rb
6775
- name: Install test dependencies
6876
# QEMU: required by Lima itself
6977
# bash: required by test-example.sh (OS version of bash is too old)

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ For the usage of containerd and nerdctl (contaiNERD ctl), visit https://github.c
7979
### Requirements (Intel Mac)
8080
- QEMU v6.0.0 or later (`brew install qemu`)
8181

82+
NOTE: libslirp v4.6.0 used by QEMU is known to be [broken](https://gitlab.freedesktop.org/slirp/libslirp/-/issues/48).
83+
If you have libslirp v4.6.0 in `/usr/local/Cellar/libslirp`, you have to downgrade it to v4.5.0:
84+
85+
```console
86+
brew uninstall --ignore-dependencies libslirp
87+
wget https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a53ffe2362d2a7e55fd1a8a9bc71c1ec15bb00/Formula/libslirp.rb
88+
brew install ./libslirp.rb
89+
```
90+
8291
### Requirements (ARM Mac)
8392

8493
- QEMU with `--accel=hvf` support, see https://gist.github.com/nrjdalal/e70249bb5d2e9d844cc203fd11f74c55
@@ -191,6 +200,7 @@ The current default spec:
191200
- [error "killed -9"](#error-killed--9)
192201
- [SSH](#ssh)
193202
- ["Port forwarding does not work"](#port-forwarding-does-not-work)
203+
- [stuck on "Waiting for the essential requirement 1 of X: "ssh"](#stuck-on-waiting-for-the-essential-requirement-1-of-x-ssh)
194204
- [error "field SSHPubKeys must be set"](#error-field-sshpubkeys-must-be-set)
195205
- [error "hostkeys_foreach failed: No such file or directory"](#error-hostkeys_foreach-failed-no-such-file-or-directory)
196206
- [error "failed to execute script ssh: [...] Permission denied (publickey)"](#error-failed-to-execute-script-ssh--permission-denied-publickey)
@@ -283,6 +293,17 @@ Note: **Only** on macOS versions **before** 10.15.7 you might need to add this e
283293
#### "Port forwarding does not work"
284294
Privileged ports (1-1023) cannot be forwarded. e.g., you have to use 8080, not 80.
285295

296+
#### stuck on "Waiting for the essential requirement 1 of X: "ssh"
297+
298+
libslirp v4.6.0 used by QEMU is known to be [broken](https://gitlab.freedesktop.org/slirp/libslirp/-/issues/48).
299+
If you have libslirp v4.6.0 in `/usr/local/Cellar/libslirp`, you have to downgrade it to v4.5.0:
300+
301+
```console
302+
brew uninstall --ignore-dependencies libslirp
303+
wget https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a53ffe2362d2a7e55fd1a8a9bc71c1ec15bb00/Formula/libslirp.rb
304+
brew install ./libslirp.rb
305+
```
306+
286307
#### error "field SSHPubKeys must be set"
287308

288309
Make sure you have a ssh keypair in `~/.ssh`. To create:

0 commit comments

Comments
 (0)