Infrastructure | Gitlab runner which supports KVM (#623)



Title: GitLab

Sam Thursfield created an issue: #623

As part of GNOME/gnome-build-meta#206 (Test OS and apps keep working in the VM image) we need a Gitlab CI runner that is able to run a virtual machine using KVM.

In the list of available runners, I see only one tagged 'kvm' and it is offline since 5 months ago:

image

The pipeline we are trying to run is in gnome-build-meta branch sthursfield/james/openqa-gnome-40. On the regular gnome-build-meta runner, it successfully talks to openqa.gnome.org but fails with this error:

[2021-07-29T12:44:43.210 UTC] [debug] QEMU: QEMU emulator version 4.2.1 (openSUSE Leap 15.2)
[2021-07-29T12:44:43.210 UTC] [debug] QEMU: Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers
[2021-07-29T12:44:43.210 UTC] [debug] QEMU: Could not access KVM kernel module: Permission denied
[2021-07-29T12:44:43.211 UTC] [warn] !!! : qemu-system-x86_64: failed to initialize KVM: Permission denied

This is presumably because the gnome-build-meta runner doesn't give Docker the necessary permissions to run KVM.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]