下载地址:
解压该文件。
unzip distribution-karaf-0.5.2-Boron-SR2
运行OpenDaylight.
cd distribution-karaf-0.5.2-Boron-SR2/bin
./karaf
安装feature:
安装支持REST API的组件:
opendaylight-user@root>feature:install odl-restconf
安装L2 switch和OpenFlow插件:
opendaylight-user@root>feature:install odl-l2switch-switch
opendaylight-user@root>feature:install odl-openflowplugin-all
安装基于karaf控制台的md-sal控制器功能,包括nodes、yang UI、Topology:
opendaylight-user@root>feature:install odl-mdsal-apidocs
安装DLUX功能
opendaylight-user@root>feature:install odl-dlux-all
常见问题:
1.如果使用如下命令创建网络拓扑后:
sudo mn –controller=remote,ip=127.0.0.1 –topo linear,2
通过命令:
pingall
测试网络的连通性时,丢包率很高。可能的原因是:控制器上的”odl-l2switch-switch”插件崩溃。
解决方法是通过logout退出karaf平台,进入上级目录,删除data目录:rm –r data,进入bin目录:cd bin,执行./karaf clean,再次重复上面的安装组件操作。
安装:
feature:install odl-restconf odl-l2switch-switch odl-openflowplugin-flow-services-ui odl-mdsal-apidocs odl-dlux-all
About installation of ovsdb feature, the total name is “odl-ovsdb-southbound-impl-ui”, sure that your computer is disconnected with the Interrnet. If some exceptions take place, you need to follow the step above and do it again.
0.6.0-Carbon版本安装feature:
feature:install odl-restconf odl-l2switch-switch odl-openflowplugin-flow-services-ui odl-mdsal-apidocs odl-dluxapps-yangman
其中odl-dluxapps-applications这个组件,包括odl-dluxapps-nodes、odl-dluxapps-yangui、odl-dluxapps-yangvisualizer组件。
2.有时会出现无法登录进入OpenDaylight主界面(提示:Unable to Login)的问题。一种原因可能是控制器所在机器的内存不足。此原因排除外,可以尝试重新安装所有的组件。
参考资料:http://www.sdnlab.com/1931.html
http://docs.opendaylight.org/en/stable-beryllium/getting-started-guide/installing_opendaylight.html
http://docs.opendaylight.org/en/stable-boron/getting-started-guide/installing_opendaylight.html