GPU not usable by VM?

Hi,

Following my thread regarding Luminar on a VM I decided to jump, bought a new motherboard, a graphics card to have a ddicated GPU, and I am now struggling to setup to windows WM…

I just bought a radeon 5600XT for this purpose…

When I finish the steps and want to create the VM, here is what I’m told…

I had the same problem with an Ubuntu VM. What worked for me was to create the VM without adding a GPU. Start the VM to install the OS. Shutdown the VM then go to devices and add a PCI device. Pick your GPU from the list and it should be fine.

Thanks I will try that.

It “starts” but I get a shell through SPICE, the installer does not start…

Do you have one or more GPU?
I recall reading that the host needs a GPU and that you can only pass a GPU through to a VM if you have more than one in the system.

Perhaps someone more knowledgeable in the matter can corroborate if that’s still the case or correct it if it’s not.

Offical docs source:

Yes i havr one embedded gpu in my cpu and i bought an extra gpu. Bith are recognized as when I set up the vm I have to choose which gpu will be used.

But now it seems the install does not start…

Are you trying to start the VM that gave you the validation error? I had to delete the VM after I got the error start fresh and follow the steps I stated above.

You’re right @roberth58 I will start fresh

Ok I started fresh without seleting a GPU.
I checked the thing regarding making sure there was a display, and all I get is this, the installation does not start.
Is there a possibility that I cannot install windows with 2CPU, 2 Cores, 2 Threads? Should I change these settings?

That’s the UEFI Shell, a good sign all things considered, since you’re getting output from the VM.

During boot press the button to enter the BIOS (often F1 or DEL) or use whatever button is assigned to the boot menu, and choose/promote your ISO or equivalent install media.

Ok and if I can’t enter the bios, is there a commande to launch from the shell to boot on the mapped cdrom?

I succeeded installing windows 10.
Now I want to add the GPU.
If I try to modify the VM whild it’s running I get this message.

Should I stop the VM, add the GPU and restart it?

Yes make changes when the VM is stopped.

Ok I can modify when the VM is stopped. But which one should I choose?
The 5600XT is supposed to be (I think) more powerful thant the integrated renoir GPU.

I tried to relaunch just after assigning the GPU to the VM. Now I get this weird screen…

I ended up restarting truenas and when I try to start the VM here’s what I get

To use a GPU inside a VM, need to:

  1. Isolate it under ˋsystem settings → advanced → Isolated GPU Device(s)ˋ
  2. Reboot
  3. Create The VM (if you are already having issues with the system complaining don’t use the “easy” select option in the edit section)
  4. Open the devices menu of your VM and pass through both the dedicated GPU and it’s integrated audio controller (if they are listed separately, add two devices)
  5. Start up the VM

Windows 11 will not work out of the Box, because it needs a virtual TPM. That can be added via the command line and there is an open Feature Request you can vote on Add "Machine Type Q35" and "TPM 2.0" options to VMs - #17 by SeaFox
But for now Windows 10 is better for making sure everything else works

Edit: Issues beyond that might have to do with IOMMU groups or your GPU having even more “devices” bundled together that all have to be passed through together. It’s also worth checking whether IOMMU, SR-IOV, and other virtualization stuff is explicitly enabled in the UEFI. Especially IOMMU when set to auto often does not behave well and should be explicitly enabled

On Discourse boards the url in the topic list will be the first unread post for you, or the last post if you have read all replies. Also when reading a thread your browser’s address bar will change to reflect the post you are viewing in the thread (numbers at end after last slash).

To make sure you link to a particular post in a thread (like the top one, where the feature request is), click the date notation in the upper right corner of the specific post to get that link.

Thanks I didn’t even know there was some settings to isolate the GPU (outside the VM settings).
So I deleted that VM, rebooted, and tried that.
It gives me this notice

Check your IOMMU groups.