Last active
January 12, 2016 14:51
-
-
Save RichardWithnell/7df149fb3a1a2cad2f3d to your computer and use it in GitHub Desktop.
ONOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://sreeninet.wordpress.com/2015/03/13/onos-overview-and-hands-on/ | |
cd ~/ | |
mkdir Downloads Applications | |
# Install karaf, Maven | |
cd ~/Downloads | |
wget http://archive.apache.org/dist/karaf/3.0.3/apache-karaf-3.0.3.tar.gz | |
wget http://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz | |
tar -zxvf apache-karaf-3.0.3.tar.gz -C ../Applications/ | |
tar -zxvf apache-maven-3.3.9-bin.tar.gz -C ../Applications/ | |
# Install Java8 | |
sudo apt-get install software-properties-common -y | |
sudo add-apt-repository ppa:webupd8team/java -y | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer oracle-java8-set-default -y | |
# Set Java path | |
export JAVA_HOME=/usr/lib/jvm/java-8-oracle | |
# Clone ONOS | |
cd ~/ | |
git clone https://gerrit.onosproject.org/onos -b onos-1.4 | |
git clone https://github.com/opennetworkinglab/onos-app-samples | |
# Source .profile | |
echo "export ONOS_ROOT=~/onos" >> ~/.profile | |
echo "source $ONOS_ROOT/tools/dev/bash_profile" >> ~/.profile | |
source ~/.profile | |
# Build ONOS | |
cd $ONOS_ROOT | |
mvn clean install # or use the alias 'mci' | |
#To start ONOS cli | |
ok clean | |
feature:list -i | |
#Deploy to VM | |
cat >$ONOS_ROOT/tools/test/cells/mininet-vm <<EOL | |
# ONOS VM Cell | |
export OC1="192.168.56.100" | |
export OCI="192.168.56.100" | |
export ONOS_APPS="drivers,openflow,fwd,proxyarp,mobility" | |
export OCN="192.168.56.100" | |
export ONOS_USER=vm | |
export ONOS_GROUP=vm | |
export ONOS_NIC="192.168.56.*" | |
EOL | |
cell mininet-vm | |
onos-package | |
onos-install -f $OC1 | |
onos $OC1 # or ssh -p 8101 karaf@$OC1 | |
http://192.168.56.100:8181/onos/ui | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment