Commit 6e08624 1 parent 878a7a7 commit 6e08624 Copy full SHA for 6e08624
File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 53
53
54
54
# run_qemu deps
55
55
sudo apt install -y mkosi # this one pulls A LOT
56
- sudo apt install -y dracut-core qemu-utils ovmf mtools
56
+ sudo apt install -y dracut-core qemu-utils ovmf mtools qemu-system-x86
57
57
pip3 install qemu.qmp
58
58
59
+ # This Ubuntu 22.04 file disappeared in Ubuntu 24.04, no idea why.
60
+ # FIXME: make run_qemu.sh#get_ovmf_binaries() smarter and more flexible.
61
+ test -e /usr/share/OVMF/OVMF_CODE.fd ||
62
+ sudo ln -s OVMF_CODE_4M.fd /usr/share/OVMF/OVMF_CODE.fd
63
+
59
64
- name : mkosi v20 fixes
60
65
if : matrix.cfg.os == 'ubuntu-24.04'
61
66
run : |
@@ -159,11 +164,18 @@ jobs:
159
164
ndctl='${{ github.workspace }}'/ndctl \
160
165
../run_qemu/run_qemu.sh -v --no-run ${{ matrix.run_opts }}
161
166
167
+ # In GitHub runner VMs, with --run:
168
+ # qemu-system-x86_64: failed to initialize kvm: Permission denied
169
+
170
+ # This is required on a plain Ubuntu system but is blocked on Github runners.
171
+ # sudo usermod -a -G kvm $(id -u -n)
172
+
173
+ # It would probably not work anyway without "nested KVM".
174
+
162
175
- name : ccache stats post build
163
176
run : |
164
177
# Pre-build stats printed at the start of the build step
165
178
set -x
166
179
ccache --show-stats
167
180
ccache --show-config | grep dir
168
181
169
- # TODO: drop --no-run thanks to "nested KVM" or something?
You can’t perform that action at this time.
0 commit comments