-
Notifications
You must be signed in to change notification settings - Fork 743
Closed
Description
Linux kernel v6.12 does not boot with vz on Intel.
No error message is printed on video nor on serial.
✅ Boots
- https://cloud-images.ubuntu.com/releases/24.10/release-20250129/ubuntu-24.10-server-cloudimg-amd64.img (kernel 6.11.0-14-generic)
- https://download.fedoraproject.org/pub/fedora/linux/releases/41/Cloud/x86_64/images/Fedora-Cloud-Base-Generic-41-1.4.x86_64.qcow2 (kernel 6.11.4-301.fc41.x86_64)
- https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/cloud/nocloud_alpine-3.21.2-x86_64-uefi-cloudinit-r0.qcow2 (kernel 6.12.8-0-virt)
❌ Doesn't boot (still boots with QEMU)
- https://cloud-images.ubuntu.com/plucky/20250310/plucky-server-cloudimg-amd64.img (kernel 6.12.0-16-generic)
- https://geo.mirror.pkgbuild.com/images/v20250201.304316/Arch-Linux-x86_64-cloudimg-20250201.304316.qcow2 (kernel 6.12.10-arch1-1)
- https://download.opensuse.org/tumbleweed/appliances/openSUSE-Tumbleweed-Minimal-VM.x86_64-Cloud.qcow2 (version 20250308, kernel 6.13.5-1-default)
- https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Cloud/x86_64/images/Fedora-Cloud-Base-Generic-Rawhide-20250310.n.0.x86_64.qcow2 (kernel 6.14.0-0.rc5.20250307git00a7d39898c8.47.fc43.x86_64)
The issue might be a regression in kernel 6.12, although Alpine still boots with kernel 6.12.
Note
Update: This turned out to be a regression in torvalds/linux@70044df250d0 x86/pkeys: Update PKRU to enable all pkeys before XSAVE.
Alpine is not affected because Alpine does not use CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS.
Test environment:
- Lima v1.0.6
- macOS 15.3.1
- MacBook Pro 13-inch, 2020, Four Thunderbolt 3 ports (Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz)
Thanks to @trodemaster for originally reporting this issue.
https://cloud-native.slack.com/archives/C043N6ZFV9S/p1741464872994929
Workaround 1: use QEMU
limactl create --vm-type=qemu ...
Workaround 2: append nopku to the kernel cmdline
images:
- location: "https://cloud-images.ubuntu.com/plucky/20250310/plucky-server-cloudimg-amd64.img"
arch: "x86_64"
kernel:
location: https://cloud-images.ubuntu.com/plucky/20250310/unpacked/plucky-server-cloudimg-amd64-vmlinuz-generic
digest: sha256:547c4316eadc8e46b043b5658fd4c08d62b3522c07a7eb94692e1b7d8827bf52
cmdline: root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyAMA0 nopku
initrd:
location: https://cloud-images.ubuntu.com/plucky/20250310/unpacked/plucky-server-cloudimg-amd64-initrd-generic
digest: sha256:2842bb61052f77c1f1301394c5db215e3d89696b122accd42b7a7b30ae0c64d4