FS#64206 - [ovmf] Provide a JSON firmware "descriptor file"
Attached to Project:
Arch Linux
Opened by Toolybird (Toolybird) - Monday, 21 October 2019, 19:47 GMT
Last edited by Anatol Pomozov (anatolik) - Saturday, 11 January 2020, 00:30 GMT
Opened by Toolybird (Toolybird) - Monday, 21 October 2019, 19:47 GMT
Last edited by Anatol Pomozov (anatolik) - Saturday, 11 January 2020, 00:30 GMT
|
Details
Description:
Recent libvirt needs new JSON desciptor files to properly locate OVMF firmware. This is most apparent when trying to create a new ovmf based VM in virt-manager. These JSON files were introduced in qemu-4.1[1] Fedora started shipping their version of these files about 3 months ago[2] Attached is a patch (tested) against current PKGBUILD. The JSON file is ripped from the qemu-4.1 src with minor edits to match Arch files location. This will also fix 1. https://wiki.qemu.org/ChangeLog/4.1#Miscellaneous 2. https://src.fedoraproject.org/rpms/edk2/c/674b3c8a27a85b2d8646a3e9f94f371c5572dd3b?branch=master |
This task depends upon
Closed by Anatol Pomozov (anatolik)
Saturday, 11 January 2020, 00:30 GMT
Reason for closing: Fixed
Additional comments about closing: 1:r26976.bd85bf54c2-1
Saturday, 11 January 2020, 00:30 GMT
Reason for closing: Fixed
Additional comments about closing: 1:r26976.bd85bf54c2-1
```bash
asp checkout ovmf
cd ovmf/trunk/
curl 'https://bugs.archlinux.org/index.php?getfile=17934' | git apply
extra-x86_64-build -- -- --skippgpcheck
sudo pacman -U ovmf-1\:r26214.20d2e5a125-2-any.pkg.tar.xz
sudo systemctl restart libvirtd
```
Passing `--skipgpgcheck` to `makepkg` is necessary because openssl-1.1.1b is signed with a key that's not in my keyring, and I'm unable to find info about it through keyserver.pgp.com or pgp.mit.edu.
TIA
asp checkout ovmf
cd ovmf/trunk/
curl 'https://bugs.archlinux.org/index.php?getfile=17934' | git apply
extra-x86_64-build -- -- --skippgpcheck
sudo pacman -U ovmf-1\:r26214.20d2e5a125-2-any.pkg.tar.xz
sudo systemctl restart libvirtd
and this was the output: https://imgur.com/a/p31gdnP
What am I doing wrong? TIA
One would assume you are missing asp.
* Be wary of running that entire script as root. That's a great way to screw up your system.
* Consider reading about the tools at hand. A fine place to start is by reading about the arch build system. https://wiki.archlinux.org/index.php/Arch_Build_System
./OVMF: line 7: extra-x86_64-build: command not found
loading packages...
error: 'ovmf-1:r26214.20d2e5a125-2-any.pkg.tar.xz': could not find or read package
Sorry, Im a bit new to this.
One would assume you are missing the package containing extra-x86_64-build.
Edit - I forgot to paste nvram entry into /etc/libivrt/qemu.conf
Sorry
Saw the comment https://bugs.archlinux.org/task/64175#comment183769 by Dario on this bug: https://bugs.archlinux.org/task/64175
I added in the os section of XML file of my virtual machine named win10:
<nvram template="/usr/share/ovmf/x64/OVMF_VARS.fd">/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram>
After this it was possible to boot.
Do we need to add both files to OVMF?