all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Niels Hendriks <niels@rootnet.nl>
To: pve-devel@lists.proxmox.com
Subject: qm showcmd shows incorrect PCI device address
Date: Tue, 28 Jul 2026 12:18:37 +0200	[thread overview]
Message-ID: <2821634225-1232228@mx.rootnet.nl> (raw)

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

             reply	other threads:[~2026-07-28 13:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-28 10:18 Niels Hendriks [this message]
2026-07-29 10:25 ` qm showcmd shows incorrect PCI device address Fiona Ebner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2821634225-1232228@mx.rootnet.nl \
    --to=niels@rootnet.nl \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal