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
qemu: using incorrect datadir /usr/lib when build qemu package #23495
Comments
We installed that way because of pkglint-elf-in-usrshare hook. I don't know if symlink from It looks like only |
Symlink would work for libvirt but I'm not sure if it's correct for void linux distribution as I'm not familiar with it. |
hi phrdina,
|
Hi @pandom79 so there is a bug in virt-manager GUI. If you start creating new VM in the Step 2 at the bottom page you can select operating system that will be installed inside the VM. Based on the selected OS virt-manager picks q35 or i440fx. If it defaults to i440fx virt-manager gets domain capabilities from libvirt for i440fx only. Later in the customize window if you switch chipset to q35 virt-manager will not refresh domain capabilities so it will not update the list of firmwares which is the bug here. The same happens the other way around. We need to fix it to refresh domain capabilities correctly when user switches chipset in the UI. So there is an issue how QEMU is installed in Void Linux and there is a bug in virt-manager to not show correct firmwares if chipset is changed. I'll fix the virt-manager bug. |
Hi @phrdina , |
I added a symlink from /usr/share/qemu/firmware to /usr/lib/qemu/firmware and it seems works well. |
@phrdina |
@pandom79 No it doesn't depend on the ISO file. It depends on the selected or detected OS that you are installing inside the VM. If the selected or detected OS will lead to i440FX it will contain only non-secure boot firmware. The situation that you describe is not working correctly because if you change the machine type into i440FX the secure boot firmware should disappear as it will not work with i440FX. |
sorry, you're right. |
ignore foreign-arch elf files in /usr/share fixes void-linux#23495
ignore foreign-arch elf files in /usr/share fixes void-linux#23495 [skip ci]
ignore foreign-arch elf files in /usr/share fixes #23495 [skip ci]
System
Void 5.7.7_1 x86_64 x86_64 AuthenticAMD uptodate rF
qemu-5.0.0_2
Expected behavior
edk2 json firmware files installed by qemu package should be in
/usr/share/qemu/firmware/
directory.Actual behavior
They are currently installed in
/usr/lib/qemu/firmware/
directory which is incorrect. If you check QEMU documentation for the firmware json files https://git.qemu.org/?p=qemu.git;a=blob;f=docs/interop/firmware.json;hb=HEAD it has an explicit list of directories where the firmware json files should be and libvirt looks for this files only at these directories in order to provide the installed firmwares to users or to management applications like virt-manager.Steps to reproduce the behavior
xbps-install qemu
xbps-query -f qemu
sgn: fixed the qemu link
The text was updated successfully, but these errors were encountered: