Skip to content

libkrun is failing to run microvm on fedora42/43 #519

@Yarboa

Description

@Yarboa

podman exec -it qm podman run --runtime=krun --rm -it alpine echo 'Hello libkrun.'

This job is part of QM CI.

[2026-01-22T05:38:44Z ERROR krun] Building the microVM failed: Internal(Vm(CreateGuestMemfd(Error(13))))
{"msg":"exec container process failed with handler as krun: Invalid argument","level":"error","time":"2026-01-22T05:38:44.332957Z"}
[ FAILED ] Error executing command 'podman exec -it qm podman run --runtime=krun --rm -it alpine echo 'Hello libkrun.'' with exit code: 1

How to reproduce fedora43
uname -r
6.18.5-200.fc43.x86_64
podman-5.7.1-1.fc43.x86_64
libkrunfw-4.10.0-2.fc43.x86_64
libkrun-1.15.1-1.fc43.x86_64
crun-krun-1.25.1-1.fc43.x86_64

Note:
I tried also krunvm, same problem, Is it related to memfd?
krunvm-0.1.6-11.fc43.x86_64

More info

strace -f -e ioctl podman run --runtime=krun --security-opt label=disable --rm -it alpine echo "Hello" 2>&1 | grep -i kvm | cut -d" " -f1-7
[pid 340658] ioctl(9, KVM_GET_API_VERSION, 0) = 12
[pid 340658] ioctl(9, KVM_CHECK_EXTENSION, KVM_CAP_IRQCHIP) = 1
[pid 340658] ioctl(9, KVM_CHECK_EXTENSION, KVM_CAP_IOEVENTFD) = 1
[pid 340658] ioctl(9, KVM_CHECK_EXTENSION, KVM_CAP_IRQFD) = 1
[pid 340658] ioctl(9, KVM_CHECK_EXTENSION, KVM_CAP_USER_MEMORY) = 1
[pid 340658] ioctl(9, KVM_CHECK_EXTENSION, KVM_CAP_SET_TSS_ADDR) = 1
[pid 340658] ioctl(9, KVM_CHECK_EXTENSION, KVM_CAP_NR_MEMSLOTS) = 32764
[pid 340658] ioctl(9, KVM_CREATE_VM, 0) = 10
[pid 340658] ioctl(9, KVM_GET_VCPU_MMAP_SIZE, 0) = 12288
[pid 340658] ioctl(9, KVM_GET_SUPPORTED_CPUID, {nent=58, entries=[...]}) =
[pid 340658] ioctl(9, KVM_GET_MSR_INDEX_LIST, 0x55ce0ab43f30) = 0
[pid 340658] ioctl(10, KVM_CHECK_EXTENSION, KVM_CAP_GUEST_MEMFD) = 1
[pid 340658] ioctl(10, KVM_CREATE_GUEST_MEMFD, 0x7ffc55e7fbf0) = 11
[pid 340658] ioctl(10, KVM_SET_USER_MEMORY_REGION2, 0x7ffc55e7fb50) = 0
[pid 340658] ioctl(10, KVM_SET_MEMORY_ATTRIBUTES, 0x7ffc55e7fc38) = -1

Build also

./chroot_vm / /bin/sh
[2026-01-25T13:37:45Z ERROR krun] Building the microVM failed: Internal(Vm(SetMemoryAttributes(Error(22))))
Error creating the microVM: Invalid argument

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions