# Virt-Manager can't see ovmf

**URL:** <https://forum.systemcrafters.net/t/virt-manager-cant-see-ovmf/804>\
**Category:** Guix\
**Created:** [June 21, 2024, 1:12am UTC](https://forum.systemcrafters.net/t/virt-manager-cant-see-ovmf/804 "2024-06-21T01:12:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tatd](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@tatd](https://forum.systemcrafters.net/u/tatd)\
**Post date:** [June 21, 2024, 1:12am UTC](https://forum.systemcrafters.net/t/virt-manager-cant-see-ovmf/804/1 "2024-06-21T01:12:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![altomcat](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.systemcrafters.net/altomcat/32/583_2.png) [@altomcat](https://forum.systemcrafters.net/u/altomcat)\
**Post date:** [June 27, 2024, 6:41pm UTC](https://forum.systemcrafters.net/t/virt-manager-cant-see-ovmf/804/2 "2024-06-27T18:41:10Z")

</div>

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

```auto
 (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](https://guix.gnu.org/manual/en/html_node/Base-Services.html) 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

```auto
<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

---

<div class="post-metadata">

**Author:** ![tatd](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@tatd](https://forum.systemcrafters.net/u/tatd)\
**Post date:** [June 28, 2024, 4:06pm UTC](https://forum.systemcrafters.net/t/virt-manager-cant-see-ovmf/804/3 "2024-06-28T16:06:54Z")

</div>

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.
