esnet / dpdk-plugin

Other
23 stars 13 forks source link

Questions about installing dpdk-plugin and type of packet source 'dpdk' not recognized, or mode not supported #4

Open CindyStudyEveryday opened 2 years ago

CindyStudyEveryday commented 2 years ago

Hello ,when i use dpdk for zeek,i meet two questions,and i don't konw how to solve them.The following are the questions.I'd appreciate it if you could help me!!!

zeek : 4.0.5 apt install dpdk

1、how to install dpdk-plugin

input zkg install dpdk-plugin output error: invalid package "dpdk-plugin": package name not found in sources and also not a usable git URL (invalid or inaccessible, use -vvv for details)

2、Via ZeekCtl

input deploy output Error: worker-1 terminated immediately after starting; check output with "diag" diag fatal error: type of packet source 'dpdk' not recognized, or mode not supported

grigorescu commented 2 years ago

Ah, yes. Thanks for the reminder; I need to get this added to the zkg package list.

In the meantime, try installing it directly with the git URL, i.e. zkg install https://github.com/esnet/dpdk-plugin.git

CindyStudyEveryday commented 2 years ago

When i use this,it shows: error: failed to run tests for https://github.com/esnet/dpdk-plugin.git: invalid package "https://github.com/esnet/dpdk-plugin.git": package name not found in sources and also not a usable git URL (invalid or inaccessible, use -vvv for details) The url is right i‘m sure,But why the error?

hichul commented 1 year ago

Hello, I try use the URL to install a DPDK plugin install. It is installed but had an error zeek is running none root. could you provide the right direction for a workaround?

zkg install https://github.com/esnet/dpdk-plugin.git The following packages will be INSTALLED: https://github.com/esnet/dpdk-plugin.git (main)

Proceed? [Y/n] Y Running unit tests for "https://github.com/esnet/dpdk-plugin.git" error: "https://github.com/esnet/dpdk-plugin.git" tests failed, inspect contents of /app/eps-4.1.1/var/lib/zkg/testing/dpdk-plugin.git for details, especially any "zkg.test_command.{stderr,stdout}" files within /app/eps-4.1.1/var/lib/zkg/testing/dpdk-plugin.git/clones/dpdk-plugin.git Proceed to install anyway? [N/y] y Installing "https://github.com/esnet/dpdk-plugin.git"............... Installed "https://github.com/esnet/dpdk-plugin.git" (main) Loaded "https://github.com/esnet/dpdk-plugin.git"

zeek -i dpdk::auto EAL: Detected 4 lcore(s) EAL: Detected 1 NUMA nodes EAL: Auto-detected process type: PRIMARY EAL: Multi-process socket /run/user/1000/dpdk/rte/mp_socket EAL: rte_mem_virt2phy(): cannot open /proc/self/pagemap: Permission denied EAL: FATAL: Cannot use IOVA as 'PA' since physical addresses are not available EAL: Cannot use IOVA as 'PA' since physical addresses are not available fatal error: Error with EAL initialization

ls -al /proc/self/pagemap -r-------- 1 zeek zeek 0 Feb 28 17:52 /proc/self/pagemap

sudo dpdk-devbind.py -s

Network devices using DPDK-compatible driver

0000:08:00.0 'I350 Gigabit Network Connection 1521' drv=igb_uio unused=igb,vfio-pci 0000:08:00.1 'I350 Gigabit Network Connection 1521' drv=igb_uio unused=igb,vfio-pci

Network devices using kernel driver

0000:02:00.0 'NetXtreme BCM5720 2-port Gigabit Ethernet PCIe 165f' if=eno1 drv=tg3 unused=igb_uio,vfio-pci Active 0000:02:00.1 'NetXtreme BCM5720 2-port Gigabit Ethernet PCIe 165f' if=eno2 drv=tg3 unused=igb_uio,vfio-pci 0000:08:00.2 'I350 Gigabit Network Connection 1521' if=eth2 drv=igb unused=igb_uio,vfio-pci 0000:08:00.3 'I350 Gigabit Network Connection 1521' if=eth3 drv=igb unused=igb_uio,vfio-pci