-
Notifications
You must be signed in to change notification settings - Fork 691
Porting DPDK application #1454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you provide the full |
Almost. Here is what I did at one point and it worked. But now when I build the image it doesn't and cannot figure out how come: sudo docker run -d --name dpdk-channel --privileged --net=host -v /dev/hugepages:/dev/hugepages -v /var/run/dpdk:/var/run/dpdk dpdk-channel:1 |
@JasMetzger I never ran DPDK inside docker so I'm not sure how to to make it work, but it seems that @SesomB has some experience, maybe he can help |
I think it may not be specific to DPDK. The first call was to simply list the PCAP devices PCAPLiveDeviceList and it throws an error librte_pmd_e1000.so cannot open shared object file. This runs fine outside the container. |
Try to create a custom docker image that contains DPDK installation and PcapPlusPlus. |
I've gotten a little further. I have a custom docker image with DPDK and PCAP++ application installed. It runs and get through most of the initDPDK but complains about "ZERO DPDK ports are initialized.. Something went wrong while initializing.... |
Can you show us the output of Also, Try to run with: |
@JasMetzger did you manage to solve it? While it's an interesting use-case, I don't think it's directly related to the PcapPlusPlus code base - it seems like a mapping/permissions issue related to ruinning DPDK inside a docker container. I'll close the issue now, please feel free to reopen if you think we need to make any code changes in the library to make it work. Also - if you managed to figure it out - please free free to post you findings here! |
Hey,
I did not solve it directly but managed to use an image that was working. Since then I've had to backburner the effort but will pick it up again eventually.
Thank you. Please close.
J
From: seladb ***@***.***>
Sent: Monday, March 31, 2025 10:52 PM
To: seladb/PcapPlusPlus ***@***.***>
Cc: James Metzger ***@***.***>; Mention ***@***.***>
Subject: Re: [seladb/PcapPlusPlus] Porting DPDK application (Issue #1454)
CAUTION: This email originated from outside of Redhorse. Do not click links or open attachments unless you recognize the sender and know the content is safe.
@JasMetzger<https://github.com/JasMetzger> did you manage to solve it?
While it's an interesting use-case, I don't think it's directly related to the PcapPlusPlus code base - it seems like a mapping/permissions issue related to ruinning DPDK inside a docker container.
I'll close the issue now, please feel free to reopen if you think we need to make any code changes in the library to make it work.
Also - if you managed to figure it out - please free free to post you findings here!
-
Reply to this email directly, view it on GitHub<#1454 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUV3ANBQ7BRI23YKLI5V7FT2XH5N5AVCNFSM6AAAAAB2FXJP36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONRXHEYTSNBRGI>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
[seladb]seladb left a comment (seladb/PcapPlusPlus#1454)<#1454 (comment)>
@JasMetzger<https://github.com/JasMetzger> did you manage to solve it?
While it's an interesting use-case, I don't think it's directly related to the PcapPlusPlus code base - it seems like a mapping/permissions issue related to ruinning DPDK inside a docker container.
I'll close the issue now, please feel free to reopen if you think we need to make any code changes in the library to make it work.
Also - if you managed to figure it out - please free free to post you findings here!
-
Reply to this email directly, view it on GitHub<#1454 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUV3ANBQ7BRI23YKLI5V7FT2XH5N5AVCNFSM6AAAAAB2FXJP36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONRXHEYTSNBRGI>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Question
My PCAP++ DPDK application runs on an Ubuntu 20.04 linux . I am trying to run same application in a 20.04 docker container with sufficient mappings and transparency on the host system. At one point I had this working with a bunch of -v options with docker run. But now when I run the app in a docker container I cannot initDPDK for some reason.
[ERROR: /PcapLiveDeviceList.cpp: init:46] Error searching for devices: Can't look for DPDK devices: The configuration file has invalid parameters.
It "Cannot init plugins" and errors.
What is the app missing from the environment?
Operating systems
No response
The text was updated successfully, but these errors were encountered: