Passthrough NVIDIA RTX 2070 super max Q?

Hi!
I finally decided to make qubes os my main operating system, abandoning that boring windows (which I will still use only for gaming until I find some other system that satisfies me from the gaming point of view).

I would like to exploit the hadrware of my laptop as much as possible, and I wanted to do a passthrough of the gpu on my main vm, so as not to rape my poor cpu too much.

Laptop Specs
CPU: intel core 7-10750H 2.60Hz
CPU: NVIDIA GeForce RTX 2070 SUPER Mobile / Max-Q
Ram: 24839mb

QubeOS version: R4.2.3 based on debian 12
Bios E16V1IMS 112
Kernel 6.6.63-1

my bios supports VT-d, but I still have to check if it has the option to disable Optimus

I have never performed this type of operation and, before doing damage, I wanted to understand if it was possible to perform the passthrough of the ma 2070 on a debian vm? are there any counter indications? and if so, how can I proceed to enable it?

from what i know qubes does not handle well NVIDIA Optimus, giving problems of instability and surely i can not disable the integrated card, i also imagine that i have to use different divers from those provided by nvidia and use open sources

Ps. Since i installed qubes 4.2.3, i notice a strange flashing glitch that changes the colors of my screen. this happens during the first boot of the desktop and, i still have not understood what triggers it, during normal use. It often happens with the cursor near the edges of a card or the monitor, and disappears as soon as you switch to another card.
all this happens exclusively on my laptop screen, if used on external monitors all this does not happen.
i am really very confused about it, i tried to change the refresh rate of the screen being exaggerated by default (300hz), and to start qubes with previous kernels, and to start windows to verify that the screen was not damaged, and i do not see any unusual errors on the system.
Has anyone else encountered this problem?
(I attach some photos hoping you can understand a little)



I thought that is bad solution, all other your qubes will still do not use the GPU, secondary GPU can be used inside the any user qube for improve performance.

For some reasons my i7-8k limited for 2.12Hz, but it’s enough for my daily tasks.

yes, but you can passthrough ony for 1 qube at the same time, using pci features

Seamless GPU passthrough on Qubes OS with VirtualGL. Shortly. You have to hide your GPU pci using kernel params, and use gui to connect your GPU into AppWM.

Not sure about that, above i wrote the reason why not good idea use main GPU inside the dom0. Also try to read this What is the status of iGPU support for Qubes?

I am aware that I can only use my 2070 on one vm, since it is not used in any way by qube, it is fine with me even if only on one vm.
Personally I would install it on the work one, let’s say, where I spend most of my time. so as not to have a more fluid vm, even just trivially for playing videos or a movie. I am aware of the security risk but I don’t think I need it for what I do, and since it is not used it seemed like a good thing to use it to lighten the main vm and the PC.

Thank you, I didn’t know you could enable the integrated one on all vms, I will immediately find out, I was convinced it did it by default.

I also noticed the same thing, I can only use 2.6 Hz, I have no idea why, it’s on my list of things to study to better understand this operating system

generally I am also quite satisfied, but basically I don’t work in IT, cyber security, programming etc… I am just an enthusiast. in everyday life I sometimes need a little more push. so if it is possible and it doesn’t cause too many problems I think I will try this solution and see how I get on, at most I will go back to the old configuration.

Thanks! now in the next few days I’ll study everything well, it seems a bit complex and I don’t want to do stupid things. I’m realizing that I have some important gaps to fill on qubes os, I’m quite new to this world, but I’m really passionate about it.

For the problems related to Optimus, I think that alternating the two cards, and the iGPU already being used by qubes could cause problems, but it’s my hypothesis, I’m not sure that this happens.
I’m starting to have a doubt, if I decided to assign my GPU to a vm, would I have limitations in using the iGPU on other machines, or in general in the system?

dom0 use iGPU all the time, other qubes can’t use iGPU, your secondary GPU could be assigned to any HVM user qube (people usually use it for windows qube). All other qubes can use only CPU.