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:
    # virsh nodedev-list | grep pci
    Copy to Clipboard Toggle word wrap
    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):
    pci_8086_****
    Copy to Clipboard Toggle word wrap

    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:
    # virsh nodedev-reattach pci_8086_3a6c
    Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat