ONOS的简介
- ONOS(Open Network Operating System)开放网络操作系统,由 ON.Lab 使用 Java 及 Apache 实现发布的首款开源的SDN网络操作系统。
ONOS的安装要求
- 2 core CPU
- 2 GB RAM
- 10 GB hdd
- 1 NIC (any speed)
- JAVA 8
- Curl
sudo apt-get install software-properties-common -y && \
sudo add-apt-repository ppa:webupd8team/java -y && \
sudo apt-get update && \
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections && \
sudo apt-get install oracle-java8-installer oracle-java8-set-default -y
sudo apt-get install curl
ONOS的安装
一、安装ONOS
sudo mkdir /opt
cd /opt
sudo wget -c http://downloads.onosproject.org/release/onos-$ONOS_VERSION.tar.gz
sudo tar xzf onos-$ONOS_VERSION.tar.gz
sudo mv onos-$ONOS_VERSION onos
二、安装ONOS的服务文件
sudo cp /opt/onos/init/onos.initd /etc/init.d/onos
Ubuntu 12 的额外步骤:
sudo update-rc.d onos defaults
Ubuntu 14 的额外步骤:
sudo cp /opt/onos/init/onos.conf /etc/init/onos.conf
Ubuntu 16 的额外步骤:
sudo cp /opt/onos/init/onos.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable onos
配置/opt/onos/options文件
# ONOS的用户
ONOS_USER=sdn
# 添加默认开启的APPS
ONOS_APPS=
三、运行ONOS
/opt/onos/bin/onos-service start
- 运行结果图
- ONOS Web网站:http://localhost_ip:8181/onos/ui/index.html
- 账号:karaf 密码:karaf