You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Filesystem sharing: [reverse sshfs](https://github.com/AkihiroSuda/sshocker/blob/v0.1.0/pkg/reversesshfs/reversesshfs.go) (planned to be replaced with 9p soon)
155
162
- Port forwarding: `ssh -L`, automated by watching `/proc/net/tcp` in the guest
156
163
157
164
## Developer guide
@@ -173,17 +180,18 @@ The current default spec:
173
180
- VirtFS to replace the current reverse sshfs (work has to be done on QEMU repo)
174
181
-[vsock](https://github.com/apple/darwin-xnu/blob/xnu-7195.81.3/bsd/man/man4/vsock.4) to replace SSH (work has to be done on QEMU repo)
175
182
176
-
## FAQs
177
-
### "What's my login password?"
183
+
## FAQs & Troubleshooting
184
+
### Generic
185
+
#### "What's my login password?"
178
186
Password is disabled and locked by default.
179
187
You have to use `limactl shell bash` (or `lima bash`) to open a shell.
180
188
181
189
Alternatively, you may also directly ssh into the guest: `ssh -p 60022 -o NoHostAuthenticationForLocalhost=yes 127.0.0.1`.
182
190
183
-
### "Does Lima work on ARM Mac?"
191
+
####"Does Lima work on ARM Mac?"
184
192
Yes, it should work, but not tested on ARM.
185
193
186
-
### "Can I run non-Ubuntu guests?"
194
+
####"Can I run non-Ubuntu guests?"
187
195
Fedora is also known to work, see [`./examples/fedora.yaml`](./examples/fedora.yaml).
188
196
This file can be loaded with `limactl start ./examples/fedora.yaml`.
189
197
@@ -198,53 +206,56 @@ An image has to satisfy the following requirements:
198
206
-`newuidmap` and `newgidmap`
199
207
-`apt-get` or `dnf` (if you want to contribute support for another package manager, run `git grep apt-get` to find out where to modify)
200
208
201
-
### "Can I run other container engines such as Podman?"
209
+
####"Can I run other container engines such as Podman?"
202
210
Yes, if you install it.
203
211
204
212
containerd can be stopped with `systemctl --user disable --now containerd`.
205
213
206
-
### "Can I run Lima with a remote Linux machine?"
214
+
####"Can I run Lima with a remote Linux machine?"
207
215
Lima itself does not support connecting to a remote Linux machine, but [sshocker](https://github.com/AkihiroSuda/sshocker),
208
216
the predecessor or Lima, provides similar features for remote Linux machines.
209
217
210
218
e.g., run `sshocker -v /Users/foo:/home/foo/mnt -p 8080:80 <USER>@<HOST>` to expose `/Users/foo` to the remote machine as `/home/foo/mnt`,
211
219
and forward `localhost:8080` to the port 80 of the remote machine.
212
220
213
-
### "QEMU crashes with `HV_ERROR`"
221
+
### QEMU
222
+
#### "QEMU crashes with `HV_ERROR`"
214
223
You have to add `com.apple.security.hypervisor` entitlement to `qemu-system-x86_64` binary.
215
224
See [Getting started](#getting-started).
216
225
217
-
### "QEMU is slow"
226
+
####"QEMU is slow"
218
227
- Make sure that HVF is enabled with `com.apple.security.hypervisor` entitlement. See [Getting started](#getting-started).
219
228
- Emulating non-native machines (ARM-on-Intel, Intel-on-ARM) is slow by design.
220
229
221
-
### "Port forwarding does not work"
222
-
Privileged ports (0-1023) cannot be forwarded. e.g., you have to use 8080, not 80.
230
+
#### error "killed -9"
231
+
- make sure qemu is codesigned, see [Getting started](#getting-started).
232
+
- if you are on macOS 10.15.7 or 11.0 or later make sure the entitlement `com.apple.vm.hypervisor` is **not** added. It only works on older macOS versions. You can clear the codesigning with `codesign --remove-signature /usr/local/bin/qemu-system-x86_64` and [start over](#getting-started).
233
+
234
+
235
+
### SSH
236
+
#### "Port forwarding does not work"
237
+
Privileged ports (1-1023) cannot be forwarded. e.g., you have to use 8080, not 80.
223
238
224
-
### error "field SSHPubKeys must be set"
239
+
####error "field SSHPubKeys must be set"
225
240
226
241
Make sure you have a ssh keypair in `~/.ssh`. To create:
####error "failed to execute script ssh: [...] Permission denied (publickey)"
238
253
If you have a `~/.ssh/config` with a username overwrite for all hosts, exclude `127.0.0.1` from it. Example:
239
254
```
240
255
Host * !127.0.0.1
241
256
User root
242
257
```
243
258
244
-
### error "killed -9"
245
-
- make sure qemu is codesigned, see [Getting started](#getting-started).
246
-
- if you are on macOS 10.15.7 or 11.0 or later make sure the entitlement `com.apple.vm.hypervisor` is **not** added. It only works on older macOS versions. You can clear the codesigning with `codesign --remove-signature /usr/local/bin/qemu-system-x86_64` and [start over](#getting-started).
0 commit comments