From f1085fe3c32b082160a07d9442cbc8655875b698 Mon Sep 17 00:00:00 2001 From: Ilya Leoshkevich Date: Wed, 26 Jan 2022 01:14:47 +0100 Subject: [PATCH] ci: add s390x-self-hosted-builder's user to kvm group RHEL's podman sets /dev/kvm permissions to 0666, while Ubuntu's docker sets them to 0660. Therefore, in order to use KVM from a container, the user within must belong to the kvm group. Signed-off-by: Ilya Leoshkevich --- .../s390x-self-hosted-builder/actions-runner-libbpf.Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/travis-ci/rootfs/s390x-self-hosted-builder/actions-runner-libbpf.Dockerfile b/travis-ci/rootfs/s390x-self-hosted-builder/actions-runner-libbpf.Dockerfile index a07f177..d830657 100644 --- a/travis-ci/rootfs/s390x-self-hosted-builder/actions-runner-libbpf.Dockerfile +++ b/travis-ci/rootfs/s390x-self-hosted-builder/actions-runner-libbpf.Dockerfile @@ -37,6 +37,7 @@ ARG version=2.285.0 RUN useradd -m actions-runner RUN echo "actions-runner ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers RUN echo "Defaults env_keep += \"DEBIAN_FRONTEND\"" >>/etc/sudoers +RUN usermod -a -G kvm actions-runner USER actions-runner ENV USER=actions-runner WORKDIR /home/actions-runner