Running multiple VMs that each run an ONOS instance is one way of running a multi-instance ONOS deployment. It is however not that 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.
Environment
I'm using VirtualBox as virtualization environment, but I see no reason why this shouldn't work on VMWare or other hypervisors. First step is to create a fresh install of Ubuntu 14.04.2 LTS server edition. I installed
LXC
Installing LXC is as simple as :doing
sudo apt-get install lxc
You should run lxc-checkconfig
to determine your system has proper support
properly supports this technology.
If you would like your containers to be automatically started on boot, you'll need to add the following parameter to /var/lib/lxc/NAME/config
, where NAME is your container's name.
lxc.start.auto = 1
Check using lxc-ls --fancy
to verify your containers are in fact started on boot.autostart
ONOS config
This is what my cell looks like. Some things you may want to check if:
...