Project

General

Profile

Actions

action #113794

closed

Use prepared OVMF image with expected settings size:M

Added by livdywan over 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Feature requests
Target version:
Start date:
2022-06-03
Due date:
% Done:

20%

Estimated time:

Description

Observation

With QEMU 7, the default video resolution was changed which caused #111992 since tests end up with an unexpected resolution. #111992#note-16 suggests using a prepared NVRAM image.

This might also be useful in preparation for #113357.

Acceptance criteria

  • AC1: Tests can boot with a custom NVRAM image

Suggestions

  • Maybe nvram tooling can be used to change the settings (efitools)
  • The following can be used to manually generate a file. Create ovmf code+vars file, spawn VM, enter menu manually, then terminate the VM to save the file
/usr/bin/qemu-img create -f qcow2 -F raw -b /usr/share/qemu/ovmf-x86_64-ms-code.bin pflash-code-overlay0 1966080
/usr/bin/qemu-img create -f qcow2 -F raw -b /usr/share/qemu/ovmf-x86_64-ms-vars.bin pflash-vars-overlay0 131072
/usr/bin/qemu-system-x86_64 -vga qxl -only-migratable -chardev ringbuf,id=serial0,logfile=serial0,logappend=on -serial chardev:serial0 -audiodev none,id=snd0 -device intel-hda -device hda-output,audiodev=snd0 -global isa-fdc.fdtypeA=none -m 2048 -cpu host -netdev user,id=qanet0 -device virtio-net,netdev=qanet0,mac=52:54:00:12:34:56 -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 -device qemu-xhci -device usb-tablet -smp 1 -enable-kvm -no-shutdown -vnc :101,share=force-shared -drive id=pflash-code-overlay0,if=pflash,file=pflash-code-overlay0,unit=0,readonly=on -drive id=pflash-vars-overlay0,if=pflash,file=pflash-vars-overlay0,unit=1
  • See if we can generate the image in openQA or GitLab and automatically upload it as an asset to openQA's asset storage. Maybe small changes are necessary how we handle those special UEFI variables.

Related issues 7 (2 open5 closed)

Related to openQA Infrastructure (public) - action #114523: Deal with QEMU and OVMF default resolution being 1280x800, affecting (at least) qxl, but on aarch64 size:MResolvedokurz2022-06-03

Actions
Related to Containers and images - action #116674: test failure in bootloader_uefiResolvedjlausuch2022-09-16

Actions
Related to openQA Tests (public) - action #116914: [qe-core] recent uefi changes makes test failWorkable2022-09-21

Actions
Related to openQA Tests (public) - action #116812: [qe-core] Leap 15.5 uefi console switch fail size:MBlockedokurz2022-09-19

Actions
Related to openQA Tests (public) - action #116704: [qe-core] nvme@uefi: boot from DVD post install instead of from HDDResolvedtinita2022-09-16

Actions
Copied from openQA Project (public) - action #111992: Deal with QEMU and OVMF default resolution being 1280x800, affecting (at least) qxl size:MResolvedtinita2022-06-03

Actions
Copied to openQA Project (public) - action #165405: GitHub CI workflow in os-autoinst/scripts triggering openQA jobs to generate pflash images stopped working size:SResolvedlivdywan

Actions
Actions

Also available in: Atom PDF