Skip to content

Commit bf9f537

Browse files
committed
templates: disable 9p for Linux 6.9-6.11
9p is broken in Linux v6.9, v6.10, and v6.11 (see issue 2701 and PR 2821). The issue was fixed in Linux v6.12-rc5 (torvalds/linux@be2ca38). Signed-off-by: Akihiro Suda <[email protected]>
1 parent a53e059 commit bf9f537

File tree

7 files changed

+29
-3
lines changed

7 files changed

+29
-3
lines changed

pkg/limayaml/limayaml_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ func TestDefaultYAML(t *testing.T) {
3434
var y LimaYAML
3535
err = Unmarshal(bytes, &y, "")
3636
assert.NilError(t, err)
37-
y.Images = nil // remove default images
38-
y.Mounts = nil // remove default mounts
37+
y.Images = nil // remove default images
38+
y.Mounts = nil // remove default mounts
39+
y.MountTypesUnsupported = nil // remove default workaround for kernel 6.9-6.11
3940
t.Log(dumpJSON(t, y))
4041
b, err := Marshal(&y, false)
4142
assert.NilError(t, err)

templates/archlinux.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ mounts:
1717
- location: "~"
1818
- location: "/tmp/lima"
1919
writable: true
20+
21+
# 9p is broken in Linux v6.9, v6.10, and v6.11.
22+
# The issue was fixed in Linux v6.12-rc5 (https://github.com/torvalds/linux/commit/be2ca38).
23+
mountTypesUnsupported: ["9p"]

templates/default.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,14 @@ mounts:
106106

107107
# List of mount types not supported by the kernel of this distro.
108108
# Also used to resolve the default mount type when not explicitly specified.
109+
#
110+
# NOTE: 9p is broken in Linux v6.9, v6.10, and v6.11.
111+
# The issue was fixed in Linux v6.12-rc5 (https://github.com/torvalds/linux/commit/be2ca38).
112+
#
109113
# 🟢 Builtin default: []
114+
# 🔵 This file: ["9p"] (as Ubuntu 24.10 uses kernel 6.11)
110115
mountTypesUnsupported:
111-
# - "9p"
116+
- "9p"
112117

113118
# Mount type for above mounts, such as "reverse-sshfs" (from sshocker), "9p" (QEMU’s virtio-9p-pci, aka virtfs),
114119
# or "virtiofs" (experimental on Linux; needs `vmType: vz` on macOS).

templates/fedora.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ mounts:
1010
- location: "~"
1111
- location: "/tmp/lima"
1212
writable: true
13+
14+
# 9p is broken in Linux v6.9, v6.10, and v6.11 (used by Fedora 41).
15+
# The issue was fixed in Linux v6.12-rc5 (https://github.com/torvalds/linux/commit/be2ca38).
16+
mountTypesUnsupported: ["9p"]

templates/podman-rootful.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,7 @@ message: |
6868
podman system connection default lima-{{.Name}}
6969
podman{{if eq .HostOS "linux"}} --remote{{end}} run quay.io/podman/hello
7070
------
71+
72+
# 9p is broken in Linux v6.9, v6.10, and v6.11 (used by Fedora 41).
73+
# The issue was fixed in Linux v6.12-rc5 (https://github.com/torvalds/linux/commit/be2ca38).
74+
mountTypesUnsupported: ["9p"]

templates/podman.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,7 @@ message: |
5757
podman system connection default lima-{{.Name}}
5858
podman{{if eq .HostOS "linux"}} --remote{{end}} run quay.io/podman/hello
5959
------
60+
61+
# 9p is broken in Linux v6.9, v6.10, and v6.11 (used by Fedora 41).
62+
# The issue was fixed in Linux v6.12-rc5 (https://github.com/torvalds/linux/commit/be2ca38).
63+
mountTypesUnsupported: ["9p"]

templates/ubuntu-24.10.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ mounts:
2727
- location: "~"
2828
- location: "/tmp/lima"
2929
writable: true
30+
31+
# 9p is broken in Linux v6.9, v6.10, and v6.11 (used by Ubuntu 24.10).
32+
# The issue was fixed in Linux v6.12-rc5 (https://github.com/torvalds/linux/commit/be2ca38).
33+
mountTypesUnsupported: ["9p"]

0 commit comments

Comments
 (0)