码迷,mamicode.com
首页 > 其他好文 > 详细

ONOS安装

时间:2019-11-17 14:48:28      阅读:118      评论:0      收藏:0      [点我收藏+]

标签:project   block   too   code   环境   activate   环境变量   解决办法   替换   

本机安装教程(ubuntu)

https://wiki.onosproject.org/display/ONOS/Developer+Quick+Start

  1. 安装bazel: https://docs.bazel.build/versions/master/install-ubuntu.html

  2. 其他依赖:

    git
    zip
    curl
    unzip
    python # 2.7 required by some development scripts
    python3 # Required by Bazel
    bzip2 # Needed by legacy GUI build
  3. 安装onos

    git clone https://gerrit.onosproject.org/onos
    cd onos
    bazel build onos

    onos编译安装报错解决办法

    https://blog.csdn.net/daihanglai7622/article/details/88642998?tdsourcetag=s_pctim_aiomsg

  4. 运行onos

    bazel run onos-local -- clean debug
    # 'clean' to delete all previous running status
    # 'debug' to enable remote debugging

    进入onos cli:

    tools/test/bin/onos localhost

    通过 ONOS CLI 激活应用程序 openflow和响应转发:

    onos> app activate org.onosproject.openflow
    onos> app activate org.onosproject.fwd

    打开onos web界面:

    tools /test/bin/onos-gui localhost

    或者访问 http://localhost:8181/onos/ui

    onos/rocks

  5. 运行mininet,连接onos

    sudo mn --controller remote,ip=<ONOS IP address> --topo torus,3,3

    ONOS IP address替换成运行onos机器的ip地址,如果是在本机运行,则填127.0.0.1

  6. 执行onos单元测试

    bazel query 'tests(//...)' | xargs bazel test # or use 'ot' alias
  7. 设置bash环境变量

    编辑~/.bash_profile,添加下面两行

    export ONOS_ROOT=~/onos
    source $ONOS_ROOT/tools/dev/bash_profile

    执行. ~/.bash_profile

虚拟机镜像安装教程

https://wiki.onosproject.org/display/ONOS15/Distributed+ONOS+Tutorial

ONOS安装

标签:project   block   too   code   环境   activate   环境变量   解决办法   替换   

原文地址:https://www.cnblogs.com/dockerchen/p/11876288.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!