GPU issue creating a VM

I am pulling my hair out at this point. I just added a NVIDA 4070 to my box and I have been trying to create a VM to use as a whisper server. Everytime I select my GPU under the GPU section I get this error.

I have tried to use as an isolated GPU (system settings → advanced) and I have tried it without isolating it. I ensured GPU support was disabled in Apps.

Please any fixes would be great:
Error: Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/middlewared/main.py”, line 198, in call_method
result = await self.middleware.call_with_audit(message[‘method’], serviceobj, methodobj, params, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/main.py”, line 1466, in call_with_audit
result = await self._call(method, serviceobj, methodobj, params, app=app,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/main.py”, line 1417, in _call
return await methodobj(*prepared_call.args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/schema/processor.py”, line 187, in nf
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/schema/processor.py”, line 47, in nf
res = await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/plugins/system_advanced/gpu.py”, line 44, in update_gpu_pci_ids
verrors.check()
File “/usr/lib/python3/dist-packages/middlewared/service_exception.py”, line 70, in check
raise self
middlewared.service_exception.ValidationErrors: [EINVAL] gpu_settings.isolated_gpu_pci_ids: pci_0000_01_00_1, pci_0000_01_00_0, pci_0000_00_01_0, pci_0000_00_01_1 GPU pci slot(s) are not available or a GPU is not configured.

My system is Dragonfish-24.04.1.1
Epyc 7286
256gb Ram
8x WD Red drives
H12SSL Motherboard

Thank you

Tommy

Make sure that Truenas uses the ASPEED VGA adapter and not the RTX. Set the ASPEED in the BIOS as primary.

Then dont use the GPU section when creating the VM. Add the GPU and the Audio device later under “devices”.

Also in my case I have to disable “ensure display device”.

Finally, I usually have to reboot, before starting the VM for the first time.