Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Need pre-compiled VM Ubuntu 16.04

9 views
Skip to first unread message

Amar Sinha

unread,
Jan 30, 2025, 2:02:29 PMJan 30
to mininet-wifi-discuss
Hi,

I need a pre-compiled VM image of Ubuntu 16.04 with all dependencies as I'm unable to run 
I have tried everything, but I am still not able to run. I also referred to the book but have had no luck.

Ramon Fontes

unread,
Jan 30, 2025, 2:04:50 PMJan 30
to Amar Sinha, mininet-wifi-discuss
You should be able to reproduce them with Ubuntu 18, 20 and 22.04 too.

--
You received this message because you are subscribed to the Google Groups "mininet-wifi-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mininet-wifi-dis...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mininet-wifi-discuss/7016bee1-95de-4d7e-bfdc-187465d959dcn%40googlegroups.com.

Amar Sinha

unread,
Jan 30, 2025, 2:28:18 PMJan 30
to Ramon Fontes, mininet-wifi-discuss
Respected Sir,

Can you please share any working code for handover using P4 and logs in Ubuntu 20.04?
--
Thanks & Regards

Amar Sinha
JRF and Ph.D Scholar, CSE
International Institute of Information Technology
Plot No.- 7, Near Purkhoti Muktangan,
Sector- 24, Atal Nagar-Nava Raipur,
Chhattisgarh- 493661, India

Ph - (+91) 7679496474, 9635212075 (IND)
Website - https://amarsinha.in/

*PG Representative, SAC-IIITNR*
*Chair, IEEE Student Branch, IIITNR*
*Graduate Student Member, IEEE*

Ramon Fontes

unread,
Jan 30, 2025, 2:32:02 PMJan 30
to Amar Sinha, mininet-wifi-discuss
> Can you please share any working code for handover using P4 and logs in Ubuntu 20.04?

What do you mean by 'any working code'? What specific problem are you facing with the code?

Amar Sinha

unread,
Jan 30, 2025, 2:53:52 PMJan 30
to Ramon Fontes, mininet-wifi-discuss
Respected Sir,

I'm getting the following error

wifi@wifi-virtualbox:~/mininet-wifi/examples/amar/exercises/handover$ sudo make run
mkdir -p build pcaps logs
p4c-bm2-ss --p4v 16 --p4runtime-files build/basic.p4.p4info.txt -o build/basic.json basic.p4
p4c-bm2-ss --p4v 16 --p4runtime-files build/basic000.p4.p4info.txt -o build/basic000.json basic000.p4
sudo python ../../utils/run_exercise-handover.py -t topo/topology.json -j build/basic.json basic000.json -b simple_switch_grpc
Traceback (most recent call last):
  File "../../utils/run_exercise-handover.py", line 38, in <module>
    import p4runtime_lib.simple_controller
  File "/home/wifi/mininet-wifi/examples/amar/utils/p4runtime_lib/simple_controller.py", line 22, in <module>
    import bmv2
ModuleNotFoundError: No module named 'bmv2'
make: *** [../../utils/handover/Makefile:35: run] Error 1

On Fri, Jan 31, 2025 at 1:01 AM Ramon Fontes <ramonre...@gmail.com> wrote:
> Can you please share any working code for handover using P4 and logs in Ubuntu 20.04?

What do you mean by 'any working code'? What specific problem are you facing with the code?


Ramon Fontes

unread,
Jan 30, 2025, 2:53:57 PMJan 30
to Amar Sinha, mininet-wifi-discuss
> ModuleNotFoundError: No module named 'bmv2'

I see no problem with the code here. It says that you don't have bmv2. ;/

Amar Sinha

unread,
Jan 30, 2025, 3:06:42 PMJan 30
to Ramon Fontes, mininet-wifi-discuss
Sir,

I am currently using a Lubuntu 20.04 precompiled image in your repository. After coping with the v1 model file, I'm getting the following error.


wifi@wifi-virtualbox:~/mininet-wifi/examples/amar/exercises/handover$ sudo make run                                                                                                          
mkdir -p build pcaps logs                                                                                                                                                                    
p4c-bm2-ss --p4v 16 --p4runtime-files build/core.p4.p4info.txt -o build/core.json core.p4                                                                                                    

p4c-bm2-ss --p4v 16 --p4runtime-files build/basic.p4.p4info.txt -o build/basic.json basic.p4                                                                                                
p4c-bm2-ss --p4v 16 --p4runtime-files build/psa.p4.p4info.txt -o build/psa.json psa.p4                                                                                                      
[--Wwarn=missing] warning: Program does not contain a `main' module                                                                                                                          
[--Wwarn=missing] warning: Program does not contain a main module, so P4Info's 'pkg_info' field will not be set                                                                              
[--Wwarn=missing] warning: Program does not contain a `main' module
make: *** [../../utils/handover/Makefile:43: psa.json] Error 1

Ramon Fontes

unread,
Jan 30, 2025, 3:18:53 PMJan 30
to Amar Sinha, mininet-wifi-discuss
Dear Amar,

To work with P4, you need to install all the required dependencies. Most importantly, the code I provided is open and free. If you have some knowledge of P4, you should be able to reproduce my work in multiple ways—not just by running the Makefile, but through other approaches as well.


Amar Sinha

unread,
Jan 30, 2025, 3:18:57 PMJan 30
to Ramon Fontes, mininet-wifi-discuss
Sir,

I am currently using a Lubuntu 20.04 precompiled image in your repository. After copying the v1 model file in the handover directory, I'm getting the following error.


wifi@wifi-virtualbox:~/mininet-wifi/examples/amar/exercises/handover$ sudo make run                                                                                                          
mkdir -p build pcaps logs                                                                                                                                                                    
p4c-bm2-ss --p4v 16 --p4runtime-files build/core.p4.p4info.txt -o build/core.json core.p4                                                                                                    
p4c-bm2-ss --p4v 16 --p4runtime-files build/basic.p4.p4info.txt -o build/basic.json basic.p4                                                                                                
p4c-bm2-ss --p4v 16 --p4runtime-files build/psa.p4.p4info.txt -o build/psa.json psa.p4                                                                                                      
[--Wwarn=missing] warning: Program does not contain a `main' module                                                                                                                          
[--Wwarn=missing] warning: Program does not contain a main module, so P4Info's 'pkg_info' field will not be set                                                                              
[--Wwarn=missing] warning: Program does not contain a `main' module
make: *** [../../utils/handover/Makefile:43: psa.json] Error 1

Ramon Fontes

unread,
Jan 30, 2025, 3:21:22 PMJan 30
to Amar Sinha, mininet-wifi-discuss
In https://github.com/ramonfontes/p4-scenarios I do the same without the Makefile.

Amar Sinha

unread,
Jan 30, 2025, 3:49:35 PMJan 30
to Ramon Fontes, mininet-wifi-discuss
Thanks, sir, this is working fine.
Reply all
Reply to author
Forward
0 new messages