15.4. Removing a PCI passthrough device for host re-use


Perform the following steps to remove a PCI passthrough device so that the host regains full access to the device:
  1. List all PCI devices

    For a list of only PCI devices, run the following command:
    Copy to Clipboard Toggle word wrap
    # virsh nodedev-list | grep pci
    Each PCI device is identified by a string in the following format (where 8086 is a variable that in this case represents Intel equipment, and **** is a four digit hexadecimal code specific to each device):
    Copy to Clipboard Toggle word wrap
    pci_8086_****

    Note

    Comparing lspci output to lspci -n (which turns off name resolution) output can assist in deriving which device has which device identifier code.
  2. Remove and re-attach the device

    After removing the device either from the guest XML file or virt-manager, run the virsh nodedev-reattach command to return its use to the host, substituting your PCI device name that is designated for removal:
    Copy to Clipboard Toggle word wrap
    # virsh nodedev-reattach pci_8086_3a6c
Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat, Inc.