What graphics devices do you have?
Nvda rtx 3060 and intel i5 11th gen integrated graphics
Oh cool I have an RTX 3060 as well, but AMD’s integrated graphics. Before blacklisting the dgpu, could qubes detect both graphics devices?
How do i check?
I went into qube manager settings for one of my templates. In the devices tab i can see a bunch of tiger lake devices. Unsure which is integrated graphics tho. I do see my rtx 3060 and nvidia audio driver
You run ‘lspci’ in dom0 and look for graphics adapters (they’re called VGA adapters I think). Is your igpu connected to an output?
I only see 1 VGA and its nvidia. What do you mean by igpu connected to an output?
As per the beginning of the original post, both your dgpu (nvidia) and igpu (intel) need to be connected to something. If your monitor has two inputs, then you can connect both your igpu and dgpu to your monitor (now depending on your motherboard you might have to do some configuration. On my system I need to go into the bios and set the igpu as my primary video adapter otherwise the system won’t POST).
Also be prepared to reset your motherboard if anything goes wrong. Research that beforehand.
No but seriously I’m not doing gpu passthrough anymore because after setting it up and using it a few times, one morning my monitor went blank while trying to boot up the qube that was supposed to have the gpu passed through to it, so I shut my PC down using the power button. On booting it back up (and changing to the DGPU output) I got this: https://youtu.be/8yfwn20XUes Don’'t know what caused it specifically (might be a bad HDMI cable, who knows) but yeah be careful. Fortunately my motherboard reset itself after failing to POST a few times.
By connected to something do you mean switching between switchable graphics and discrete graphis in UEFI settings?
for resetting my motherboard, does BIOS self healing or BIOS back flash in uefi settings do anything?
I switched to switchabe graphics in uefi and now i see 2 vga. One intel and one nvidia.
Edit: second monitor works
Okay so this completely went over my head. My laptop has a mux switch and i was using discrete graphics this whole time. does this mean i was using my nvidia card instead of integrated intel gpu?
I got my gpu passthrough to work despite skipping the ‘integration with qubes os’ part. Is that necessary?
How do i increase ram on my standalone? Its greyed out as 4000mb in qubes settings.
Gpu passthrough only works when switchable graphics are selected instead of discrete graphics on uefi settings (to show both gpus obviously(
However external monitor doesnt work unless…
Either
-
Discrete graphics is set
-
Or switchable graphics is set but rd.qubes.hide-pci:0a:00.0 is removed from kernel command line at boot
is it not possible to use gpu passthrough and external device at the same time?
im stuck between choosing the above two because i want to use 2nd monitor
Edit: just tested suspend to RAM and strangely it works! Never worked for me before.
Did you shutdown the qube before trying to change the memory?
You want to use external monitor in dom0?
Maybe the external monitor port is wired directly to dGPU so if you passthrough dGPU to the qube then you won’t be able to use external monitor in dom0.
But you can try to passthrough iGPU to the qube instead of dGPU and use dGPU in dom0, then you may be able to use external monitor in dom0.
You can use virtualgl in your qube with GPU passthrough so you won’t need separate monitor for it:
But it’s all is just a guess.
Thanks. I will have to investigate further.
What is the purpose of this step exactly?
Yes i did. Its powered ofd but still greyed out
You need to tell Xorg how it should use your GPU and monitor.
Are you trying to change the “Max memory” and not “Initial memory”?
If you disable memory balancing (unchecked “Included in memory balancing”) then “Max memory” will be grayed out because it’s not used.
It’s better to disable the memory balancing for HVM qubes with attached PCI devices since it could cause some problems with them.
Hi,
I’ve sort of successfully passed through my GPU, everything works post boot, however the problem is getting past the boot screen.
I’ve found I can only login if I disconnect the monitor from my passed-through GPU, then reconnect after login.
I’ve traced this to Xorg erroring, and stopping LightDM from running.
Xorg Log (pwd= qubes):
It looks like Xorg is trying to configure settings with Nvidia / Nouveau drivers, when I have passed through my Nvidia GPU.
My current setup is that I have one monitor plugged straight into the motherboard using my AMD CPUs integrated graphics, and an external monitor plugged into my passed-through Nvidia GPU dedicated to the Gaming Qube.
I thought the solution would be to simply disable Nouveau drivers from loading, so have applied the following parameters to the Kernel Commandline:
GRUB_CMDLINE_LINUX="… rhgb quiet rd.qubes.hide_pci=01:00.0 nouveau.modeset=0 rd.driver.blacklist=nouveau "
Even after these changes, it seems Xorg is still trying to work with the nouveau drivers, and giving me the same error on login.
I’ve seen there is mention of editing/creating Xorg.conf files, however I haven’t done so as it looked like that was meant for the Gaming Qube, rather than dom0.
Any help would be appreciated thank you.