1#!/bin/sh 2 3# SPDX-FileCopyrightText: Copyright The Lima Authors 4# SPDX-License-Identifier: Apache-2.0 5 6# Install qemu on GitHub Actions runner. 7# Not expected to be used outside GitHub Actions. 8 9set -eux 10 11# apt-get update has to be run beforehand 12apt-get install -y --no-install-recommends ovmf qemu-system-x86 qemu-utils 13modprobe kvm 14# `usermod -aG kvm ${SUDO_USER}` does not take an effect on GHA 15chown "${SUDO_USER}" /dev/kvm 16qemu-system-x86_64 --version 17 18