...
Code Block | ||
---|---|---|
| ||
sudo lxc-start -n onos1 -d |
Take a look at the output of lxc-ls
again: note the container is now started and, if all has gone well, has received an IP address.
...
Run sudo visudo
and add the following line to the end of the file:
Code Block |
---|
ubuntu ALL=(ALL) NOPASSWD:ALL |
Installing Java is done as follows:
...
If you would like your containers to be automatically started on boot, you'll need to add the following line to /var/lib/lxc/NAME/config
, where NAME is your container's name. By the way, on my system the /var/lib/lxc
directory is only accessible by root.
Code Block |
---|
lxc.start.auto = 1 |
Check using lxc-ls --fancy
to verify your containers are in fact started on boot.
ONOS config
This is what my cell looks like. Some things you may You definitely want to check if: verify if the ONOS_NIC
variable corresponds to your system settings, and also OCN
which points to the machine where Mininet is running. Feel free to customize the ONOS_FEATURES
to your liking.
Code Block | ||
---|---|---|
| ||
# 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 |
...