create a GPU passthrough

OuDayas

Cadet
Joined
Feb 3, 2023
Messages
2
Hi, im using truenas scale for about 1 month, and now Im trying to make a simple gaming vm, but im having a lot of issues creating a vm,
when I try to create a vm with the gpu, it give me an error about enable the iommu, sometime idk why, that error doesn't appear, but when I "created" that vm, I cannot connect for example through "parsec", or if I connect with the vnc, sometime it disconnect from it, and im stuck with a resolution of 800x600, im unable to change it, even if I edit in the devices the resolution. i have the same issue even for windows server 2019, same issues, is there a way to fix that?
 

Basserra

Dabbler
Joined
Sep 21, 2020
Messages
28
Hi @OuDayas First off, you would need IOMMU to be supported by your CPU & mobo, so please share those models. If it is supported, it needs to be enabled in the mobo's BIOS; finally you need to verify your GPU/GPU-audio is not in an 'IOMMU group' with anything else. There are commands to check if IOMMU is enabled (I can't recall them off hand) and lspci -v can show the group numbers. Secondly, parsec would require that the GPU driver is installed and is connected to a display (you can get around the display issue w/o a monitor with a 'HDMI headless dongle' from Amazon or whatever).
Regarding the low resolution on VNC, you need to install virtio-win drivers from Fedora, then changing the resolution in Windows should work.
 
Top