ubantu18.04@Intel 82545EM 【安装文档】TRex流量分析仪保姆级安装指南--基于VMware虚拟机( 三 )

注:若此时输出信息为以下情况(报错“Installation cannot run with T defined and DESTDIR undefined”)
INSTALL-APP dpdk-test-eventdevINSTALL-MAP dpdk-test-eventdev.mapBuild complete [x86_64-native-linuxapp-gcc]Installation cannot run with T defined and DESTDIR undefined------------------------------------------------------------------------------ RTE_TARGET exported as x86_64-native-linuxapp-gcc--------------------------------------------Press enter to continue ...请先添加环境变量并再次执行[15]
步骤二

  • 选择[18]加载igb_uio模块
Unloading any existing DPDK UIO moduleLoading DPDK UIO modulePress enter to continue ...
  • 选择[19]加载VFIO module
Unloading any existing VFIO moduleLoading VFIO modulechmod /dev/vfioOKPress enter to continue ...
  • 选择[20]加载KNI module
Unloading any existing DPDK KNI moduleLoading DPDK KNI modulePress enter to continue ...
  • 选择[21]来创建Hugepage
Option: 21Removing currently reserved hugepagesUnmounting /mnt/huge and removing directoryInput the number of 2048kB hugepagesExample: to have 128MB of hugepages available in a 2MB huge page system,enter '64' to reserve 64 * 2MB pagesNumber of pages: 1024Reserving hugepagesCreating /mnt/huge and mounting as hugetlbfsPress enter to continue ...
  • 选择[24]来绑定PCI网卡
Option: 24Network devices using kernel driver===================================0000:02:01.0 '82545EM Gigabit Ethernet Controller (Copper) 100f' if=ens33 drv=e1000 unused=igb_uio,vfio-pci *Active*0000:02:06.0 '82545EM Gigabit Ethernet Controller (Copper) 100f' if=ens38 drv=e1000 unused=igb_uio,vfio-pci0000:02:07.0 '82545EM Gigabit Ethernet Controller (Copper) 100f' if=ens39 drv=e1000 unused=igb_uio,vfio-pci No 'Crypto' devices detected============================No 'Eventdev' devices detected==============================No 'Mempool' devices detected=============================No 'Compress' devices detected==============================Enter PCI address of device to bind to IGB UIO driver: 02:06.0OKPress enter to continue ...============================================================================================================================================Option: 24Network devices using DPDK-compatible driver============================================0000:02:06.0 '82545EM Gigabit Ethernet Controller (Copper) 100f' drv=igb_uio unused=e1000,vfio-pciNetwork devices using kernel driver===================================0000:02:01.0 '82545EM Gigabit Ethernet Controller (Copper) 100f' if=ens33 drv=e1000 unused=igb_uio,vfio-pci *Active*0000:02:07.0 '82545EM Gigabit Ethernet Controller (Copper) 100f' if=ens39 drv=e1000 unused=igb_uio,vfio-pci No 'Crypto' devices detected============================No 'Eventdev' devices detected==============================No 'Mempool' devices detected=============================No 'Compress' devices detected==============================Enter PCI address of device to bind to IGB UIO driver: 02:07.0OKPress enter to continue ...PCI网卡的drv=igb_uio即完成绑定
步骤三测试,选择[27]和[28]
Option: 27Enter hex bitmask of cores to execute test app onExample: to execute app on cores 0 to 7, enter 0xffbitmask: 0x3Launching appsudo: x86_64-default-linuxapp-gcc/app/test: command not foundPress enter to continue ...Option: 28Enter hex bitmask of cores to execute testpmd app onExample: to execute app on cores 0 to 7, enter 0xffbitmask: 0x3Launching appsudo: x86_64-default-linuxapp-gcc/app/testpmd: command not found这两个测试都有可能会出现"command not found"的报错提醒,
其中[27]出现该错误不用理会,[28]若出现的话,可以退出脚本(选[35]),到/[你的DPDK目录]/x86_64-native-linuxapp-gcc/app下找到testpmd,再运行它进行测试即可,若无以外会得到以下输出

经验总结扩展阅读