Gnome-desktop wont start with passthrough GPU

HI all,

This is my first topic, so please help me out to put it in the right categories :smiley:

I’ve been trying to set up a LizardByte/Sunshine server as a vm running Ubuntu 22.04 on my R710, and I had great success while using CPU encoding, but it doesn’t quite cut it for 1080p streaming.
So I’ve been trying to passthought my gt210(yes it’s fricking old, I know) to the vm, and through the bazillion guides online I was able to get it working:

lzampier@dev-vm:~$ nvidia-smi
Tue Jul 18 20:39:11 2023       
+------------------------------------------------------+                       
| NVIDIA-SMI 340.108    Driver Version: 340.108        |                       
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce 210         Off  | 0000:01:00.0     N/A |                  N/A |
| N/A   65C    P0    N/A /  N/A |      2MiB /  1023MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Compute processes:                                               GPU Memory |
|  GPU       PID  Process name                                     Usage      |
|=============================================================================|
|    0            Not Supported                                               |
+-----------------------------------------------------------------------------+

But, my problem now is, I can’t get GDM or Ubuntu-desktop to start with it, lightdm works tho, this is the dmesg errors I get when I try to start any of the two:

[  203.483991] audit: type=1400 audit(1689722766.339:50): apparmor="DENIED" operation="capable" class="cap" profile="/snap/snapd/19457/usr/lib/snapd/snap-confine" pid=3930 comm="snap-confine" capability=12  capname="net_admin"
[  203.484007] audit: type=1400 audit(1689722766.339:51): apparmor="DENIED" operation="capable" class="cap" profile="/snap/snapd/19457/usr/lib/snapd/snap-confine" pid=3930 comm="snap-confine" capability=38  capname="perfmon"
[  203.927873] xdg-desktop-por[4021]: segfault at 0 ip 0000000000000000 sp 00007ffc38762708 error 14 in xdg-desktop-portal-gnome[563a4927e000+16000]
[  203.927892] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.

I’m mostly trying to use X because I know my controller and sunshine play nicely with it. Also ran nvidia-xconfig.

What I’m missing here? is the gpu just _to_old _ for gnome?