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
Copy file name to clipboardExpand all lines: website/content/en/docs/Config/Mount/_index.md
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,13 @@ While the host works as an SFTP server, the host does not open any TCP port,
22
22
as the host initiates an SSH connection into the guest and let the guest connect to the SFTP server via the stdin.
23
23
24
24
An example configuration:
25
+
{{< tabpane text=true >}}
26
+
{{% tab header="CLI" %}}
27
+
```bash
28
+
limactl start --mount-type=reverse-sshfs
29
+
```
30
+
{{% /tab %}}
31
+
{{% tab header="YAML" %}}
25
32
```yaml
26
33
mountType: "reverse-sshfs"
27
34
mounts:
@@ -43,6 +50,8 @@ mounts:
43
50
# 🟢 Builtin default: "openssh-sftp-server" if OpenSSH SFTP Server binary is found, otherwise "builtin"
44
51
sftpDriver: null
45
52
```
53
+
{{% /tab %}}
54
+
{{< /tabpane >}}
46
55
47
56
The default value of `sftpDriver` has been set to "openssh-sftp-server" since Lima v0.10, when an OpenSSH SFTP Server binary
48
57
such as `/usr/libexec/sftp-server` is detected on the host.
@@ -60,7 +69,15 @@ The "9p" mount type is implemented by using QEMU's virtio-9p-pci devices.
60
69
virtio-9p-pci is also known as "virtfs", but note that this is unrelated to [virtio-fs](https://virtio-fs.gitlab.io/).
61
70
62
71
An example configuration:
72
+
{{< tabpane text=true >}}
73
+
{{% tab header="CLI" %}}
74
+
```bash
75
+
limactl start --vm-type=qemu --mount-type=9p
76
+
```
77
+
{{% /tab %}}
78
+
{{% tab header="YAML" %}}
63
79
```yaml
80
+
vmType: "qemu"
64
81
mountType: "9p"
65
82
mounts:
66
83
- location: "~"
@@ -81,6 +98,8 @@ mounts:
81
98
# 🟢 Builtin default: "fscache" for non-writable mounts, "mmap" for writable mounts
82
99
cache: null
83
100
```
101
+
{{% /tab %}}
102
+
{{< /tabpane >}}
84
103
85
104
The "9p" mount type requires Lima v0.10.0 or later.
86
105
@@ -98,12 +117,21 @@ The "virtiofs" mount type is implemented via the virtio-fs device by using apple
98
117
Linux guest kernel must enable the CONFIG_VIRTIO_FS support for this support.
99
118
100
119
An example configuration:
120
+
{{< tabpane text=true >}}
121
+
{{% tab header="CLI" %}}
122
+
```bash
123
+
limactl start --vm-type=vz --mount-type=virtiofs
124
+
```
125
+
{{% /tab %}}
126
+
{{% tab header="YAML" %}}
101
127
```yaml
102
128
vmType: "vz" # only for macOS; Linux uses 'qemu'
103
129
mountType: "virtiofs"
104
130
mounts:
105
131
- location: "~"
106
132
```
133
+
{{% /tab %}}
134
+
{{< /tabpane >}}
107
135
108
136
#### Caveats
109
137
- For macOS, the "virtiofs" mount type is supported only on macOS 13 or above with `vmType: vz` config. See also [`vmtype.md`](./vmtype.md).
@@ -120,10 +148,19 @@ mounts:
120
148
The "wsl2" mount type relies on using WSL2's navite disk sharing, where the root disk is available by default at `/mnt/$DISK_LETTER` (e.g. `/mnt/c/`).
121
149
122
150
An example configuration:
151
+
{{< tabpane text=true >}}
152
+
{{% tab header="CLI" %}}
153
+
```bash
154
+
limactl start --vm-type=wsl2 --mount-type=wsl2
155
+
```
156
+
{{% /tab %}}
157
+
{{% tab header="YAML" %}}
123
158
```yaml
124
159
vmType: "wsl2"
125
160
mountType: "wsl2"
126
161
```
162
+
{{% /tab %}}
163
+
{{< /tabpane >}}
127
164
128
165
#### Caveats
129
166
- WSL2 file permissions may not work exactly as expected when accessing files that are natively on the Windows disk ([more info](https://github.com/MicrosoftDocs/WSL/blob/mattw-wsl2-explainer/WSL/file-permissions.md))
Copy file name to clipboardExpand all lines: website/content/en/docs/Config/Multi-arch/_index.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,13 @@ See also https://github.com/containerd/nerdctl/blob/master/docs/multi-platform.m
71
71
[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.
72
72
Rosetta is available for [VZ](./vmtype.md) instances on ARM hosts.
Copy file name to clipboardExpand all lines: website/content/en/docs/Config/VMType/_index.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,13 @@ This option is used by default if "vmType" is not set.
36
36
"vz" option makes use of native virtualization support provided by macOS Virtualization.Framework.
37
37
38
38
An example configuration:
39
+
{{< tabpane text=true >}}
40
+
{{% tab header="CLI" %}}
41
+
```bash
42
+
limactl start --vm-type=vz --mount-type=virtiofs
43
+
```
44
+
{{% /tab %}}
45
+
{{% tab header="YAML" %}}
39
46
```yaml
40
47
# Example to run ubuntu using vmType: vz instead of qemu (Default)
41
48
vmType: "vz"
@@ -48,7 +55,8 @@ mounts:
48
55
- location: "~"
49
56
mountType: "virtiofs"
50
57
```
51
-
58
+
{{% /tab %}}
59
+
{{< /tabpane >}}
52
60
### Caveats
53
61
- "vz" option is only supported on macOS 13 or above
54
62
- Virtualization.framework doesn't support running "intel guest on arm" and vice versa
@@ -71,6 +79,13 @@ mountType: "virtiofs"
71
79
"wsl2"option makes use of native virtualization support provided by Windows' `wsl.exe` ([more info](https://learn.microsoft.com/en-us/windows/wsl/about)).
0 commit comments