My way of doing single gpu passthrough the simplest way, I've gathered many sources together to make the perfect Single GPU passthrough guide the simplest and easiest way.
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-Preparation-and-placing-of-ROM-file) 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.
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-Preparation-and-placing-of-ROM-file) which said to use
chown -R 660
instead.The total list of things I tried between my initial problem and solving it were:
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.