public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* qm showcmd shows incorrect PCI device address
@ 2026-07-28 10:18 Niels Hendriks
  2026-07-29 10:25 ` Fiona Ebner
  0 siblings, 1 reply; 2+ messages in thread
From: Niels Hendriks @ 2026-07-28 10:18 UTC (permalink / raw)
  To: pve-devel

Hello,


As is probably known, there are quite a few issues with reliable PCI passthrough.
We've been able to get PCI passthrough working well, with one caveat: if GPU 1 is assigned to VM A, and is then re-assigned to VM B, it sometimes does not come up properly. The error we get within the VM is that the GPU has "fallen off the bus".
We have tried many things, but the only way to reliably resolve this is to run a pre-start hookscript that removes the PCI device and re-discovers it.


We use a resource mapping to simplify the VM configs, and to determine which device has to be removed and re-discovered, we use the "qm showcmd <vmid>" command.
However, we found out this does not work reliably. the showcmd command actually always appears to show the first PCI address of the resource mapping. And if >1 GPU is present it would show the first addresses of the GPU resource mapping.


This appears to be caused by this change: https://www.mail-archive.com/pve-devel@lists.proxmox.com/msg27318.html


This appears to be an intended change, but I don't know if my usecase was considered when the change was made.
Is there a different way to determine the PCI address(es) that will be used when starting a VM using a resource mapping? Or is this actually an unintended side-effect?


Alternatively we could remove the resource mapping of course, but if possible we would like to avoid doing that (for a simpler VM configuration)


Thank you
Niels Hendriks

__________________________________________________________
RootNet B.V.

Helpdesk: 024 3500112 (9:00 - 17:30)
Service meldingen: rootnet.network

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: qm showcmd shows incorrect PCI device address
  2026-07-28 10:18 qm showcmd shows incorrect PCI device address Niels Hendriks
@ 2026-07-29 10:25 ` Fiona Ebner
  0 siblings, 0 replies; 2+ messages in thread
From: Fiona Ebner @ 2026-07-29 10:25 UTC (permalink / raw)
  To: pve-devel; +Cc: niels

Just for the record, this was already answered in the forum:
https://forum.proxmox.com/threads/qm-showcmd-shows-incorrect-pci-device-address.185370/

And a bugzilla issue was opened afterwards:
https://bugzilla.proxmox.com/show_bug.cgi?id=7857

Best Regards,
Fiona

Am 28.07.26 um 3:07 PM schrieb Niels Hendriks:
> Hello,
> 
> 
> As is probably known, there are quite a few issues with reliable PCI passthrough.
> We've been able to get PCI passthrough working well, with one caveat: if GPU 1 is assigned to VM A, and is then re-assigned to VM B, it sometimes does not come up properly. The error we get within the VM is that the GPU has "fallen off the bus".
> We have tried many things, but the only way to reliably resolve this is to run a pre-start hookscript that removes the PCI device and re-discovers it.
> 
> 
> We use a resource mapping to simplify the VM configs, and to determine which device has to be removed and re-discovered, we use the "qm showcmd <vmid>" command.
> However, we found out this does not work reliably. the showcmd command actually always appears to show the first PCI address of the resource mapping. And if >1 GPU is present it would show the first addresses of the GPU resource mapping.
> 
> 
> This appears to be caused by this change: https://www.mail-archive.com/pve-devel@lists.proxmox.com/msg27318.html
> 
> 
> This appears to be an intended change, but I don't know if my usecase was considered when the change was made.
> Is there a different way to determine the PCI address(es) that will be used when starting a VM using a resource mapping? Or is this actually an unintended side-effect?
> 
> 
> Alternatively we could remove the resource mapping of course, but if possible we would like to avoid doing that (for a simpler VM configuration)
> 
> 
> Thank you
> Niels Hendriks
> 
> __________________________________________________________
> RootNet B.V.
> 
> Helpdesk: 024 3500112 (9:00 - 17:30)
> Service meldingen: rootnet.network





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-29 10:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-28 10:18 qm showcmd shows incorrect PCI device address Niels Hendriks
2026-07-29 10:25 ` Fiona Ebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal