seolcu/Boot a kernel with Mini-KVM

Build Mini-KVM, boot your kernel under it, and fail the job if the output is not what you expected. Intended for x86 kernel projects that want a real boot in CI rather than only a successful compile.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
kernelPath to the kernel to boot (ELF, Multiboot, Multiboot 2, or flat binary).yes
expectText the guest must print. One assertion per line; all must hold.no""
forbidText the guest must NOT print, one per line. "panic" and "triple-faulted" are good defaults for a kernel that is supposed to boot cleanly.no""
inputText to feed the guest on stdin. \n is understood.no""
input-delaySeconds to wait before sending input. A guest whose console comes up late needs this, or its first characters are consumed by driver probing.no0
timeoutSeconds to allow before giving up.no30
allow-timeoutSet to true when the guest is meant to keep running. The assertions are then the only contract, and reaching the timeout is not a failure.nofalse
vmm-argsExtra arguments for Mini-KVM, for example "--vga" or "--explain".no""
refMini-KVM git ref to build.nomain
namedescription
guest-outputEverything the guest printed.