P4-vSwitch / vagrant

PISCES Simulation Environment
30 stars 15 forks source link

Issue in pktGen: Did not find any ports to use #10

Open fattaholmanan opened 7 years ago

fattaholmanan commented 7 years ago

When I'm going to start running the packet generator, it crashes and show below error:

Lua 5.3.0  Copyright (C) 1994-2015 Lua.org, PUC-Rio
>>> Packet Burst 32, RX Desc 512, TX Desc 512, mbufs/port 4096, mbuf cache 512
!PANIC!: *** Did not find any ports to use ***
PANIC in pktgen_config_ports():
*** Did not find any ports to use ***6: [./app/app/x86_64-native-linuxapp-gcc/app/pktgen() [0x432a33]]
5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fe411173f45]]
4: [./app/app/x86_64-native-linuxapp-gcc/app/pktgen(main+0x4af) [0x43129f]]
3: [./app/app/x86_64-native-linuxapp-gcc/app/pktgen(pktgen_config_ports+0x12cf) [0x45313f]]
2: [./app/app/x86_64-native-linuxapp-gcc/app/pktgen(__rte_panic+0xc9) [0x42c276]]
1: [./app/app/x86_64-native-linuxapp-gcc/app/pktgen(rte_dump_stack+0x18) [0x4f0c98]]

I checked and I have no DPDK-compatible driver in my VM. Is this the issue?

/home/vagrant/pktgen/deps/dpdk/tools/dpdk_nic_bind.py --status

Network devices using DPDK-compatible driver
============================================
<none>

Network devices using kernel driver
===================================
0000:00:03.0 '82540EM Gigabit Ethernet Controller' if=eth0 drv=e1000 unused= *Active*
0000:00:08.0 '82540EM Gigabit Ethernet Controller' if=eth1 drv=e1000 unused= *Active*
0000:00:09.0 '82540EM Gigabit Ethernet Controller' if=eth2 drv=e1000 unused= *Active*

Other network devices
=====================
<none>

Anybody have an idea how to fix it?

cmarcond commented 6 years ago

perhaps, something like this? http://plvision.eu/deploying-intel-dpdk-in-oracle-virtualbox/