Skip to content

Commit 07726af

Browse files
committed
limayaml: windows: disable 9p
QEMU for Windows does not support 9p Signed-off-by: Akihiro Suda <[email protected]>
1 parent 4f004e9 commit 07726af

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

pkg/limayaml/defaults.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,12 @@ func FillDefault(y, d, o *LimaYAML, filePath string, warn bool) {
699699
for _, f := range y.MountTypesUnsupported {
700700
mountTypesUnsupported[f] = struct{}{}
701701
}
702+
703+
if runtime.GOOS == "windows" {
704+
// QEMU for Windows does not support 9p
705+
mountTypesUnsupported[NINEP] = struct{}{}
706+
}
707+
702708
// MountType has to be resolved before resolving Mounts
703709
if y.MountType == nil {
704710
y.MountType = d.MountType

templates/default.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ mountTypesUnsupported: null
9595

9696
# Mount type for above mounts, such as "reverse-sshfs" (from sshocker), "9p" (QEMU’s virtio-9p-pci, aka virtfs),
9797
# or "virtiofs" (experimental on Linux; needs `vmType: vz` on macOS).
98-
# 🟢 Builtin default: "default" (resolved to be "9p" for QEMU since Lima v1.0, "virtiofs" for vz)
98+
# 🟢 Builtin default: "default" (resolved to be "9p" for QEMU since Lima v1.0 on non-Windows, "virtiofs" for vz)
9999
mountType: null
100100

101101
# Enable inotify support for mounted directories (EXPERIMENTAL)

website/content/en/docs/config/mount.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The default mount type is shown in the following table:
1212
| < 0.10 | reverse-sshfs + Builtin SFTP server |
1313
| >= 0.10 | reverse-sshfs + OpenSSH SFTP server |
1414
| >= 0.17 | reverse-sshfs + OpenSSH SFTP server for QEMU, virtiofs for VZ |
15-
| >= 1.0 | 9p for QEMU, virtiofs for VZ |
15+
| >= 1.0 | 9p for QEMU (on non-Windows), virtiofs for VZ |
1616

1717
## Mount types
1818

0 commit comments

Comments
 (0)