Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github: install qemu-system-x86 #112

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,14 @@ jobs:

# run_qemu deps
sudo apt install -y mkosi # this one pulls A LOT
sudo apt install -y dracut-core qemu-utils ovmf mtools
sudo apt install -y dracut-core qemu-utils ovmf mtools qemu-system-x86
pip3 install qemu.qmp

# This Ubuntu 22.04 file disappeared in Ubuntu 24.04, no idea why.
# FIXME: make run_qemu.sh#get_ovmf_binaries() smarter and more flexible.
test -e /usr/share/OVMF/OVMF_CODE.fd ||
sudo ln -s OVMF_CODE_4M.fd /usr/share/OVMF/OVMF_CODE.fd

- name: mkosi v20 fixes
if: matrix.cfg.os == 'ubuntu-24.04'
run: |
Expand Down Expand Up @@ -159,11 +164,18 @@ jobs:
ndctl='${{ github.workspace }}'/ndctl \
../run_qemu/run_qemu.sh -v --no-run ${{ matrix.run_opts }}

# In GitHub runner VMs, with --run:
# qemu-system-x86_64: failed to initialize kvm: Permission denied

# This is required on a plain Ubuntu system but is blocked on Github runners.
# sudo usermod -a -G kvm $(id -u -n)

# It would probably not work anyway without "nested KVM".

- name: ccache stats post build
run: |
# Pre-build stats printed at the start of the build step
set -x
ccache --show-stats
ccache --show-config | grep dir

# TODO: drop --no-run thanks to "nested KVM" or something?
Loading