Hi I have tried to make a windows vm with gpu passthrough. There are 2 GPUs in the system, however i would like to use the main GPU for the vm. I have followed space invaders tutorial and have reached here (the vm is setup with windows using vnc).
When I try to passthrough the GPU i get this execution error:
internal error: qemu unexpectedly closed the monitor: 2020-06-14T14:16:02.116432Z qemu-system-x86_64: -device vfio-pci,host=0000:02:00.0,id=hostdev0,x-vga=on,bus=pci.0,addr=0x5,romfile=/mnt/disk1/Test/Zotac.RTX2080.8192.181009.rom: Failed to mmap 0000:02:00.0 BAR 3. Perfor