Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This is what my cell looks like. Some things you may want to check if: 

Code Block
languagebash
# LXC-based multi ONOS instance & LINC-OE mininet box

...


export ONOS_NIC=10.0.3.*

...


I=1

...


for CONTAINER in $( sudo lxc-ls ); do

...


 IP=`sudo lxc-ls --fancy -F ipv4 $CONTAINER | tail -1`

...


 export OC${I}=${IP}

...


 let I=I+1

...


done

...


export OCI=$OC1

...


export OCN="192.168.56.9"

...


export ONOS_FEATURES="webconsole,onos-api,onos-core,onos-cli,onos-openflow,onos-app-fwd,onos-app-optical,onos-gui,onos-rest,onos-app-proxyarp"

...


export ONOS_USER=ubuntu

...


export ONOS_GROUP=ubuntu

 

I ran into the weird problem that the ONOS instances weren't discovering each other. This process is driven by Hazelcast and relies on IP multicast. It turned out that LXC uses Linux bridge for connectivity among the containers, and the bridge by default does not forward multicast traffic! This is easily solved by checking the Linux bridge documentation; here's an excerpt

...