Starting VMs with attached GPUs w/ qm causes code 43 and crashes. Manually invoking kvm doesn't.

FuriousGeorge

Renowned Member
Sep 25, 2012
84
2
73
I don't mean manually as in 'qm start (vmid)'.

Instead I mean: 'qm showcmd (vmid) > foo; source foo'.

To put it another way, I can take the output of qm showcmd (vmid), paste it into my CLI, and successfully start the VM. However if I start it from the gui or using qm start, the GPU driver crashes in the guest.

The problem manifests as code 43 on the GPU in the guest. Initially I thought that this was caused by proxmox setting the hv_vendor_id to "proxmox" instead of Nvidia43Fix, because manually launching the VM with that change would prevent the problem, but I now see that I can set the hv_vendor_id to whatever I want, as long as I launch it from the cli by using the kvm command directly (again, qm start <vmid> does not help).

I'm completely stumped and could use a hint.

Thanks in advance.

-FG
 
Last edited:
Additional info:

I looked at the output of ps ax |grep kvm and I see that the invocation of kvm is identical to what I'm running manually, yet somehow is causing the code 43 on the GPU and occasional crashes. (probably more than occasional if I were to keep using the vm with no HW accelerated graphics)

Something is happening when the proxmox gui launches the VM instead, but I have no idea what that could be.
 
Last edited: