You are not logged in.

#1 2019-10-18 16:05:58

cosarara97
Member
Registered: 2012-02-16
Posts: 2

Libvirt fails to detect OVMF/UEFI firmware

I have the same problem as this guy here https://bbs.archlinux.org/viewtopic.php?id=232466 - but the solution they used doesn't work for me.
I am following this wiki article: https://wiki.archlinux.org/index.php/PC … d_guest_VM

I have installed the ovmf package and set up the nvram variable in /etc/libvirt/qemu.conf:

nvram = [
	"/usr/share/ovmf/x64/OVMF_CODE.fd:/usr/share/ovmf/x64/OVMF_VARS.fd"
]

My file now looks like this: https://p.teknik.io/oPbLa

After that I have restarted the libvirtd service and even the whole host system.

The two files exist:

> ls -lh /usr/share/ovmf/x64/OVMF_CODE.fd /usr/share/ovmf/x64/OVMF_VARS.fd
-rw-r--r-- 1 root root 1.9M Jul  8 18:25 /usr/share/ovmf/x64/OVMF_CODE.fd
-rw-r--r-- 1 root root 128K Jul  8 18:25 /usr/share/ovmf/x64/OVMF_VARS.fd

And yet when I'm creating a new VM in virt manager the UEFI option is grayed out and I get a warning saying that libvirt did not detect the OVMF binaries:

https://i.redd.it/bjfnmzjdjbt31.png
https://i.redd.it/6i0j1hwejbt31.png

I only have one connection in virt-manager and it says system, not session (this is what the wiki says to check, and it's the other thread's problem):

https://i.redd.it/zxt281ubjbt31.png

The only error with libvirtd is just a virtualbox warning:

> systemctl status libvirtd
● libvirtd.service - Virtualization daemon
   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; disabled; vendor preset: disabled)
   Active: active (running) since Fri 2019-10-18 17:46:20 CEST; 25s ago
     Docs: man:libvirtd(8)
           https://libvirt.org
 Main PID: 39856 (libvirtd)
    Tasks: 17 (limit: 32768)
   Memory: 53.5M
   CGroup: /system.slice/libvirtd.service
           └─39856 /usr/bin/libvirtd

Oct 18 17:46:20 altair systemd[1]: Started Virtualization daemon.
Oct 18 17:46:20 altair libvirtd[39856]: libvirt version: 5.8.0
Oct 18 17:46:20 altair libvirtd[39856]: hostname: altair
Oct 18 17:46:20 altair libvirtd[39856]: Libvirt doesn't support VirtualBox API version 6000014

Can anyone see what I'm doing wrong?


moderator edit -- replaced oversized images with links.
Pasting pictures and code

Last edited by 2ManyDogs (2019-10-18 22:47:57)

Offline

#2 2019-10-18 22:37:34

olorin12
Member
Registered: 2014-08-01
Posts: 18

Re: Libvirt fails to detect OVMF/UEFI firmware

I'm having the exact same problem. Started going through the process about three days ago.

Offline

#3 2019-10-18 23:59:34

meowcat
Member
Registered: 2019-10-18
Posts: 2

Re: Libvirt fails to detect OVMF/UEFI firmware

Literally made an account just for this issue.
I've been playing about with this for a few weeks without issue, now all of a sudden I have no UEFI detected when I'm trying to create a new VM? What?

I think it has something to do with the most recent update:

pacman -Q --info libvirt

reveals a "Build Date 17-Oct-2019 17:34"

Downloading version 5.6.0 from here: https://archive.archlinux.org/packages/l/libvirt/ (inc. signature file) and running

pacman -U libvirt-5.6.0-1-x86_64.pkg.tar.xz

Issue is now fixed for me and UEFI is now detected!

Last edited by meowcat (2019-10-19 00:02:25)

Offline

#4 2019-10-19 00:10:56

olorin12
Member
Registered: 2014-08-01
Posts: 18

Re: Libvirt fails to detect OVMF/UEFI firmware

That's a downgrade. The current version is 5.8.0-1, which is what I have installed.
So downgrading all the way to 5.6.0-1 is what fixes the issue?

Offline

#5 2019-10-19 00:15:15

meowcat
Member
Registered: 2019-10-18
Posts: 2

Re: Libvirt fails to detect OVMF/UEFI firmware

That's what fixed the issue for me at least, I had 5.8.0-1 installed too

Last edited by meowcat (2019-10-19 00:15:26)

Offline

#6 2019-10-19 07:06:01

olorin12
Member
Registered: 2014-08-01
Posts: 18

Re: Libvirt fails to detect OVMF/UEFI firmware

Downgrading fixed it for me. Did anyone file a bug report?

Offline

#7 2019-10-19 09:40:42

cosarara97
Member
Registered: 2012-02-16
Posts: 2

Re: Libvirt fails to detect OVMF/UEFI firmware

olorin12 wrote:

Downgrading fixed it for me. Did anyone file a bug report?

Just did https://bugs.archlinux.org/task/64175

Offline

#8 2019-10-19 10:39:24

loqs
Member
Registered: 2014-03-06
Posts: 9,234

Re: Libvirt fails to detect OVMF/UEFI firmware

Is you run from the console

virt-manager --debug

Is there any difference in the outputs produced between libvirt 5.6 and 5.8?

Offline

#9 2019-10-19 17:11:55

chr0mag
Member
From: Canada
Registered: 2017-02-02
Posts: 87

Re: Libvirt fails to detect OVMF/UEFI firmware

A workaround to get this working in v5.8 has been added to that bug.

Offline

#10 2019-11-30 06:49:34

iGwadaa
Member
Registered: 2017-12-28
Posts: 20

Re: Libvirt fails to detect OVMF/UEFI firmware

fail post

Last edited by iGwadaa (2019-12-01 00:36:06)

Offline

#11 2019-12-01 00:29:33

iGwadaa
Member
Registered: 2017-12-28
Posts: 20

Re: Libvirt fails to detect OVMF/UEFI firmware

Hi, i'm making an installation from scratch, with the wiki (https://wiki.archlinux.org/index.php/PC … d_guest_VM).
After downgrading libvirt to the v5.6.0, i get libvirtd who fails to start the Virtualization daemon, so i run libvirtd -v :
[...]
2019-11-30 21:23:06.760+0000: 2417: info : virEventPollAddHandle:133 : EVENT_POLL_ADD_HANDLE: watch=1 fd=4 events=1 cb=0x7f5f3d3a8580 opaque=(nil) ff=(nil)
2019-11-30 21:23:06.760+0000: 2417: info : virObjectNew:252 : OBJECT_NEW: obj=0x56187e95c590 classname=virNetServer
2019-11-30 21:23:06.760+0000: 2417: info : virObjectRef:401 : OBJECT_REF: obj=0x56187e95c590
2019-11-30 21:23:06.765+0000: 2417: error : virModuleLoadFile:52 : internal error: Failed to load module '/usr/lib/libvirt/storage-backend/libvirt_storage_backend_iscsi-direct.so': libiscsi.so.8: cannot open shared object file: No such file or directory
2019-11-30 21:23:06.765+0000: 2417: info : virNetlinkEventServiceStopAll:941 : stopping all netlink event services
2019-11-30 21:23:06.765+0000: 2417: info : virNetlinkEventServiceStop:904 : stopping netlink event service
2019-11-30 21:23:06.765+0000: 2417: info : virNetlinkEventServiceStop:904 : stopping netlink event service
[...]

I downgraded libiscsi to the previous version but then i got this error from virt-manager : ImportError: /usr/lib/libvirt.so.0: version `LIBVIRT_5.7.0' not found (required by /usr/lib/python3.8/site-packages/libvirtmod.cpython-38-x86_64-linux-gnu.so)
I tried with other version and only the v5.8.0-1 is working with the old version of libiscsi but virt-manager still couldn't find the firmware. So i tryed to isolate the failing package by downgrading all the packages before the date of the release of the v5.6.0... but turned out i got a bunch of errors and because i'm on it since 20 hours now i'm thinking about giving up. If that can help i have a file with the links of the packages before the v5.6.0 of libvirt : https://drive.google.com/open?id=10HzZU … da6ozdwgY9

Last edited by iGwadaa (2019-12-01 01:12:37)

Offline

#12 2019-12-01 00:47:41

loqs
Member
Registered: 2014-03-06
Posts: 9,234

Re: Libvirt fails to detect OVMF/UEFI firmware

Did you try with 5.8 the workaround from https://bugs.archlinux.org/task/64175#comment183769
or removing /usr/share/qemu/firmware/*edk* ?

Offline

#13 2019-12-01 01:19:31

iGwadaa
Member
Registered: 2017-12-28
Posts: 20

Re: Libvirt fails to detect OVMF/UEFI firmware

Sorry i don't understand what to do

Last edited by iGwadaa (2019-12-01 01:39:07)

Offline

#14 2019-12-01 01:30:54

loqs
Member
Registered: 2014-03-06
Posts: 9,234

Re: Libvirt fails to detect OVMF/UEFI firmware

https://bugs.archlinux.org/task/64175#comment183769 may require altering the PKGBUILD or creating a file in /etc/qemu/firmware/
but for my other suggestion execute the following (# mean execute it as root) then restart libvirt

# rm /usr/share/qemu/firmware/*edk*

Offline

#15 2019-12-01 01:40:49

iGwadaa
Member
Registered: 2017-12-28
Posts: 20

Re: Libvirt fails to detect OVMF/UEFI firmware

Yes it works perfectly thanks a lot :)

Last edited by iGwadaa (2019-12-01 01:40:59)

Offline

#16 2019-12-01 01:47:54

iGwadaa
Member
Registered: 2017-12-28
Posts: 20

Re: Libvirt fails to detect OVMF/UEFI firmware

I am searching a way to have a better resolution through the VM tho. I'm stuck in 800x600

Last edited by iGwadaa (2019-12-01 01:50:21)

Offline

#17 2019-12-01 22:50:41

askeladd
Member
Registered: 2019-12-01
Posts: 2

Re: Libvirt fails to detect OVMF/UEFI firmware

loqs wrote:

https://bugs.archlinux.org/task/64175#comment183769 may require altering the PKGBUILD or creating a file in /etc/qemu/firmware/
but for my other suggestion execute the following (# mean execute it as root) then restart libvirt

# rm /usr/share/qemu/firmware/*edk*

Created an account and logged in just to thank you. This is what got it working for me! smile

Offline

#18 2019-12-01 23:50:04

askeladd
Member
Registered: 2019-12-01
Posts: 2

Re: Libvirt fails to detect OVMF/UEFI firmware

iGwadaa wrote:

I am searching a way to have a better resolution through the VM tho. I'm stuck in 800x600

I fixed the 800x600 problem by installing Spice Guest Additions on Windows VM: https://www.spice-space.org/download.html. Under "Guest -> Windows Binaries" section

Offline

#19 2019-12-04 14:03:02

dreamycrane
Member
Registered: 2019-03-18
Posts: 8

Re: Libvirt fails to detect OVMF/UEFI firmware

Some stupid new update of libvirt or virt manager screwed the whole thing up.
Please enable xml editing in virt-manager and in the <os>....</os> section of the vm xml file just add:

<loader readonly="yes" type="pflash">/usr/share/ovmf/x64/OVMF_CODE.fd</loader>
<nvram>/var/lib/libvirt/qemu/nvram/_archlinux-uefi_VARS.fd</nvram>

after first creating the VM,
taking care that the above entry reflects your ovfm settings in /etc/libvirt/qemu.conf.
smile

Offline

Board footer

Powered by FluxBB