ilayna/Single-GPU-passthrough-amd-nvidia

qemu failed to find romfile

Bluepengie opened this issue · 0 comments

Per step one of this guide, I went to the linked wiki and followed steps 1 through 6. However, upon launching the VM and getting stuck at a black screen, I found in the logs the following:

2022-02-26T01:42:08.732223Z qemu-system-x86_64: -device vfio-pci,host=0000:2b:00.0,id=hostdev0,bus=pci.6,multifunction=on,addr=0x0,romfile=/usr/share/vgabios/gpu.rom: failed to find romfile "/usr/share/vgabios/gpu.rom" 2022-02-26 01:42:08.928+0000: shutting down, reason=failed
After asking r/VFIO for help, I found that my problem was fixed by doing:
chown 777 /usr/share/vgabios/gpu.rom

as opposed to step 6 of the linked wiki which said to use chown -R 660 instead.

The total list of things I tried between my initial problem and solving it were:

  • Changing the rom file to all lowercase
  • Disabling apparmor for libvirt and libvirt-aa-helper
  • chown 777 /usr/share/vgabios/gpu.rom

Since I tried again after each of these steps and kept getting the same log file error, I assume that it was that last chown line that was the problem. However, just in case it is a combination of the previous steps, I included them here.