Trex -mellanox connect5 - docker container

274 views
Skip to first unread message

ankitpa...@gmail.com

unread,
Apr 17, 2018, 2:43:43 PM4/17/18
to TRex Traffic Generator
Hi All

I have a centos 7.4 machine where mellanox connect 5 part is installed (2x 100gb ports)
i have followed steps as shown here to install ofed driver
https://trex-tgn.cisco.com/trex/doc/trex_appendix_mellanox.html#_build_with_native_ofed

DPDK is also installed on base machine and

Trex is running fine on base machine.

My goal is to run Trex from container using connect 5 ports

i followed steps here; but trex is giving errors.
https://trex-tgn.cisco.com/trex/doc/trex_vm_manual.html

i tried running in privileged mode but trex still faces issues.

docker run --rm -it --privileged --cap-add=ALL -v /usr/src/kernels/:/usr/src/kernels/ -v /lib/modules/:/lib/modules/ -v /mnt/huge/:/mnt/huge/ -v /dev/vfio:/dev/vfio -v /sys/bus/pci/devices:/sys/bus/pci/devices -v /sys/devices/system/node:/sys/devices/system/node -v /dev:/dev trexcisco/trex:2.36

following is the error

[root@2a5785cde089 v2.36]# ./t-rex-64 -i
Killing Scapy server... Scapy server is killed
Starting Scapy server.... Scapy server is started
The ports are bound/configured.
Starting TRex v2.36 please wait ...
PMD: net_mlx5: cannot get MAC address, is mlx5_en loaded? (errno: Success)
EAL: Requested device 0000:05:00.0 cannot be used
PMD: net_mlx5: cannot get MAC address, is mlx5_en loaded? (errno: Success)
EAL: Requested device 0000:05:00.1 cannot be used
Could not find all interfaces (asked for: 2, found: 0).
[root@2a5785cde089 v2.36]#

can you help me ?

thanks
Ankit

hanoh haim

unread,
Apr 17, 2018, 2:49:30 PM4/17/18
to ankitpa...@gmail.com, TRex Traffic Generator
1. You don’t need to install DPDK. It can only do harm. TRex package comes with the right DPDK.

2. Docker is supported with Linux PA_interfaces PMD (no huge-pages required in this case). 

3. To support your use-case see Itay notes on the docker file readme in our GitHub or google how to allocate the huge-pages inside LXC (host should provide the memory) 


--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/8b463a2a-1c9a-4e11-aa8a-dda203f64bfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Hanoh
Sent from my iPhone

ankitpa...@gmail.com

unread,
Apr 17, 2018, 4:48:43 PM4/17/18
to TRex Traffic Generator
I am using docker container.
OFED driver is already installed on base machine
do i need to install ofed driver inside docker container?

ankitpa...@gmail.com

unread,
Apr 17, 2018, 4:50:49 PM4/17/18
to TRex Traffic Generator
can you share web link for point below
Reply all
Reply to author
Forward
0 new messages