How to passthrough GPU to Nobara VM?

sgt_jamez

Member
Jun 8, 2021
19
1
8
54
System Specs:
Proxmox v8.2.4 running headless
Kernel 6.8.12-1-pve
CPU - AMD Ryzen 7 3700X 8-Core Processor
GPU - GeForce RTX 2060 [10de:1e89] (I forget the brand/model) - has HDMI dummy connector plugged in
Mobo - Asrock X470D4U
64Gb RAM

I have a Windows 10 gaming VM up and running with GPU passthrough based on I think Proxmox v6 setup guides so some config data is old. But it does work. I want to come off Windows because Micr0$h@ft can suck it. I am wanting to run a Nobara VM with the RTX2060. I cam currently using Moonlight/Sunshine to access the Win 10 gaming VM.

I've gotten Nobara 40 installed and I can access it from my Win 10 desktop via RDP to xRDP on Nobara. The trouble happens when I enable the passthrough GPU. I get the xRDP login screen, and then it goes black. The cursor is an arrow in the upper left quadrant of the screen but an X everywhere else. This is, I believe, because xRDP is running at 1024*768. When I RDP in without the GPU passthrough, I get the small display in the corner. I know the VM is running. When I launch the VM (with passthrough) from the CLI, no error messages are returned. So it seems like the OS is working but the GPU is not.

Should I be using something other than RDP/xRDP to access Nobara?

Here's the VM config that's working in Windows 10:
Code:
agent: 1
args: -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=NV43FIX,-hypervisor'
bios: ovmf
boot: order=scsi0;ide2;net0;ide0
cores: 14
cpu: x86-64-v3,hidden=1,flags=+pcid
efidisk0: VM_Storage:vm-101-disk-0,efitype=4m,pre-enrolled-keys=1,size=1M
hostpci0: 0000:2b:00,pcie=1,x-vga=1
ide0: none,media=cdrom
ide2: none,media=cdrom
machine: pc-q35-8.0
memory: 16834
meta: creation-qemu=7.0.0,ctime=1662611076
name: Win10-VM
net0: virtio=C6:06:63:FD:1D:68,bridge=vmbr0,tag=10
numa: 0
ostype: win10
scsi0: VM_Storage:vm-101-disk-1,cache=writeback,discard=on,size=120G
scsi2: /dev/disk/by-id/ata-TOSHIBA_MG06ACA10TEY_Y9S0A03VF9YF,size=9314G
scsihw: virtio-scsi-single
smbios1: uuid=94b57d4c-102f-4923-932c-d0b7f3c19799
sockets: 1
vga: none
vmgenid: 2ef92af1-0146-4d47-8a52-c526426ab56e

Here's the VM for Nobara that is not working:
Code:
agent: 1
bios: ovmf
boot: order=scsi0;ide2;net0
cores: 14
cpu: host
efidisk0: VM_Storage:vm-250-disk-0,efitype=4m,size=1M
hostpci0: 0000:2b:00,pcie=1,x-vga=1
ide2: ISOStorage:iso/Nobara-40-KDE-2024-08-15.iso,media=cdrom,size=3916482K
machine: q35
memory: 4096
meta: creation-qemu=9.0.2,ctime=1724620988
name: Nobara40-KDE
net0: virtio=BC:24:11:5A:72:2B,bridge=vmbr0,tag=10
numa: 0
ostype: l26
scsi0: VM_Storage:vm-250-disk-1,discard=on,iothread=1,size=32G
scsihw: virtio-scsi-single
smbios1: uuid=a8a20a04-fada-43ac-93ac-c0e16d8b2ad6
sockets: 1
vga: none
vmgenid: d73c5406-22f1-460d-aad0-189da6ab571a

Output of /proc/cmdline:
Code:
BOOT_IMAGE=/boot/vmlinuz-6.8.12-1-pve root=/dev/mapper/pve-root ro quiet amd_iommu=on iommu=pt hugepagesz=1G default_hugepagesz=2M nofb nomodeset video=efifb:off

Output of /etc/modules:
Code:
vifo
vifo_iommu_type1
vifo_pci
vifo_virqfd <-- I just read that this no longer exists, will remove

Output of /etc/modprobe.d/pve-blacklist.conf:
Code:
blacklist nvidiafb

Output of /etc/modprobe.d/vifo.conf:
Code:
options vfio-pci ids=10de:1e89,10de:10f8 disable_vga=1

Is anyone else running Fedora/Nobara as a VM with nVidia passthrough? Please share your setup and what do you use to connect to the VM?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!