Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] qemu: using incorrect datadir /usr/lib when build qemu package
@ 2020-07-09 12:24 phrdina
  2020-07-11 15:25 ` sgn
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: phrdina @ 2020-07-09 12:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 939 bytes --]

New issue by phrdina on void-packages repository

https://github.com/void-linux/void-packages/issues/23495

Description:
### System

* xuname:  
  Void 5.7.7_1 x86_64 x86_64 AuthenticAMD uptodate rF
* package:  
  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](url) 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`

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: qemu: using incorrect datadir /usr/lib when build qemu package
  2020-07-09 12:24 [ISSUE] qemu: using incorrect datadir /usr/lib when build qemu package phrdina
@ 2020-07-11 15:25 ` sgn
  2020-07-11 15:27 ` sgn
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: sgn @ 2020-07-11 15:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 424 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/23495#issuecomment-657080642

Comment:
We installed that way because of pkglint-elf-in-usrshare hook.
See ec31c862ee (qemu: install firmware files to /usr/lib to please the pkglint-elf-in-usrshare hook, 2019-01-27)

I don't know if symlink from `/usr/lib` to `/usr/share` works.
I usually use pure qemu without libvirtd.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: qemu: using incorrect datadir /usr/lib when build qemu package
  2020-07-09 12:24 [ISSUE] qemu: using incorrect datadir /usr/lib when build qemu package phrdina
  2020-07-11 15:25 ` sgn
@ 2020-07-11 15:27 ` sgn
  2020-07-12 23:21 ` phrdina
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: sgn @ 2020-07-11 15:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 510 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/23495#issuecomment-657080642

Comment:
We installed that way because of pkglint-elf-in-usrshare hook.
See ec31c862ee (qemu: install firmware files to /usr/lib to please the pkglint-elf-in-usrshare hook, 2019-01-27)

I don't know if symlink from `/usr/lib` to `/usr/share` works.
I usually use pure qemu without libvirtd.

---

It looks like only `/usr/share/qemu/firmware` needs to be symlink-ed/move-d

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: qemu: using incorrect datadir /usr/lib when build qemu package
  2020-07-09 12:24 [ISSUE] qemu: using incorrect datadir /usr/lib when build qemu package phrdina
  2020-07-11 15:25 ` sgn
  2020-07-11 15:27 ` sgn
@ 2020-07-12 23:21 ` phrdina
  2020-07-19 10:57 ` pandom79
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: phrdina @ 2020-07-12 23:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 263 bytes --]

New comment by phrdina on void-packages repository

https://github.com/void-linux/void-packages/issues/23495#issuecomment-657290567

Comment:
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.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: qemu: using incorrect datadir /usr/lib when build qemu package
  2020-07-09 12:24 [ISSUE] qemu: using incorrect datadir /usr/lib when build qemu package phrdina
                   ` (2 preceding siblings ...)
  2020-07-12 23:21 ` phrdina
@ 2020-07-19 10:57 ` pandom79
  2020-07-20  9:27 ` phrdina
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pandom79 @ 2020-07-19 10:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 873 bytes --]

New comment by pandom79 on void-packages repository

https://github.com/void-linux/void-packages/issues/23495#issuecomment-660625814

Comment:
> 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,
few days ago, you have answered at my email.
i built qemu as you suggested and now libvirt finds the firmware correctly.
Thare are two problems again:
1) i had to patch makefile to resolve build error caused by pkglint-elf-in-usrshare. I think that it is wrong but i only wanted to do a test for libvirt, therefore , i'll try to create a symbolic link.
2) The virt manager gui shows only firware uefi but it doesn't show uefi secure boot firmware again. I tried to set q35 machine type and storage format  raw and disk bus sata. Now , the paths are right, why does it not show?
regards

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: qemu: using incorrect datadir /usr/lib when build qemu package
  2020-07-09 12:24 [ISSUE] qemu: using incorrect datadir /usr/lib when build qemu package phrdina
                   ` (3 preceding siblings ...)
  2020-07-19 10:57 ` pandom79
@ 2020-07-20  9:27 ` phrdina
  2020-07-20  9:32 ` pandom79
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: phrdina @ 2020-07-20  9:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 975 bytes --]

New comment by phrdina on void-packages repository

https://github.com/void-linux/void-packages/issues/23495#issuecomment-660913823

Comment:
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.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: qemu: using incorrect datadir /usr/lib when build qemu package
  2020-07-09 12:24 [ISSUE] qemu: using incorrect datadir /usr/lib when build qemu package phrdina
                   ` (4 preceding siblings ...)
  2020-07-20  9:27 ` phrdina
@ 2020-07-20  9:32 ` pandom79
  2020-07-20 14:00 ` pandom79
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pandom79 @ 2020-07-20  9:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]

New comment by pandom79 on void-packages repository

https://github.com/void-linux/void-packages/issues/23495#issuecomment-660916774

Comment:
> 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'll waiting your notice
thank you so much.
regards


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: qemu: using incorrect datadir /usr/lib when build qemu package
  2020-07-09 12:24 [ISSUE] qemu: using incorrect datadir /usr/lib when build qemu package phrdina
                   ` (5 preceding siblings ...)
  2020-07-20  9:32 ` pandom79
@ 2020-07-20 14:00 ` pandom79
  2020-07-21  7:44 ` pandom79
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pandom79 @ 2020-07-20 14:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 321 bytes --]

New comment by pandom79 on void-packages repository

https://github.com/void-linux/void-packages/issues/23495#issuecomment-661058104

Comment:
I added a symlink from **/usr/share/qemu/firmware** to **/usr/lib/qemu/firmware** and it seems works well.
Now, libvirt finds the firmwares correctly except uefi secure boot.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: qemu: using incorrect datadir /usr/lib when build qemu package
  2020-07-09 12:24 [ISSUE] qemu: using incorrect datadir /usr/lib when build qemu package phrdina
                   ` (6 preceding siblings ...)
  2020-07-20 14:00 ` pandom79
@ 2020-07-21  7:44 ` pandom79
  2020-07-22 13:05 ` phrdina
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pandom79 @ 2020-07-21  7:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 398 bytes --]

New comment by pandom79 on void-packages repository

https://github.com/void-linux/void-packages/issues/23495#issuecomment-661693064

Comment:
@phrdina 
small update: I tried to install windows 10 in virt manager. In this case, i can also choice uefi secure boot firmware both for q35 and i440fx. It works correctly.
At this point, i have a doubt: does it depend by iso file capability?
regards

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: qemu: using incorrect datadir /usr/lib when build qemu package
  2020-07-09 12:24 [ISSUE] qemu: using incorrect datadir /usr/lib when build qemu package phrdina
                   ` (7 preceding siblings ...)
  2020-07-21  7:44 ` pandom79
@ 2020-07-22 13:05 ` phrdina
  2020-07-22 13:11 ` pandom79
  2020-09-14  7:11 ` [ISSUE] [CLOSED] " Hoshpak
  10 siblings, 0 replies; 12+ messages in thread
From: phrdina @ 2020-07-22 13:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 801 bytes --]

New comment by phrdina on void-packages repository

https://github.com/void-linux/void-packages/issues/23495#issuecomment-662440938

Comment:
@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 you pick windows or it is detected it will pick Q35 as default machine type using osinfo project and virt-manager will get domain capabilities only for Q35 machine type which will contain secure boot firmware and non-secure boot firmware.

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.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: qemu: using incorrect datadir /usr/lib when build qemu package
  2020-07-09 12:24 [ISSUE] qemu: using incorrect datadir /usr/lib when build qemu package phrdina
                   ` (8 preceding siblings ...)
  2020-07-22 13:05 ` phrdina
@ 2020-07-22 13:11 ` pandom79
  2020-09-14  7:11 ` [ISSUE] [CLOSED] " Hoshpak
  10 siblings, 0 replies; 12+ messages in thread
From: pandom79 @ 2020-07-22 13:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 894 bytes --]

New comment by pandom79 on void-packages repository

https://github.com/void-linux/void-packages/issues/23495#issuecomment-662444325

Comment:
> @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 you pick windows or it is detected it will pick Q35 as default machine type using osinfo project and virt-manager will get domain capabilities only for Q35 machine type which will contain secure boot firmware and non-secure boot firmware.
> 
> 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 .

sorry, you're right. 
I shouldn't be seeing uefi secure-boot in case of i440FX.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [ISSUE] [CLOSED] qemu: using incorrect datadir /usr/lib when build qemu package
  2020-07-09 12:24 [ISSUE] qemu: using incorrect datadir /usr/lib when build qemu package phrdina
                   ` (9 preceding siblings ...)
  2020-07-22 13:11 ` pandom79
@ 2020-09-14  7:11 ` Hoshpak
  10 siblings, 0 replies; 12+ messages in thread
From: Hoshpak @ 2020-09-14  7:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 970 bytes --]

Closed issue by phrdina on void-packages repository

https://github.com/void-linux/void-packages/issues/23495

Description:
### System

* xuname:  
  Void 5.7.7_1 x86_64 x86_64 AuthenticAMD uptodate rF
* package:  
  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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-09-14  7:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-09 12:24 [ISSUE] qemu: using incorrect datadir /usr/lib when build qemu package phrdina
2020-07-11 15:25 ` sgn
2020-07-11 15:27 ` sgn
2020-07-12 23:21 ` phrdina
2020-07-19 10:57 ` pandom79
2020-07-20  9:27 ` phrdina
2020-07-20  9:32 ` pandom79
2020-07-20 14:00 ` pandom79
2020-07-21  7:44 ` pandom79
2020-07-22 13:05 ` phrdina
2020-07-22 13:11 ` pandom79
2020-09-14  7:11 ` [ISSUE] [CLOSED] " Hoshpak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).