Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
lima-vm
GitHub Repository: lima-vm/lima
Path: blob/master/hack/install-qemu.sh
2601 views
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
9
set -eux
10
11
# apt-get update has to be run beforehand
12
apt-get install -y --no-install-recommends ovmf qemu-system-x86 qemu-utils
13
modprobe kvm
14
# `usermod -aG kvm ${SUDO_USER}` does not take an effect on GHA
15
chown "${SUDO_USER}" /dev/kvm
16
qemu-system-x86_64 --version
17
18