---
title: 配置网卡直通时提示host doesn't support passthrough of host PCI devices的解决方法
description: "虚拟机配置SRIOV网卡直通时，提示\"host doesn't support passthrough of host PCI devices\"。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengwebs/troubleshooting/trouble/kunpengwebs_09_0011.html
sourcePath: /source/zh/kunpengwebs/troubleshooting/trouble/kunpengwebs_09_0011.html
indexId: ac7bad876704a87c956e1996c70f3d8b32d2d5b53b0ecf1f18bb148ac40175d971
---
# 配置网卡直通时提示host doesn't support passthrough of host PCI devices的解决方法

#### 问题现象描述

虚拟机配置SRIOV网卡直通时，提示"host doesn't support passthrough of host PCI devices"。


#### 关键过程、根本原因分析

虚拟机配置网卡直通必须开启SMMU/IOMMU。


#### 结论、解决方案及效果

1. 打开grub2.cfg文件。

```
vim /etc/grub.cfg
```


2. 添加以下内容。

```
iommu.passthrough=1
```


3. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
4. 重启服务器使配置生效。
