ci: set kvm permissions for GHA QEMU jobs
authorVincent Fu <vincent.fu@samsung.com>
Fri, 4 Apr 2025 11:41:50 +0000 (07:41 -0400)
committerVincent Fu <vincent.fu@samsung.com>
Fri, 4 Apr 2025 15:27:27 +0000 (11:27 -0400)
commitc283fe11bda9efde7f063e6fe693802724ddc8c0
tree01306ba1506fc96d37b8d7cab3b9dae7d4565cbe
parent58818df7b0948d36ba9743160a1f570700d2347d
ci: set kvm permissions for GHA QEMU jobs

The image used by GitHub-hosted runners changed the default kvm device
permissions recently rendering us no longer able to start guest VMs. The
error message:

Could not access KVM kernel module: Permission denied
qemu-system-x86_64: failed to initialize kvm: Permission denied

Working run: https://github.com/fiotestbot/fio/actions/runs/14186873066
Failed run: https://github.com/fiotestbot/fio/actions/runs/14211189491

Explicitly give the GitHub Actions runner user permission to access the
/dev/kvm device following the guide at

https://github.blog/changelog/2024-04-02-github-actions-hardware-accelerated-android-virtualization-now-available/

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
.github/actions/start-vm/action.yml