Versions Compared

Key

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

...

Running multiple VMs that each run an ONOS instance is one way of running a multi-instance ONOS deployment. It is however not practical to do on my resource-constrained laptop. Using Linux Containers is a great alternative that achieves the same thing but uses way less CPU and memory. I also didn't care much for Docker's approach: Docker is very convenient to distribute ONOS as an application, but I had trouble integrating it into my development cycle which requires fast develop/deploy/test cycles.

Getting Started

I'm using VirtualBox as virtualization environment, but I see no reason why this shouldn't work on VMWare or other hypervisors.

...

Be sure to reload your cell configuration, which will automatically create and assign new $OCx variables.

Development Cycle

From now on, it becomes very easy to develop and test code in a multi-instance environment. The process is as follows:

  1. Write some code
  2. Compile ONOS by running obs or mci
  3. Package ONOS by running op
  4. Install and run the latest package: onos-group install -f $OC1 $OC2 $OC3 etc.
  5. Go back to step 1 (smile)

Additional Steps

Linux Bridge Configuration

...