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 GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| kernel | Path to the kernel to boot (ELF, Multiboot, Multiboot 2, or flat binary). | yes | — |
| expect | Text the guest must print. One assertion per line; all must hold. | no | "" |
| forbid | Text 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 | "" |
| input | Text to feed the guest on stdin. \n is understood. | no | "" |
| input-delay | Seconds to wait before sending input. A guest whose console comes up late needs this, or its first characters are consumed by driver probing. | no | 0 |
| timeout | Seconds to allow before giving up. | no | 30 |
| allow-timeout | Set 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. | no | false |
| vmm-args | Extra arguments for Mini-KVM, for example "--vga" or "--explain". | no | "" |
| ref | Mini-KVM git ref to build. | no | main |
Outputs
| name | description |
|---|---|
| guest-output | Everything the guest printed. |