Skip to content

templates: default: use Ubuntu 25.04, Fedora 42 #3643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,9 @@ jobs:
matrix:
# Most templates use 9p as the mount type
template:
- ubuntu-25.04.yaml # The default version of Ubuntu is still 24.10 due to https://github.com/lima-vm/lima/issues/3334
- alpine.yaml
- debian.yaml # reverse-sshfs
- fedora.yaml # The default version of Fedora is still 41 due to https://github.com/lima-vm/lima/issues/3334
- fedora-42.yaml
- fedora.yaml
- archlinux.yaml
- opensuse.yaml
- docker.yaml
Expand Down
7 changes: 7 additions & 0 deletions hack/test-templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,13 @@ limactl shell "$NAME" bash -c "echo 'foo \"bar\"'"

if [[ -n ${CHECKS["systemd"]} ]]; then
set -x
# agetty segfaults on Ubuntu 25.04 (x86_64)
# > __strncmp_evex () at ../sysdeps/x86_64/multiarch/strcmp-evex.S:316
# Should be fixed in Ubuntu 25.10 with util-linux >= 2.41
# https://github.com/lima-vm/lima/pull/3643#issuecomment-3006788732
if limactl shell "$NAME" systemctl -q is-failed [email protected]; then
limactl shell "$NAME" sudo systemctl reset-failed [email protected]
fi
if ! limactl shell "$NAME" systemctl is-system-running --wait; then
ERROR '"systemctl is-system-running" failed'
diagnose "$NAME"
Expand Down
6 changes: 6 additions & 0 deletions pkg/limayaml/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,12 @@ func FillDefault(y, d, o *LimaYAML, filePath string, warn bool) {
for _, f := range y.MountTypesUnsupported {
mountTypesUnsupported[f] = struct{}{}
}

if runtime.GOOS == "windows" {
// QEMU for Windows does not support 9p
mountTypesUnsupported[NINEP] = struct{}{}
}

// MountType has to be resolved before resolving Mounts
if y.MountType == nil {
y.MountType = d.MountType
Expand Down
4 changes: 2 additions & 2 deletions templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Distro:
- [`centos-stream-10`](./centos-stream-10.yaml): CentOS Stream 10
- [`debian-11`](./debian-11.yaml): Debian GNU/Linux 11(bullseye)
- [`debian-12`](./debian-12.yaml), `debian.yaml`: ⭐Debian GNU/Linux 12(bookworm)
- [`fedora-41`](./fedora-41.yaml), `fedora.yaml`: ⭐Fedora 41
- [`fedora-42`](./fedora-42.yaml): Fedora 42
- [`fedora-41`](./fedora-41.yaml): Fedora 41
- [`fedora-42`](./fedora-42.yaml), `fedora.yaml`: ⭐Fedora 42
- [`opensuse-leap`](./opensuse-leap.yaml), `opensuse.yaml`: ⭐openSUSE Leap
- [`oraclelinux-8`](./oraclelinux-8.yaml): Oracle Linux 8
- [`oraclelinux-9`](./oraclelinux-9.yaml), `oraclelinux.yaml`: Oracle Linux 9
Expand Down
2 changes: 1 addition & 1 deletion templates/_images/fedora.yaml
2 changes: 1 addition & 1 deletion templates/_images/ubuntu.yaml
6 changes: 2 additions & 4 deletions templates/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,11 @@ mounts: []
# The issue was fixed in Linux v6.12-rc5 (https://github.com/torvalds/linux/commit/be2ca38).
#
# 🟢 Builtin default: []
# 🔵 This file: ["9p"] (as Ubuntu 24.10 uses kernel 6.11)
mountTypesUnsupported:
- "9p"
mountTypesUnsupported: null

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

# Enable inotify support for mounted directories (EXPERIMENTAL)
Expand Down
2 changes: 1 addition & 1 deletion templates/fedora.yaml
2 changes: 1 addition & 1 deletion templates/podman-rootful.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
minimumLimaVersion: 1.1.0

base:
- template://_images/fedora-41
- template://_images/fedora
- template://_default/mounts

containerd:
Expand Down
2 changes: 1 addition & 1 deletion templates/podman.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
minimumLimaVersion: 1.1.0

base:
- template://_images/fedora-41
- template://_images/fedora
- template://_default/mounts

containerd:
Expand Down
2 changes: 1 addition & 1 deletion templates/ubuntu.yaml
2 changes: 1 addition & 1 deletion website/content/en/docs/config/mount.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The default mount type is shown in the following table:
| < 0.10 | reverse-sshfs + Builtin SFTP server |
| >= 0.10 | reverse-sshfs + OpenSSH SFTP server |
| >= 0.17 | reverse-sshfs + OpenSSH SFTP server for QEMU, virtiofs for VZ |
| >= 1.0 | 9p for QEMU, virtiofs for VZ |
| >= 1.0 | 9p for QEMU (on non-Windows), virtiofs for VZ |

## Mount types

Expand Down
Loading