Solved-
I found this post: https://www.os3.nl/2010-2011/students/e … ou/inr_stp
In short, three modules were not installed as dependencies:
stp and llc
insmod /lib/modules/3.2.27+/kernel/net/llc/llc.ko
insmod /lib/modules/3.2.27+/kernel/net/802/stp.ko
insmod /lib/modules/3.2.27+/kernel/net/bridge/bridge.ko
[Cut and pasteded the important bits from the website]
I will run for now the proper brctl using its hard link /sbin/brctl. The first attempt to add a bridge gives back an error.
add bridge failed: Package not installed
Cosmin indicated that i need to mount some of the modules from the folder /usr/lib/uml/modules/.
insmode is not supported by busybox so i need to copy it to the sbin folder of my uml filesystem.
/ # insmod /usr/lib/uml/modules/2.6.35.1/kernel/net/bridge/bridge.ko
bridge: Unknown symbol llc_mac_hdr_init (err 0)
bridge: Unknown symbol stp_proto_register (err 0)
bridge: Unknown symbol stp_proto_unregister (err 0)
insmod: error inserting '/usr/lib/uml/modules/2.6.35.1/kernel/net/bridge/bridge.ko': -1 Unknown symbol in module
Now i need to find the missing modules that cause the error.
epetridou@UbuntuUml:~$ locate stp.ko
/lib/modules/2.6.35-22-server/kernel/net/802/stp.ko
/lib/modules/2.6.35-22-server/kernel/net/bridge/netfilter/ebt_stp.ko
/lib/modules/2.6.35-25-server/kernel/net/802/stp.ko
/lib/modules/2.6.35-25-server/kernel/net/bridge/netfilter/ebt_stp.ko
/lib/modules/2.6.35-27-server/kernel/net/802/stp.ko
/lib/modules/2.6.35-27-server/kernel/net/bridge/netfilter/ebt_stp.ko
/usr/lib/uml/modules/2.6.35.1/kernel/net/802/stp.ko
/usr/lib/uml/modules/2.6.35.1/kernel/net/bridge/netfilter/ebt_stp.ko
epetridou@UbuntuUml:~$ locate llc.ko
/usr/lib/uml/modules/2.6.35.1/kernel/net/llc/llc.ko
Since i know their location i need to copy them to my uml filesystem.
epetridou@UbuntuUml:~$ sudo cp /usr/lib/uml/modules/2.6.35.1/kernel/net/llc/llc.ko /home/epetridou/uml_filesystem/usr/lib/uml/modules/2.6.35.1/kernel/net/llc/
epetridou@UbuntuUml:~$ sudo cp /usr/lib/uml/modules/2.6.35.1/kernel/net/802/stp.ko /home/epetridou/uml_filesystem/usr/lib/uml/modules/2.6.35.1/kernel/net/802/
epetridou@UbuntuUml:~$ sudo cp /usr/lib/uml/modules/2.6.35.1/kernel/net/bridge/netfilter/ebt_stp.ko /home/epetridou/uml_filesystem/usr/lib/uml/modules/2.6.35.1/kernel/net/bridge/netfilter/
I try to load the modules one more time.
/ # insmod /usr/lib/uml/modules/2.6.35.1/kernel/net/802/stp.ko
stp: Unknown symbol llc_sap_close (err 0)
stp: Unknown symbol llc_sap_open (err 0)
I guess I need to load the llc module first.
insmod: error inserting '/usr/lib/uml/modules/2.6.35.1/kernel/net/802/stp.ko': -1 Unknown symbol in module
/ # insmod /usr/lib/uml/modules/2.6.35.1/kernel/net/llc/llc.ko
/ # insmod /usr/lib/uml/modules/2.6.35.1/kernel/net/802/stp.ko
/ # insmod /usr/lib/uml/modules/2.6.35.1/kernel/net/bridge/bridge.ko
Bridge firewalling registered
Testing if it works…
/ # /sbin/brctl addbr tmp_br
/ # /sbin/brctl show
bridge name bridge id STP enabled interfaces
tmp_br 8000.000000000000 no
(Last edited by keyboardgnome on 14 Jul 2013, 17:17)