Versions Compared

Key

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

...

This VM will eventually host the ONOS instance containers. In the following, we'll first create a single container that is fully configured, and then clone the original as many times as needed.

 

Using Vagrant boxes to prepare your development environment

This section replaces the remainder of this document and is an alternative to bootstrapping your environment. Using vagrant we provision two VMs:

  1. onosdev - Running three lxc containers preinstalled with Java 8.
  2. mn - A vm preinstalled with mininet. 

 

To make use of this you simply need to do the following, assuming you have vagrant and virtualbox installed:

Code Block
$ cd $ONOS_ROOT/tool/dev/vagrant
$ vagrant up

 

At this point you will have to wait for all the ansible scripts to finish before continuing. This may take sometime the first time you run it because it has to download a few ubuntu images. 

Once the provisioning is done you should see the following:

Code Block
==> mn: PLAY RECAP *********************************************************************
==> mn: localhost                  : ok=4    changed=3    unreachable=0    failed=0

 

At this point use the lxc cell to setup your environment:

Code Block
$ cell lxc
ONOS_CELL=lxc
OCI=10.100.198.201
OC1=10.100.198.201
OC2=10.100.198.202
OC3=10.100.198.203
OCN=10.100.198.100
ONOS_APPS=drivers,openflow,proxyarp
ONOS_GROUP=ubuntu
ONOS_NIC=10.100.198.*
ONOS_SCENARIOS=$ONOS_ROOT/onos-next/tools/test/scenarios
ONOS_USER=ubuntu
ONOS_WEB_PASS=rocks
ONOS_WEB_USER=onos

 

Finally, just push your ssh keys to the lxc nodes:

Code Block
$ onos-push-keys $OC1
$ onos-push-keys $OC2
$ onos-push-keys $OC3
Info

This will prompt you to for a password, which is ubuntu.

 

At this point, you should can use STC to deploy your cluster as shown below.

Code Block
2016-05-27 10:13:17  Check-Apps-2 started -- onos-check-apps 10.100.198.202 drivers,openflow,proxyarp includes
2016-05-27 10:13:17  Check-Logs-2 completed
2016-05-27 10:13:17  Check-Apps-2 completed
2016-05-27 10:13:17  Check-Components-3 completed
2016-05-27 10:13:17  Check-Apps-3 started -- onos-check-apps 10.100.198.203 drivers,openflow,proxyarp includes
2016-05-27 10:13:17  Check-Logs-3 started -- onos-check-logs 10.100.198.203
2016-05-27 10:13:18  Check-Apps-3 completed
2016-05-27 10:13:18  Check-Logs-3 completed
2016-05-27 10:13:18  Setup completed
2:44 Passed! 31 steps succeeded

And you can enter your mininet environment with the following command:

Code Block
$ cd $ONOS_ROOT/tools/dev/vagrant
$ vagrant ssh mn
mn$ sudo mn --topo linear,5 --controller remote,ip=10.100.198.201 --controller remote,ip=10.100.198.202 --controller remote,ip=10.100.198.203

 

Enjoy!

Creating Your First Container

...