KatharaFramework / Kathara-Labs

Collection of Kathará network scenarios and tutorials.
https://www.kathara.org/
GNU General Public License v3.0
102 stars 42 forks source link

SDN-Openflow Switch start problem #49

Closed samettonyali closed 1 month ago

samettonyali commented 1 month ago

Operating system

Ubuntu 24.04

Kathará Version

3.7.6

Lab Name

main-labs/sdn-openflow/pox

Bug description

When kathara lstart command executed all machines rise up, but s1 switch gives this output and stucks:

Waiting startup commands execution, Press [ENTER] to override...

When pressed Enter it fails inserting openswitch module and the lab doesn't work as intended.

Steps to reproduce

Just run kathara lstart you will see it on s1 terminal.

tcaiazzi commented 1 month ago

Dear @samettonyali,

Thanks for reaching out!

I suspect that you do not have loaded the openvswitch kernel module on your host.

Since containers share the machine’s OS system kernel, to use openvswitch in a Kathará device (and in a container in general) you first have to load the kernel module on your host. To do so:

modprobe openvswitch

At this point, the container should be able to load the openvswitch module.

immagine

Please let me know if this helps!

Thanks, Tommaso

samettonyali commented 1 month ago

Yes, you are right. I didn't know I need to have it installed on the host OS. It now works like a charm :)

Thank you very much!