Virt-manager: Difference between revisions
m Added a note for fixing firewall issues |
SummerTime (talk | contribs) Unable to find 'efi' firmware |
||
| Line 66: | Line 66: | ||
name = "Vanilla-DMZ"; | name = "Vanilla-DMZ"; | ||
}; | }; | ||
== Troubleshooting == | |||
=== Unable to find 'efi' firmware === | |||
The following guide is to fix the following error which will occur when starting a virtual machine after NixOS upgrade: | |||
<code>Error: Error starting domain: operation failed: Unable to find 'efi' firmware that is compatible with the current configuration</code> | |||
Solution: | |||
# Delete old generations: <code>nix-collect-garbage -d</code> | |||
# Find where the EFI boot loaded file is located: <code>find /nix/store/ -maxdepth 1 -type d -name "*qemu*" | xargs -I {} find "{}" -type f -name "edk2-x86_64-secure-code.fd"</code> Find the dir holding the latest qemu. The directory should be something like: <code>xbfjilai721rzd9rf9dhhpv03xza4xp4-qemu-9.1.3</code>. Take a note of this directory name. | |||
# Open VM in virt-manager, go to XML and within the <code><os ...></code> tag: | |||
## Edit <code><loader ...></code> with the above directory name | |||
## Edit <code><nvram ...></code> with the above directory name. | |||
[[Category:Virtualization]] | [[Category:Virtualization]] | ||