Skip to content

Commit 08854be

Browse files
authored
Merge pull request #1237 from AkihiroSuda/dev
docs: update
2 parents 57beb9f + 7c4e591 commit 08854be

File tree

11 files changed

+144
-101
lines changed

11 files changed

+144
-101
lines changed

README.ja.md

Lines changed: 37 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
This is an *informal* translation of [`README.md` (revision b65049d4, 2022-Oct-23)](https://github.com/lima-vm/lima/blob/b65049d4b89421fca5c73f494bb35e23b3c576c0/README.md) in Japanese.
1+
This is an *informal* translation of [`README.md` (revision c1368f45, 2022-Dec-12)](https://github.com/lima-vm/lima/blob/c1368f45d908947dd0828bc5caa00baa4a46be5c/README.md) in Japanese.
22
This translation might be out of sync with the English version.
33
Please refer to the [English `README.md`](README.md) for the latest information.
44

5-
[`README.md` (リビジョン b65049d4, 2022年10月23日)](https://github.com/lima-vm/lima/blob/b65049d4b89421fca5c73f494bb35e23b3c576c0/README.md)*非正式* な日本語訳です。
5+
[`README.md` (リビジョン c1368f45, 2022年12月12日)](https://github.com/lima-vm/lima/blob/c1368f45d908947dd0828bc5caa00baa4a46be5c/README.md)*非正式* な日本語訳です。
66
英語版からの翻訳が遅れていることがあります。
77
最新の情報については[英語版 `README.md`](README.md)をご覧ください。
88

@@ -53,7 +53,7 @@ Limaの目的は、Macユーザに[nerdctl (contaiNERDctl)](https://github.com/c
5353
コンテナ環境:
5454
- [Rancher Desktop](https://rancherdesktop.io/): デスクトップで管理できるKubernetesとコンテナ
5555
- [Colima](https://github.com/abiosoft/colima): macOSで小さく始めるDocker(とKubernetes)
56-
56+
- [Finch](https://github.com/runfinch/finch): Finchはローカルでのコンテナ開発用のコマンドラインクライアント
5757

5858
GUI:
5959
- [Lima xbar plugin](https://github.com/unixorn/lima-xbar-plugin): [xbar](https://xbarapp.com/) メニューバーから仮想マシンを開始・終了でき、稼働状態を確認できるプラグイン
@@ -126,15 +126,7 @@ brew install lima
126126

127127
#### QEMU をインストールする
128128

129-
最近のバージョンのQEMUをインストールしてください。
130-
131-
M1のmacOSでは、[Homebrew版のQEMU `6.2.0_1`](https://github.com/Homebrew/homebrew-core/pull/96743) 以降が望ましいです。
132-
133-
もしHomebrewを使っていないなら、最近のLinuxゲストを起動するには以下のコミットを含めてください:
134-
- https://github.com/qemu/qemu/commit/ad99f64f `hvf: arm: Use macros for sysreg shift/masking`
135-
- https://github.com/qemu/qemu/commit/7f6c295c `hvf: arm: Handle unknown ID registers as RES0`
136-
137-
これらのコミットはQEMU 7.0には含まれていますが、 [QEMU 7.0はM1で3 GiB以上のメモリを使うのにmacOS 12.4以降を要する点に注意が必要です](https://github.com/lima-vm/lima/pull/796)
129+
QEMU 7.0 以降をインストールしてください。
138130

139131
#### Lima をインストールする
140132

@@ -234,6 +226,14 @@ $ limactl start --name=default https://raw.githubusercontent.com/lima-vm/lima/ma
234226
#### `limactl edit`
235227
`limactl edit <INSTANCE>`: インスタンスを編集します
236228

229+
#### `limactl disk`
230+
231+
`limactl disk create <DISK> --size <SIZE>`: 新しい外部ディスクを作成しインスタンスに取り付けます
232+
233+
`limactl disk delete <DISK>`: 既存のディスクを削除します
234+
235+
`limactl disk list`: 既存のディスクの一覧を表示します
236+
237237
#### `limactl completion`
238238
- bash補完を有効にするには、`~/.bash_profile``source <(limactl completion bash)`を追加します。
239239

@@ -262,8 +262,8 @@ Limaにはデータの喪失を引き起こすバグが含まれているかも
262262

263263
## 動作する仕組み
264264

265-
- ハイパーバイザ: HVFアクセラレータを搭載したQEMU
266-
- ファイルシステム共有: [リバースsshfs (デフォルト)、もしくは virtio-9p-pci またの名を virtfs](./docs/mount.md)
265+
- ハイパーバイザ: [QEMU + HVFアクセラレータ(デフォルト)、もしくはVirtualization.framework](./docs/vmtype.md)
266+
- ファイルシステム共有: [リバースsshfs (デフォルト)、もしくは virtio-9p-pci またの名を virtfs、もしくはvirtiofs](./docs/mount.md)
267267
- ポートフォワーディング: ゲストの`/proc/net/tcp``iptables`を自動的に見つつ`ssh -L`
268268

269269
## 開発者ガイド
@@ -275,10 +275,10 @@ Limaにはデータの喪失を引き起こすバグが含まれているかも
275275

276276
### 助けを求めています
277277
:pray:
278+
- ドキュメント
279+
- CLIのユーザエクスペリエンス
278280
- パフォーマンス最適化
279-
- より多くのゲストディストリビューション
280281
- Windows ホスト
281-
- virtio-fs で、virtio-9p-pci またの名を virtfs を置き換える (QEMU側リポジトリで作業をする必要があります)
282282
- SSHを置き換える[vsock](https://github.com/apple/darwin-xnu/blob/xnu-7195.81.3/bsd/man/man4/vsock.4)(QEMU側リポジトリで作業をする必要があります)
283283

284284
## FAQとトラブルシューティング
@@ -300,13 +300,12 @@ Limaにはデータの喪失を引き起こすバグが含まれているかも
300300
- ["QEMUが遅いです"](#qemu%E3%81%8C%E9%81%85%E3%81%84%E3%81%A7%E3%81%99)
301301
- ["killed -9" エラー](#killed--9-%E3%82%A8%E3%83%A9%E3%83%BC)
302302
- ["`vmx_write_mem: mmu_gva_to_gpa XXXXXXXXXXXXXXXX failed`でQEMUがクラッシュします"](#vmx_write_mem-mmu_gva_to_gpa-xxxxxxxxxxxxxxxx-failed%E3%81%A7qemu%E3%81%8C%E3%82%AF%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%81%97%E3%81%BE%E3%81%99)
303-
- [SSH](#ssh)
304-
- ["ポートフォワーディングが動きません"](#%E3%83%9D%E3%83%BC%E3%83%88%E3%83%95%E3%82%A9%E3%83%AF%E3%83%BC%E3%83%87%E3%82%A3%E3%83%B3%E3%82%B0%E3%81%8C%E5%8B%95%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93)
305-
- ["Waiting for the essential requirement 1 of X: "ssh" で固まります"](#waiting-for-the-essential-requirement-1-of-x-ssh-%E3%81%A7%E5%9B%BA%E3%81%BE%E3%82%8A%E3%81%BE%E3%81%99)
306-
- [`limactl cp`コマンドで"Permission denied"](#limactl-cp%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%81%A7permission-denied)
307303
- [ネットワーク](#%E3%83%8D%E3%83%83%E3%83%88%E3%83%AF%E3%83%BC%E3%82%AF)
308304
- ["ホストからゲストのIP 192.168.5.15にアクセスできない"](#%E3%83%9B%E3%82%B9%E3%83%88%E3%81%8B%E3%82%89%E3%82%B2%E3%82%B9%E3%83%88%E3%81%AEip-192168515%E3%81%AB%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%81%A7%E3%81%8D%E3%81%AA%E3%81%84)
309-
- [Pingのパケットが重複してたり応答が極めて遅かったりする](#ping%E3%81%AE%E3%83%91%E3%82%B1%E3%83%83%E3%83%88%E3%81%8C%E9%87%8D%E8%A4%87%E3%81%97%E3%81%A6%E3%81%9F%E3%82%8A%E5%BF%9C%E7%AD%94%E3%81%8C%E6%A5%B5%E3%82%81%E3%81%A6%E9%81%85%E3%81%8B%E3%81%A3%E3%81%9F%E3%82%8A%E3%81%99%E3%82%8B)
305+
- ["Pingのパケットが重複してたり応答が極めて遅かったりする"](#ping%E3%81%AE%E3%83%91%E3%82%B1%E3%83%83%E3%83%88%E3%81%8C%E9%87%8D%E8%A4%87%E3%81%97%E3%81%A6%E3%81%9F%E3%82%8A%E5%BF%9C%E7%AD%94%E3%81%8C%E6%A5%B5%E3%82%81%E3%81%A6%E9%81%85%E3%81%8B%E3%81%A3%E3%81%9F%E3%82%8A%E3%81%99%E3%82%8B)
306+
- [ファイルシステム共有](#%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E5%85%B1%E6%9C%89)
307+
- ["ファイルシステムが遅い"](#%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E3%81%8C%E9%81%85%E3%81%84)
308+
- ["ファイルシステムに書き込めない"](#%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E3%81%AB%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%82%81%E3%81%AA%E3%81%84)
310309
- [外部プロジェクト](#%E5%A4%96%E9%83%A8%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88)
311310
- ["Rancher Desktopを使っています。内蔵されているLimaを弄るにはどうすればよいですか。"](#rancher-desktop%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E5%86%85%E8%94%B5%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8Blima%E3%82%92%E5%BC%84%E3%82%8B%E3%81%AB%E3%81%AF%E3%81%A9%E3%81%86%E3%81%99%E3%82%8C%E3%81%B0%E3%82%88%E3%81%84%E3%81%A7%E3%81%99%E3%81%8B)
312311
- ["ほかの問題をデバッグするためのヒントは?"](#%E3%81%BB%E3%81%8B%E3%81%AE%E5%95%8F%E9%A1%8C%E3%82%92%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AE%E3%83%92%E3%83%B3%E3%83%88%E3%81%AF)
@@ -412,32 +411,6 @@ codesign -s - --entitlements entitlements.xml --force /usr/local/bin/qemu-system
412411

413412
https://bugs.launchpad.net/qemu/+bug/1838390
414413

415-
### SSH
416-
#### "ポートフォワーディングが動きません"
417-
Lima v0.7.0以前では、Limaは特権ポート(1-1023)のフォワーディングはサポートしていませんでした。例: 80番ではなく8080番を使わなければなりませんでした。
418-
419-
macOSホストのLima v0.7.0 とそれ以降のバージョンでは、特権ポートのフォワーディングをサポートしています。
420-
421-
Linuxホストでは、sysctlの値`net.ipv4.ip_unprivileged_port_start=0`をセットする必要があるかもしれません。
422-
423-
#### "Waiting for the essential requirement 1 of X: "ssh" で固まります"
424-
425-
426-
M1のmacOSでは、最近のLinuxゲストを実行するには[Homebrew版のQEMU `6.2.0_1`](https://github.com/Homebrew/homebrew-core/pull/96743) 以降が必要です。
427-
`brew upgrade` を実行してQEMUを更新してください。
428-
429-
もしHomebrewを使っていないならば、[インストール](#インストール)の節の「手動でのインストール方法」をご覧ください。
430-
431-
デバッグするには、`~/.lima/<インスタンス>` にある `serial.log` もご覧ください。
432-
433-
#### `limactl cp`コマンドで"Permission denied"
434-
435-
`copy`コマンドはLima 0.5.0かそれ以降で作成されたインスタンスでのみ動作します。`INSTANCE`を実際のインスタンス名に置き換えることで古いインスタンスでの手動で必要なアイデンティティをインストールすることができます。
436-
437-
```console
438-
< ~/.lima/_config/user.pub limactl shell INSTANCE sh -c 'tee -a ~/.ssh/authorized_keys'
439-
```
440-
441414
### ネットワーク
442415
#### "ホストからゲストのIP 192.168.5.15にアクセスできない"
443416

@@ -448,7 +421,7 @@ M1のmacOSでは、最近のLinuxゲストを実行するには[Homebrew版のQE
448421

449422
[`./docs/network.md`](./docs/network.md)を参照してください。
450423

451-
#### Pingのパケットが重複してたり応答が極めて遅かったりする
424+
#### "Pingのパケットが重複してたり応答が極めて遅かったりする"
452425

453426
LimaはQEMUのSLIRPネットワークを使うので`ping`はそのままでは動きません:
454427

@@ -461,6 +434,22 @@ PING google.com (172.217.165.14): 56 data bytes
461434

462435
詳しくは, [Documentation/Networking](https://wiki.qemu.org/Documentation/Networking#User_Networking_.28SLIRP.29)をご覧ください。
463436

437+
### ファイルシステム共有
438+
#### "ファイルシステムが遅い"
439+
virtiofsを試してください。 [`docs/mount.md`](./docs/mount.md)をご覧ください。
440+
441+
#### "ファイルシステムに書き込めない"
442+
ホームディレクトリはデフォルトでは読み込み専用でマウントされます。
443+
書き込みを有効化するには、YAMLに `writable: true` を指定してください:
444+
445+
```yaml
446+
mounts:
447+
- location: "~"
448+
writable: true
449+
```
450+
451+
既存のインスタンスのYAMLを編集するには `limactl edit <インスタンス>` を実行してください。
452+
464453
### 外部プロジェクト
465454
#### "Rancher Desktopを使っています。内蔵されているLimaを弄るにはどうすればよいですか。"
466455

README.md

Lines changed: 26 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,7 @@ brew install lima
116116

117117
#### Install QEMU
118118

119-
Install recent version of QEMU.
120-
121-
On M1 macOS, [Homebrew's QEMU `6.2.0_1`](https://github.com/Homebrew/homebrew-core/pull/96743) or later is recommended.
122-
123-
If you are not using Homebrew, make sure to include the following commits to boot recent Linux guests:
124-
- https://github.com/qemu/qemu/commit/ad99f64f `hvf: arm: Use macros for sysreg shift/masking`
125-
- https://github.com/qemu/qemu/commit/7f6c295c `hvf: arm: Handle unknown ID registers as RES0`
126-
127-
These commits are also included in the QEMU 7.0, however, [it should be noted that QEMU 7.0 needs macOS 12.4 or later to use more than 3 GiB memory on M1](https://github.com/lima-vm/lima/pull/796).
119+
Install QEMU 7.0 or later.
128120

129121
#### Install Lima
130122

@@ -262,8 +254,8 @@ The current default spec:
262254

263255
## How it works
264256

265-
- Hypervisor: QEMU with HVF accelerator
266-
- Filesystem sharing: [Reverse SSHFS (default), or virtio-9p-pci aka virtfs](./docs/mount.md)
257+
- Hypervisor: [QEMU with HVF accelerator (default), or Virtualization.framework](./docs/vmtype.md)
258+
- Filesystem sharing: [Reverse SSHFS (default), or virtio-9p-pci aka virtfs, or virtiofs](./docs/mount.md)
267259
- Port forwarding: `ssh -L`, automated by watching `/proc/net/tcp` and `iptables` events in the guest
268260

269261
## Developer guide
@@ -276,10 +268,10 @@ The current default spec:
276268

277269
### Help wanted
278270
:pray:
271+
- Documents
272+
- CLI user experience
279273
- Performance optimization
280-
- More guest distros
281274
- Windows hosts
282-
- virtio-fs to replace virtio-9p-pci aka virtfs (work has to be done on QEMU repo)
283275
- [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)
284276

285277
## FAQs & Troubleshooting
@@ -301,13 +293,12 @@ The current default spec:
301293
- ["QEMU is slow"](#qemu-is-slow)
302294
- [error "killed -9"](#error-killed--9)
303295
- ["QEMU crashes with `vmx_write_mem: mmu_gva_to_gpa XXXXXXXXXXXXXXXX failed`"](#qemu-crashes-with-vmx_write_mem-mmu_gva_to_gpa-xxxxxxxxxxxxxxxx-failed)
304-
- [SSH](#ssh)
305-
- ["Port forwarding does not work"](#port-forwarding-does-not-work)
306-
- [stuck on "Waiting for the essential requirement 1 of X: "ssh"](#stuck-on-waiting-for-the-essential-requirement-1-of-x-ssh)
307-
- ["permission denied" for `limactl cp` command](#permission-denied-for-limactl-cp-command)
308296
- [Networking](#networking)
309297
- ["Cannot access the guest IP 192.168.5.15 from the host"](#cannot-access-the-guest-ip-192168515-from-the-host)
310-
- [Ping shows duplicate packets and massive response times](#ping-shows-duplicate-packets-and-massive-response-times)
298+
- ["Ping shows duplicate packets and massive response times"](#ping-shows-duplicate-packets-and-massive-response-times)
299+
- [Filesystem sharing](#filesystem-sharing)
300+
- ["Filesystem is slow"](#filesystem-is-slow)
301+
- ["Filesystem is not writable"](#filesystem-is-not-writable)
311302
- [External projects](#external-projects)
312303
- ["I am using Rancher Desktop. How to deal with the underlying Lima?"](#i-am-using-rancher-desktop-how-to-deal-with-the-underlying-lima)
313304
- ["Hints for debugging other problems?"](#hints-for-debugging-other-problems)
@@ -417,31 +408,6 @@ A workaround is to set environment variable `QEMU_SYSTEM_X86_64="qemu-system-x86
417408

418409
https://bugs.launchpad.net/qemu/+bug/1838390
419410

420-
### SSH
421-
#### "Port forwarding does not work"
422-
Prior to Lima v0.7.0, Lima did not support forwarding privileged ports (1-1023). e.g., you had to use 8080, not 80.
423-
424-
Lima v0.7.0 and later supports forwarding privileged ports on macOS hosts.
425-
426-
On Linux hosts, you might have to set sysctl value `net.ipv4.ip_unprivileged_port_start=0`.
427-
428-
#### stuck on "Waiting for the essential requirement 1 of X: "ssh"
429-
430-
On M1 macOS, QEMU needs to be [Homebrew's QEMU `6.2.0_1`](https://github.com/Homebrew/homebrew-core/pull/96743) or later to run recent Linux guests.
431-
Run `brew upgrade` to upgrade QEMU.
432-
433-
If you are not using Homebrew, see the "Manual installation steps" in the [Installation](#installation) section.
434-
435-
See also `serial.log` in `~/.lima/<INSTANCE>` for debugging.
436-
437-
#### "permission denied" for `limactl cp` command
438-
439-
The `copy` command only works for instances that have been created by lima 0.5.0 or later. You can manually install the required identity on older instances with (replace `INSTANCE` with actual instance name):
440-
441-
```console
442-
< ~/.lima/_config/user.pub limactl shell INSTANCE sh -c 'tee -a ~/.ssh/authorized_keys'
443-
```
444-
445411
### Networking
446412
#### "Cannot access the guest IP 192.168.5.15 from the host"
447413

@@ -452,7 +418,7 @@ or [`vde_vmnet`](https://github.com/lima-vm/vde_vmnet) (Deprecated).
452418

453419
See [`./docs/network.md`](./docs/network.md).
454420

455-
#### Ping shows duplicate packets and massive response times
421+
#### "Ping shows duplicate packets and massive response times"
456422

457423
Lima uses QEMU's SLIRP networking which does not support `ping` out of the box:
458424

@@ -465,6 +431,22 @@ PING google.com (172.217.165.14): 56 data bytes
465431

466432
For more details, see [Documentation/Networking](https://wiki.qemu.org/Documentation/Networking#User_Networking_.28SLIRP.29).
467433

434+
### Filesystem sharing
435+
#### "Filesystem is slow"
436+
Try virtiofs. See [`docs/mount.md`](./docs/mount.md)
437+
438+
#### "Filesystem is not writable"
439+
The home directory is mounted as read-only by default.
440+
To enable writing, specify `writable: true` in the YAML:
441+
442+
```yaml
443+
mounts:
444+
- location: "~"
445+
writable: true
446+
```
447+
448+
Run `limactl edit <INSTANCE>` to open the YAML editor for an existing instance.
449+
468450
### External projects
469451
#### "I am using Rancher Desktop. How to deal with the underlying Lima?"
470452

docs/deprecated.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Deprecated features
2+
3+
The following features are deprecated:
4+
5+
- VDE support, including VNL and `vde_vmnet`
6+
- CentOS 7 support
7+
- Loading non-strict YAMLs (i.e., YAMLs with unknown properties)
8+
9+
## Removed features
10+
- YAML property `network`: deprecated in [Lima v0.7.0](https://github.com/lima-vm/lima/commit/07e68230e70b21108d2db3ca5e0efd0e43842fbd)
11+
and removed in Lima v0.14.0, in favor of `networks`
12+
- YAML property `useHostResolver`: deprecated in [Lima v0.8.1](https://github.com/lima-vm/lima/commit/eaeee31b0496174363c55da732c855ae21e9ad97)
13+
and removed in Lima v0.14.0,in favor of `hostResolver.enabled`

docs/experimental.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Experimental features
2+
3+
The following features are experimental and subject to change:
4+
5+
- `mountType: 9p`
6+
- `vmType: vz` and relevant configurations (`mountType: virtiofs`, `rosetta`, `[]networks.vzNAT`)
7+
- `arch: riscv64`

docs/multi-arch.md

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Lima supports two modes for running Intel-on-ARM and ARM-on-Intel:
44
- [Slow mode](#slow-mode)
55
- [Fast mode](#fast-mode)
6+
- [Fast mode 2](#fast-mode-2)
67

78
## [Slow mode: Intel VM on ARM Host / ARM VM on Intel Host](#slow-mode)
89

@@ -26,21 +27,21 @@ containerd:
2627
```
2728
2829
Running a VM with a foreign architecture is extremely slow.
29-
Consider using [Fast mode](#fast-mode) whenever possible.
30+
Consider using [Fast mode](#fast-mode) or [Fast mode 2](#fast-mode-2) whenever possible.
3031
3132
## [Fast mode: Intel containers on ARM VM on ARM Host / ARM containers on Intel VM on Intel Host](#fast-mode)
3233
33-
This mode is significantly faster but often sacrifices compatibility.
34+
This mode uses QEMU User Mode Emulation.
35+
QEMU User Mode Emulation is significantly faster than QEMU System Mode Emulation, but it often sacrifices compatibility.
3436
35-
Fast mode requires Lima v0.7.3 (nerdctl v0.13.0) or later.
37+
| :zap: Requirement | Lima >= 0.7.3 |
38+
|-------------------|---------------|
3639
37-
If your VM was created with Lima prior to v0.7.3, you have to recreate the VM with Lima >= 0.7.3,
38-
or upgrade `/usr/local/bin/nerdctl` binary in the VM to [>= 0.13.0](https://github.com/containerd/nerdctl/releases) manually.
3940
4041
Set up:
4142
```bash
4243
lima sudo systemctl start containerd
43-
lima sudo nerdctl run --privileged --rm tonistiigi/binfmt --install all
44+
lima sudo nerdctl run --privileged --rm tonistiigi/binfmt:qemu-v7.0.0-28@sha256:66e11bea77a5ea9d6f0fe79b57cd2b189b5d15b93a2bdb925be22949232e4e55 --install all
4445
```
4546

4647
Run containers:
@@ -59,3 +60,24 @@ $ lima nerdctl push --all-platforms example.com/foo:latest
5960
```
6061

6162
See also https://github.com/containerd/nerdctl/blob/master/docs/multi-platform.md
63+
64+
## [Fast mode 2 (Rosetta): Intel containers on ARM VM on ARM Host](#fast-mode-2)
65+
66+
> **Warning**
67+
> "vz" mode, including support for Rosetta, is experimental
68+
69+
| :zap: Requirement | Lima >= 0.14, macOS >= 13.0, ARM |
70+
|-------------------|----------------------------------|
71+
72+
[Rosetta](https://developer.apple.com/documentation/virtualization/running_intel_binaries_in_linux_vms_with_rosetta) is known to be much faster than QEMU User Mode Emulation.
73+
Rosetta is available for [VZ](./vmtype.md) instances on ARM hosts.
74+
75+
```yaml
76+
vmType: "vz"
77+
rosetta:
78+
# Enable Rosetta for Linux.
79+
# Hint: try `softwareupdate --install-rosetta` if Lima gets stuck at `Installing rosetta...`
80+
enabled: true
81+
# Register rosetta to /proc/sys/fs/binfmt_misc
82+
binfmt: true
83+
```

0 commit comments

Comments
 (0)