Skip to content

Commit 678e32f

Browse files
authored
Merge pull request #1163 from AkihiroSuda/dev
vz: update docs
2 parents 871a320 + c18ae23 commit 678e32f

File tree

4 files changed

+25
-6
lines changed

4 files changed

+25
-6
lines changed

docs/mount.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The default mount type is shown in the following table:
88
| ---------------- | ----------------------------------- |
99
| < 0.10 | reverse-sshfs + Builtin SFTP server |
1010
| >= 0.10 | reverse-sshfs + OpenSSH SFTP server |
11-
| >= 1.0 (Planned) | 9p |
11+
| >= 1.0 (Planned) | 9p for QEMU, virtiofs for VZ |
1212

1313
## Mount types
1414

@@ -49,6 +49,9 @@ Lima prior to v0.10 had used "builtin" as the SFTP driver.
4949
- A compromised `sshfs` process in the guest may have an access to unexposed host directories.
5050

5151
### 9p
52+
> **Warning**
53+
> "9p" mode is experimental
54+
5255
The "9p" mount type is implemented by using QEMU's virtio-9p-pci devices.
5356
virtio-9p-pci is also known as "virtfs", but note that this is unrelated to [virtio-fs](https://virtio-fs.gitlab.io/).
5457

@@ -81,6 +84,12 @@ The "9p" mount type requires Lima v0.10.0 or later.
8184
- The "9p" mount type is known to be incompatible with CentOS, Rocky Linux, and AlmaLinux as their kernel do not support `CONFIG_NET_9P_VIRTIO`.
8285

8386
### virtiofs
87+
> **Warning**
88+
> "virtiofs" mode is experimental
89+
90+
| :zap: Requirement | Lima >= 0.14, macOS >= 13.0 |
91+
|-------------------|-----------------------------|
92+
8493
The "virtiofs" mount type is implemented by using apple Virtualization.Framework shared directory (uses virtio-fs) device.
8594
Linux guest kernel must enable the CONFIG_VIRTIO_FS support for this support.
8695

@@ -92,7 +101,5 @@ mounts:
92101
- location: "~"
93102
```
94103

95-
The "vz" mount type requires Lima v0.14.0 or later.
96-
97104
#### Caveats
98-
- The "virtiofs" mount type is supported only on macOS 13 or above with `vmType: vz` config.
105+
- The "virtiofs" mount type is supported only on macOS 13 or above with `vmType: vz` config. See also [`vmtype.md`](./vmtype.md).

docs/vmtype.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ Lima supports two ways of running guest machines:
99
This option is used by default if "vmType" is not set.
1010

1111
## VZ
12+
> **Warning**
13+
> "vz" mode is experimental
14+
15+
| :zap: Requirement | Lima >= 0.14, macOS >= 13.0 |
16+
|-------------------|-----------------------------|
17+
1218
"vz" option makes use of native virtualization support provided by macOS Virtualization.Framework.
1319

1420
An example configuration:
@@ -32,4 +38,4 @@ mountType: "virtiofs"
3238
### Known Issues
3339
- "vz" doesn't support `legacyBoot: true` option, so guest machine like centos-stream, archlinux, oraclelinux will not work
3440
- Host to guest networking (`networks` section in lima yaml) is not supported
35-
- When running lima using "vz", `${LIMA_HOME}/<INSTANCE>/serial.log` will not contain kernel boot logs
41+
- When running lima using "vz", `${LIMA_HOME}/<INSTANCE>/serial.log` will not contain kernel boot logs

examples/default.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
# Default values in this YAML file are specified by `null` instead of Lima's "builtin default" values,
66
# so they can be overridden by the $LIMA_HOME/_config/default.yaml mechanism documented at the end of this file.
77

8+
# VM type: "qemu" or "vz" (on macOS 13 and later).
9+
# 🟢 Builtin default: "qemu"
10+
vmType: null
11+
812
# Arch: "default", "x86_64", "aarch64".
913
# 🟢 Builtin default: "default" (corresponds to the host architecture)
1014
arch: null
@@ -88,7 +92,8 @@ mounts:
8892
# 🔵 This file: true (only for "/tmp/lima")
8993
writable: true
9094

91-
# Mount type for above mounts, such as "reverse-sshfs" (from sshocker) or "9p" (EXPERIMENTAL, from QEMU’s virtio-9p-pci, aka virtfs)
95+
# Mount type for above mounts, such as "reverse-sshfs" (from sshocker), "9p" (EXPERIMENTAL, from QEMU’s virtio-9p-pci, aka virtfs),
96+
# or "virtiofs" (EXPERIMENTAL, needs `vmType: vz`)
9297
# 🟢 Builtin default: "reverse-sshfs"
9398
mountType: null
9499

examples/experimental/vz.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Example to run ubuntu using vmType: vz instead of qemu (Default)
2+
# This example requires Lima v0.14.0 or later.
23
vmType: "vz"
34
images:
45
- location: "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img"

0 commit comments

Comments
 (0)