intrig-unicamp / mininet-wifi

Emulator for Software-Defined Wireless Networks
https://mn-wifi.readthedocs.io/
Other
431 stars 239 forks source link

Error when laoding mac80211_hwsim #537

Open KAISERaustin opened 1 month ago

KAISERaustin commented 1 month ago

For me when I run sudo mn --wifi -v debug this is what I get.

sudo mn --wifi -v debug /usr/local/bin/mn:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import('pkg_resources').run_script('mininet-wifi==2.6', 'mn') errRun: ['which', 'controller'] /usr/bin/controller 0 errRun: ['grep', '-c', 'processor', '/proc/cpuinfo'] 4 0 Setting resource limits Adding stations: errRun: ['which', 'mnexec'] /usr/bin/mnexec 0 errRun: ['which', 'ip', 'addr'] /usr/sbin/ip 1_popen ['mnexec', '-cdn', 'env', 'PS1=\x7f', 'bash', '--norc', '--noediting', '-is', 'mininet:sta1'] 9393 sta1 : ('unset HISTFILE; stty -echo; set +m',) unset HISTFILE; stty -echo; set +m sta1 _popen ['mnexec', '-cdn', 'env', 'PS1=\x7f', 'bash', '--norc', '--noediting', '-is', 'mininet:sta2'] 9395 sta2 : ('unset HISTFILE; stty -echo; set +m',) unset HISTFILE; stty -echo; set +m sta2 Adding access points: errRun: ['which', 'ovs-vsctl'] /usr/bin/ovs-vsctl 0 errRun: ['ovs-vsctl', '-t', '1', 'show'] 2c81efa4-35b9-438b-aba0-dfb988394ac1 ovs_version: "3.3.0" 0 errRun: ['ovs-vsctl', '--version'] ovs-vsctl (Open vSwitch) 3.3.0 DB Schema 8.5.0 0_popen ['mnexec', '-cd', 'env', 'PS1=\x7f', 'bash', '--norc', '--noediting', '-is', 'mininet:ap1'] 9400*** ap1 : ('unset HISTFILE; stty -echo; set +m',) unset HISTFILE; stty -echo; set +m

added intf lo (0) to node ap1 ap1 : ('ifconfig', 'lo', 'up') ap1 Configuring nodes... Loading 3 virtual wifi interfaces Warning! If you already had Mininet-WiFi installed please run util/install.sh -W and then sudo make install. Warning! Error when loading mac80211_hwsim. Please run sudo 'mn -c' before running your code. Further information available at /tmp/mn-wifi-mac80211_hwsim.log.

We have tried modprobe, uninstalling and reinstalling, as well as the util/install.sh -w and sudo make install.

Running Ubuntu 24.04