Versions Compared

Key

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

Table of Contents

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.

...

Getting Started

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

The first step is to create a fresh install of Ubuntu 14.04.2 LTS server edition. I installed 

...

then installed Git, Apache Karaf, Apache Maven, and Oracle Java 8. You can find detailed instructions on how to do that here: ONOS from Scratch#2.Installrequiredsoftware

In the following, we'll first create a single container that is fully configured, and then clone the original as many times as needed. 

Creating Your First Container

Installing LXC is as simple as running

...

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.

 

Customizing Your Container

You can ssh into the container by using the IP address you just saw; ubuntu is the default login and password.

You want to do two things: enable passwordless sudo for the ubuntu user, and install Java 8.

 

Run sudo visudo and add the following line to the end of the file:

...