trex docker with dut

916 views
Skip to first unread message

david....@devalore.com

unread,
Jun 27, 2018, 1:32:21 PM6/27/18
to TRex Traffic Generator
Hi,

I'm interest to run trex in docker like https://trex-tgn.cisco.com/trex/doc/trex_vm_manual.html#docker.
Loop mode with veth0 and veth1 work,but at the moment, I didn't succeeded to make test to DUT with this docker image.
I try to config trex_cfg.yaml with dpdk_setup_ports.py, (this image contain one nic)
please let me know what configuration requirement are necessary.

Thanks,
David

hanoh haim

unread,
Jun 27, 2018, 5:39:23 PM6/27/18
to david....@devalore.com, TRex Traffic Generator
Hi David,
In our docker image there is a script that build veth0/1 and loopback them.

Could you send your trex_cfg.yaml after your changes?

--
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/08b35dfe-6bd0-4e99-b1dc-fd1bd470ce4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Hanoh
Sent from my iPhone

david....@devalore.com

unread,
Jun 28, 2018, 1:00:13 AM6/28/18
to TRex Traffic Generator

- port_limit : 2
version : 2
low_end : true
interfaces : ["veth0", "veth1"] # list of the interfaces to bind run ./dpdk_nic_bind.py --status
port_info : # set eh mac addr

- ip : 1.1.1.1
default_gw : 2.2.2.2
- ip : 2.2.2.2
default_gw : 1.1.1.1

This is the trex_cfg.yaml file, is working in loop, but I didn't success to send packet to my host PC.
I create packet with ip destination of my host, and sent to simple listen UDP socket, and I didn't receive any packet.
(ping from docker to the host work)

hanoh haim

unread,
Jun 28, 2018, 1:14:57 AM6/28/18
to david....@devalore.com, TRex Traffic Generator
This is our default configuration file. It was designed to work like that for tutorials.
You should look into docker networking how to create a veth that is connected to the host through a Switch.

Thanks,
Hanoh

--
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.

For more options, visit https://groups.google.com/d/optout.

andyb...@googlemail.com

unread,
Feb 26, 2021, 3:39:23 AM2/26/21
to TRex Traffic Generator
Hi David, *,

...did you ever succeed in having a docker-setup using a dut in one container and run TRex in another container? If so - could you please share your findings :-) ?

Thanks,

Andreas

Message has been deleted

Andreas Bourges

unread,
Feb 26, 2021, 3:06:45 PM2/26/21
to TRex Traffic Generator
Hi,

...just for the records - it's actually not a big problem to connect the two containers (used another base-image for TRex, though...), but works as expected. TRex Ports 0/1 connected to DUT Ports 0/1 and both have an additional mgmt network configured, where the actual client container is located, too.

Thanks,

Andreas

Andres Ulloa

unread,
Mar 28, 2021, 6:48:21 AM3/28/21
to andyb...@googlemail.com, TRex Traffic Generator
Hi All,

I am not able install TREX with docker. I have getting the following
message: " ApplyLayer exit status 1 stdout: stderr: lchown
/var/trex/v2.36: invalid argument"


Anyone that has solve it?

docker pull trexcisco/trex:latest
latest: Pulling from trexcisco/trex
1e51505fc96b: Pull complete
4f4fb700ef54: Pull complete
d15406b20a40: Pull complete
7f09b5ac4d98: Pull complete
41b7e4d0bd88: Extracting
[==================================================>] 187.3MB/187.3MB
b97754ad857e: Download complete
69e41ec4c5b1: Download complete
b7b07546871e: Download complete
869f3e123971: Download complete
a9035b3e27b8: Download complete
7b12b431e47a: Download complete
e66b750e1013: Download complete
f0d25c6c461c: Download complete
fb2d80dca5af: Download complete
failed to register layer: ApplyLayer exit status 1 stdout: stderr:
lchown /var/trex/v2.36: invalid argument

:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
Codename: bionic


:~# docker version
Client:
Version: 19.03.6
API version: 1.40
Go version: go1.12.17
Git commit: 369ce74a3c
Built: Fri Dec 18 12:21:44 2020
OS/Arch: linux/amd64
Experimental: false

Server:
Engine:
Version: 19.03.6
API version: 1.40 (minimum version 1.12)
Go version: go1.12.17
Git commit: 369ce74a3c
Built: Thu Dec 10 13:23:49 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.3.3-0ubuntu1~18.04.4
GitCommit:
runc:
Version: spec: 1.0.1-dev
GitCommit:
docker-init:
Version: 0.18.0
> --
> 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 view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/1a9bb9af-9de8-4119-9d57-f91c5c50c337n%40googlegroups.com.

andyb...@googlemail.com

unread,
Apr 7, 2021, 3:05:22 AM4/7/21
to Andres Ulloa, TRex Traffic Generator
Hi Andres,

...sorry for the late reply - I'm currently moving to a new notebook and the googlemail account was not configured, yet ☹




I am not able install TREX with docker. I have getting the following
message: " ApplyLayer exit status 1 stdout: stderr: lchown
/var/trex/v2.36: invalid argument"


...I had a similar problem (not TRex related) some weeks ago, when I tried to install docker on RHEL 8. They're using podman by default now and the setup was not properly configured. When I pulled the image in question using root it worked.

Maybe this helps...

Best regards,


Andreas
Reply all
Reply to author
Forward
0 new messages