目录

HPGen9做万兆网卡直通时报错

vi /etc/grub2.cnf

1
2
3
在内核那一行添加”intel_iommu=on“
重启后检查:cat /proc/cmdline | grep iommu

dmesg|grep -e DMAR -e IOMMU

1
报错:vfio-pci 0000:04:00.3: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor.

根据报错在hp论坛查找到该错误信息

1
2
3
4
5
6
https://support.hpe.com/hpsc/doc/public/display?sp4ts.oid=7271259&docId=emr_na-c04781229&docLocale=en_US

https://community.hpe.com/t5/ProLiant-Servers-ML-DL-SL/Device-is-ineligible-for-IOMMU-domain-attach-due-to-platform/td-p/6751904

通过lspci -vvv | grep Ethernet可以查看到网卡的具体型号

解决方案:

https://cdn.jsdelivr.net/gh/jiuchan/pic1.blog.mulinux.com/img/image-20201117124038967.png

发现没有Disable HP Shared Memory features这一项,经询问惠普后知道要更新bios固件和ixgbe固件

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13

https://support.hpe.com/hpsc/swd/public/detail?sp4ts.oid=5283363&swItemId=MTX_bde4ae8828c94863924ce295fd&swEnvOid=4184#tab3

https://support.hpe.com/hpesc/public/home/driverHome?pmasr=0&sp4ts.oid=5283363

下载的驱动程序:kmod-hp-ixgbe-5.3.5.1-5.rhel7u4.x86_64.rpm/firmware-nic-intel-1.15.9-1.1.x86_64.rpm

查看网卡类型:ethtool -i ens3f0

查看网卡驱动信息:modinfo ixgbe

也可以自己在intel官网下载ixgbe驱动更新。参考:https://www.cnblogs.com/mulinux/p/9354478.html