Issue with GPU passed through to Ubuntu

photonate

Member
Jan 21, 2021
19
4
8
34
Hey all,

After much time and stress I am have (I think) properly configured my 1650 Super GPU passthrough in Proxmox 6.3-2 following several different guides. My ultimate goal is to use it to transcode in an Ubuntu VM running a Plex Docker, which I have seen other people do successfully.

I have a Windows VM that I have configured that works perfectly with the GPU, drivers and all. Everything works as expected, and I can even benchmark the GPU in the VM and get decent results. However nVidia support for Docker in Windows is very early, and I'm super happy with my Ubuntu Docker experience in my other VMs.

When I recreate my Windows VM settings into an Ubuntu VM I either don't get any screen, or I get very poor performance from the GPU. If I enable Primary GPU, I dont get any output when I Console or VNC into my VM. If I dont enable Primary GPU, I get very poor performance when I do some benchmarks, and nvidia-smi is showing that no processeses are using the card.

agent: 1
args: -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=proxmox,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_reset,hv_vpindex,hv_runtime,hv_relaxed,hv_synic,hv_stimer,hv_tlbflush,hv_ipi,kvm=off'
bios: ovmf
boot: order=scsi0;ide2;net0
cores: 4
efidisk0: local-lvm:vm-104-disk-1,size=4M
hostpci0: 03:00,pcie=1,x-vga=1
ide2: local:iso/ubuntu-20.04.1-desktop-amd64.iso,media=cdrom
machine: q35
memory: 8048
name: UbuntuMedia
net0: virtio=62:C1:96:33:DB:B8,bridge=vmbr0,firewall=1
numa: 0
onboot: 1
ostype: l26
scsi0: local-lvm:vm-104-disk-0,iothread=1,replicate=0,size=80G,ssd=1
scsihw: virtio-scsi-single
smbios1: uuid=aa21e3df-d6f2-4c02-bf22-e45258f5f544
sockets: 1
startup: order=4,up=30
vga: qxl,memory=64
vmgenid: 42cfe84a-6387-4029-b056-5545aa2cc66a

When I have primary GPU disabled, I am able to get my Plex Docker working, and transcoding apparently works, but again in nvidia-smi I don't see any processes running when I believe I should.


In my Windows VM I can run the Heaven Benchmark and get 70-80 fps, but only 2 in Ubuntu. Also Plex is using 100% CPU to transcode, and not using the GPU, even though it is enabled.

Any suggestions or guesses out there? I've scoured the Proxmox Wiki, as well as the ArchLinux wiki that gets referenced a lot, but I am starting run out of guesses.

Thanks!
 
Last edited:

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!