EAL:无法获取物理地址:权限被拒绝。只有vfio才能运行

时间:2017-12-27 10:57:55

标签: dpdk

我只是想在dpdk中运行helloworld。我得到了这个奇怪的错误但是我执行了设置脚本中的所有步骤以及从源代码构建但仍然收到错误:

dpdk@dpdk-vm:~/Desktop/dpdk-stable-17.08.1/examples/helloworld/build$ ./helloworld -c 1 -n 1 
EAL: Detected 1 lcore(s)
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: Cannot obtain physical addresses: Permission denied. Only vfio will function.
EAL: WARNING: Master core has no memory on local socket!
error allocating rte services array
EAL: FATAL: rte_service_init() failed

EAL: rte_service_init() failed

PANIC in main():
Cannot init EAL
5: [./helloworld(_start+0x2a) [0x5555a79f366a]]
4: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7ff3176151c1]]
3: [./helloworld(+0x54f6d) [0x5555a79eef6d]]
2: [./helloworld(__rte_panic+0xbd) [0x5555a79ea467]]
1: [./helloworld(rte_dump_stack+0x2e) [0x5555a7a41a7e]]
Aborted (core dumped)

请让我知道我做错了什么?

1 个答案:

答案 0 :(得分:6)

您需要以root用户身份运行DPDK应用程序。请参阅DPDK入门指南:

http://dpdk.org/doc/guides/linux_gsg/enable_func.html#running-dpdk-applications-without-root-privileges