如何在虚拟机中运行Intel DPDK应用程序? [英] How to run Intel DPDK application in a virtual machine?

查看:550
本文介绍了如何在虚拟机中运行Intel DPDK应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人设法在虚拟机中运行基于Intel DPDK的应用程序吗?

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

我有一个基于DPDK的应用程序,正试图在VirtualBox中启动它.

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

Intel在其文档中提到了半虚拟化的网络接口,但是我找不到与虚拟机兼容性有关的任何特定说明.

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

推荐答案

适合虚拟化的驱动程序是:

The drivers suitable for virtualization are:

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

在VirtualBox中,您应该首先尝试使用基本的e1000设备.

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

关于您的问题没有安装的ugeltlbfs",您必须执行以下操作:

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

您应该参考快速入门指南.

这篇关于如何在虚拟机中运行Intel DPDK应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆