How to use DPDK inside Linux containers?
I am trying to use DPDK inside containers.
While running any example application in a container, I am getting the below error.
EAL: 20480 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size
PANIC in rte_eal_init():
Cannot get hugepage information
6: [./build/l2fwd() [0x402a49]]
5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7ffff761776d]]
4: [./build/l2fwd() [0x402093]]
3: [./build/l2fwd() [0x45f3bf]]
2: [./build/l2fwd() [0x401fd9]]
1: [./build/l2fwd() [0x464dd3]]
Aborted (core dumped)
The problem is with hugepages. I have allocated memory for hugepages in host. And it is visible in containers.
But while accessing hugepages through containers, it's giving the error, permission denied.
My host machine has Ubuntu 12.04.
DPDK version 1.7
Please let me know, if I miss any info to be provided.
Any help would be greatly appreciated.