No video after switching to passed through GPU

sgt_jamez

Member
Jun 8, 2021
19
2
8
54
As a relative newcomer to Linux VMs, I'm sure there's something simple I'm missing. I'm hoping this community can help.

I can get Nobara installed and running with the default display and the NoVNC console. And then once I add the passed through GPU with the line
Code:
hostpci0: 0000:2b:00,pcie=1
and still have the NoVNC console, install the drivers for the GPU. I also install NoMachine so I have a way in after turning off the default display. The display manager sees the GPU and I do have a dummy plug on the GPU. If I make that display primary in the display manager, stop the VM, kill the default display in the VM config and make the GPU primary with
Code:
hostpci0: 0000:2b:00,pcie=1,x-vga=1
NoMachine no longer works.

What steps do I need to follow to configure the VM so I can use NoMachine (and ultimately Sunshine) to connect to the GPU as primary and no default dislpay?