Unable to install TREX GUI in Ubuntu 20.04

857 views
Skip to first unread message

Geiner Ernesto Miranda (geimiran)

unread,
Aug 15, 2023, 10:59:46 PM8/15/23
to trex...@googlegroups.com

Team, good day!

I am sending this email because I have not been able to install TREX on a Ubuntu box:



These are the JAVA packages I have installed so far:

 

 

I am running the command and I get the following error:

 

 

Is there a chance that you can help me with this setup? Thanks!

 

G,

hanoh haim

unread,
Aug 20, 2023, 7:50:40 AM8/20/23
to Geiner Ernesto Miranda (geimiran), trex...@googlegroups.com
Hi Geiner,

The GUI was developed and maintained by a different team and for a very long time that not maintained. 
I believe that even if you manage to install it, it won't work with the latest trex server
My suggestion is to work with the TUI/Console that is part of the trex package. 

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 view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/BY5PR11MB42263C99DE5978C87EC59B70D215A%40BY5PR11MB4226.namprd11.prod.outlook.com.


--
Hanoh
Sent from my iPhone

Sai Praveen

unread,
Aug 20, 2023, 11:39:33 PM8/20/23
to TRex Traffic Generator
hi i run the server now how to check the traffic in the CLI mode . 

i pulled the docker image and then I run the docker container of the trex.
i ran these commands 


docker pull trexcisco/trex


docker run --rm -it --privileged --cap-add=ALL trexcisco/trex:latest


$root@]./t-rex-64 -i


I am inside now how to check the traffic any suggest any videos or links which could help me to do .

hanoh haim

unread,
Aug 21, 2023, 2:32:17 AM8/21/23
to Sai Praveen, TRex Traffic Generator
Hi Sai, 
The docker is not up to date, suggest to use the package first as suggested in the manual 
Once you are familiar with it, build your own docker based on latest package 

thanks
Hanoh



Sai Praveen

unread,
Aug 21, 2023, 2:36:39 AM8/21/23
to hanoh haim, TRex Traffic Generator
hi 
  
   Firstly thanks for the reply. can u suggest any files or videos for doing that step by step. i am not abe to figure out.

hanoh haim

unread,
Aug 21, 2023, 2:41:29 AM8/21/23
to Sai Praveen, TRex Traffic Generator

Sai Praveen

unread,
Aug 21, 2023, 2:57:36 AM8/21/23
to hanoh haim, TRex Traffic Generator
can i get the gui also in this. 

i followed this method 

Sai Praveen

unread,
Aug 21, 2023, 2:58:56 AM8/21/23
to hanoh haim, TRex Traffic Generator
i followed this method [bash]>mkdir -p /opt/trex
[bash]>cd /opt/trex
[bash]>wget --no-cache https://trex-tgn.cisco.com/trex/release/latest
[bash]>tar -xzvf latest


in this i am facing error 
ubuntu@desktop2:/opt/trex/v3.03$ lspci | grep Ethernet
00:03.0 Ethernet controller: Red Hat, Inc. Virtio network device
00:04.0 Ethernet controller: Red Hat, Inc. Virtio network device
ubuntu@desktop2:/opt/trex/v3.03$ sudo ./dpdk_setup_ports.py -s
Traceback (most recent call last):
  File "./dpdk_setup_ports.py", line 17, in <module>
    import dpdk_nic_bind
  File "/opt/trex/v3.03/dpdk_nic_bind.py", line 40, in <module>
    from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils.util'
ubuntu@desktop2:/opt/trex/v3.03$ sudo apt-get install python3-distutils
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? what should i do for this .

hanoh haim

unread,
Aug 21, 2023, 9:59:15 AM8/21/23
to Sai Praveen, TRex Traffic Generator
This is an ubuntu issue 
: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? 

Sai Praveen

unread,
Aug 22, 2023, 3:42:39 AM8/22/23
to hanoh haim, TRex Traffic Generator
Hi 

  can u explain this a bit how to do that configuration the below documentation.
1Start traffic on port 0 (imix profile)
2Show the stats
TRex configuration file /etc/trex_cfg.yaml
 - port_limit    : 2
   version       : 2
   low_end       : true                 #1
   interfaces    : ["veth0", "veth1"]   #2
   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
1low-footprint mode ( require less resource), use one thread
2use veth0/veth1 as DP ports conntect to an internal switch
Note

You will need to redirect the folowing ports 4500/4501/4507 to use the external GUI for that you can use this command

[bash]>docker run --rm -it --privileged --cap-add=ALL -p 4500:4500 -p 4501:4501 -p 4507:4507 trexcisco/trex

Download the GUI from GitHub trex-gui-release

Sai Praveen

unread,
Aug 22, 2023, 6:58:57 AM8/22/23
to hanoh haim, TRex Traffic Generator
hi 

 can you explain the installation process of trex-gui?

Sai Praveen

unread,
Aug 22, 2023, 9:59:23 AM8/22/23
to TRex Traffic Generator

Hi 

  i am trying to build the trex GUI I am trying ti installing the GUI repository I am facing this error below I attached the error. please help me in this.

05:26:42 saipraveen@saipraveen-Latitude-3320 trex-stateless-gui ±|master ✗|→ mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< com.cisco:trex-stateless-gui >--------------------
[INFO] Building TRex Stateless GUI Application 4.3-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.github.cisco-system-traffic-generator:trex-packet-editor:jar:2.96 is missing, no dependency information available
[WARNING] The POM for com.github.cisco-system-traffic-generator:trex-java-sdk:jar:0.69 is missing, no dependency information available
[WARNING] The POM for org.testfx:testfx-junit:jar:4.0.16-alpha is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.501 s
[INFO] Finished at: 2023-08-22T17:26:54+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project trex-stateless-gui: Could not resolve dependencies for project com.cisco:trex-stateless-gui:jar:4.3-SNAPSHOT: The following artifacts could not be resolved: com.github.cisco-system-traffic-generator:trex-packet-editor:jar:2.96, com.github.cisco-system-traffic-generator:trex-java-sdk:jar:0.69, org.testfx:testfx-junit:jar:4.0.16-alpha: Failure to find com.github.cisco-system-traffic-generator:trex-packet-editor:jar:2.96 in http://oss.sonatype.org/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of Sonatype-public has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Sai Praveen

unread,
Aug 24, 2023, 6:30:04 AM8/24/23
to TRex Traffic Generator
Hi all

     i want to load traffic between my two devices in this yaml  file I changed can anyone have a look and tell me is it correct :
[root@31313a9a8df3 cap2]# cat imix_1518.yaml
#
# Simple IMIX test 1518B
#
- duration : 3
  generator :
          distribution : "seq"
          clients_start : "10.12.6.1"
          clients_end   : "10.12.6.1"
          servers_start : "10.11.4.2"
          servers_end   : "10.11.4.2"
          # desktop166 : "172.18.6.2"
          # desktop153 : "2.2.48.1"
          # desktop144 :"10.12.6.1"
          # desktop26 : "10.1.4.2"
          #desktop142 : "10.11.4.1"
          clients_per_gb : 1
          min_clients    : 1
          dual_port_mask : "1.0.0.0"
          tcp_aging      : 0
          udp_aging      : 0
#
# The templates are duplicated on purpose in order to utilize all DRAM bandwidth and get better performance
# Should do this automaticlly in the future somehow. You should have at least 8 templates
#
  cap_info :
     - name: cap2/udp_1518B.pcap
       cps   : 1000.0
       ipg   : 10000
       rtt   : 10000
       w     : 1
       limit : 200
     - name: cap2/udp_1518B.pcap
       cps   : 1000.0
       ipg   : 10000
       rtt   : 10000
       w     : 1
       limit : 200
     - name: cap2/udp_1518B.pcap
       cps   : 1000.0
       ipg   : 10000
       rtt   : 10000
       w     : 1
       limit : 200
     - name: cap2/udp_1518B.pcap
       cps   : 1000.0
       ipg   : 10000
       rtt   : 10000
       w     : 1
       limit : 200
     - name: cap2/udp_1518B.pcap
       cps   : 1000.0
       ipg   : 10000
       rtt   : 10000
       w     : 1
       limit : 200
     - name: cap2/udp_1518B.pcap
       cps   : 1000.0
       ipg   : 10000
       rtt   : 10000
       w     : 1
       limit : 200
     - name: cap2/udp_1518B.pcap
       cps   : 1000.0
       ipg   : 10000
       rtt   : 10000
       w     : 1
       limit : 200
     - name: cap2/udp_1518B.pcap
       cps   : 1000.0
       ipg   : 10000
       rtt   : 10000
       w     : 1
       limit : 200

Reply all
Reply to author
Forward
0 new messages