How to run Intel DPDK application in a virtual machine?

守給你的承諾、 提交于 2019-12-13 02:22:46

问题


Anyone managed to run Intel DPDK-based application in a virtual machine?

I have an application based on DPDK which I'm trying to bring up inside VirtualBox.

Intel mentions paravirtualized network interfaces in its documentation but I could not find any specific instructions related to virtual machine compatibility.

The application fails with the following error:

EAL: coremask set to 3
EAL: 0 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size
PANIC in rte_eal_init():
Cannot get hugepage information

回答1:


The drivers suitable for virtualization are:

  • e1000
  • igbvf
  • ixgbevf
  • virtio-net
  • vmxnet3

In VirtualBox, you should first try with a basic e1000 device.

About your problem "no mounted hugetlbfs", you must do this:

mkdir -p /mnt/huge
mount -t hugetlbfs nodev /mnt/huge
echo 64 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages

You should refer to the quick start guide.



来源:https://stackoverflow.com/questions/19077996/how-to-run-intel-dpdk-application-in-a-virtual-machine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!