Virt-Manager can't see ovmf

I have guix on my main system. installed virt-manager and ovmf, But virt-manager is not seeing ovmf.

Both virt-manager and ovmf is in the system.scm as a system package.

My main reason for it is create some install scripts usinng scheme for some of mu favorite distro like Arch, Void, and Guix. But I would like to use virt-manager with UEFI support.

It would be appreciated for any help on getting virt-manager to see ovmf.

Thank You.

Hello @tatd,

I look at your problem yesterday. The following works for me.

In your Guix config:

  1. add firmware to your (use-package-modules ...) or (gnu packages firmware) in (use-modules ...
  2. add ovmf to your packages definition.
  3. inside services, add
 (extra-special-file "/usr/share/OVMF/OVMF_CODE.fd"
                         (file-append ovmf "/share/firmware/ovmf_code_x64.bin"))
 (extra-special-file "/usr/share/OVMF/OVMF_VARS.fd"
                         (file-append ovmf "/share/firmware/ovmf_vars_x64.bin"))

Then do a sudo guix system reconfigure my-config.scm

The extra-special-file will create a symlink to the needed firmware.

From virt-manager, you can switch to UEFI by default from the menu Edit > Preferences > NewVM > x86 Firmware
Eventually, click the manual install when creating a new virtual machine then continue the process.

You can edit the xml file too. At the end, you should see something like

<os>
    <type arch="x86_64" machine="pc-q35-8.2">hvm</type>
    <loader readonly="yes" type="pflash">/usr/share/OVMF/OVMF_CODE.fd</loader>
...
</os>

Regards, Arnaud

Thank you. Virt-Manager is able to see the OVMF file when I added the extra-special-file. And thank you for telling my about how to set UEFI to be the default. That prevents me from having to do extra steps on creating a new vm.

1 Like