pve安裝intel網卡(支持sr-iov):
參考:
PVE開啟SR-IOV記錄 https://koolshare.cn/thread-158441-1-1.html
Proxmox VE(PVE)開啟IOMMO並開啟網卡(82576)SRIOV功能 https://blog.csdn.net/shuye216/article/details/108942595
首先pve需要安裝intel igb網卡驅動,然后將物理網卡(母網卡)虛擬為VF(virtual function),最后直通給虛擬機,然后在虛擬機中安裝網卡驅動,疑問母卡還是否可用????? 所有VF加起來的帶寬不能超過母卡的pcie-x1或pcie-x4或pcie-x16的物理帶寬(也就是說不要模擬過多的vf)
echo "options igb max_vfs=6,6,6,6,6,6" > /etc/modprobe.d/igb.conf
我這里有6個intel 82576網卡,每個網卡虛擬出6個,總共是36個虛擬網卡
dmesg | grep 82576
[ 2.527369] igbvf 0000:07:10.1: Intel(R) 82576 Virtual Function
[ 2.532109] igbvf 0000:07:10.3: Intel(R) 82576 Virtual Function
[ 2.535583] igbvf 0000:07:10.5: Intel(R) 82576 Virtual Function
[ 2.539074] igbvf 0000:07:10.7: Intel(R) 82576 Virtual Function
[ 2.542565] igbvf 0000:07:11.1: Intel(R) 82576 Virtual Function
[ 2.546055] igbvf 0000:07:11.3: Intel(R) 82576 Virtual Function
[ 2.768637] igbvf 0000:07:10.0: Intel(R) 82576 Virtual Function
[ 2.771872] igbvf 0000:07:10.2: Intel(R) 82576 Virtual Function
[ 2.775080] igbvf 0000:07:10.4: Intel(R) 82576 Virtual Function
[ 2.778273] igbvf 0000:07:10.6: Intel(R) 82576 Virtual Function
[ 2.781481] igbvf 0000:07:11.0: Intel(R) 82576 Virtual Function
[ 2.784682] igbvf 0000:07:11.2: Intel(R) 82576 Virtual Function
[ 2.920650] igbvf 0000:05:10.0: Intel(R) 82576 Virtual Function
[ 3.128489] igbvf 0000:05:10.2: Intel(R) 82576 Virtual Function
[ 3.412422] igbvf 0000:05:10.4: Intel(R) 82576 Virtual Function
[ 3.540328] igbvf 0000:05:10.6: Intel(R) 82576 Virtual Function
[ 3.580426] igbvf 0000:05:11.0: Intel(R) 82576 Virtual Function
[ 3.608433] igbvf 0000:05:11.2: Intel(R) 82576 Virtual Function
[ 3.940652] igbvf 0000:05:10.1: Intel(R) 82576 Virtual Function
[ 3.960418] igbvf 0000:05:10.3: Intel(R) 82576 Virtual Function
[ 3.976422] igbvf 0000:05:10.5: Intel(R) 82576 Virtual Function
[ 3.992427] igbvf 0000:05:10.7: Intel(R) 82576 Virtual Function
[ 4.008435] igbvf 0000:05:11.1: Intel(R) 82576 Virtual Function
[ 4.024426] igbvf 0000:05:11.3: Intel(R) 82576 Virtual Function
[ 4.359456] igbvf 0000:04:10.0: Intel(R) 82576 Virtual Function
[ 4.380383] igbvf 0000:04:10.2: Intel(R) 82576 Virtual Function
[ 4.400395] igbvf 0000:04:10.4: Intel(R) 82576 Virtual Function
[ 4.424404] igbvf 0000:04:10.6: Intel(R) 82576 Virtual Function
[ 4.440398] igbvf 0000:04:11.0: Intel(R) 82576 Virtual Function
[ 4.464396] igbvf 0000:04:11.2: Intel(R) 82576 Virtual Function
[ 4.795365] igbvf 0000:04:10.1: Intel(R) 82576 Virtual Function
[ 4.820409] igbvf 0000:04:10.3: Intel(R) 82576 Virtual Function
[ 4.836453] igbvf 0000:04:10.5: Intel(R) 82576 Virtual Function
[ 4.856446] igbvf 0000:04:10.7: Intel(R) 82576 Virtual Function
[ 4.872448] igbvf 0000:04:11.1: Intel(R) 82576 Virtual Function
[ 4.888444] igbvf 0000:04:11.3: Intel(R) 82576 Virtual Function
pve安裝博通網卡:
待補充