9.29 OpenDaylight官方网站宣布其最新版本Helium(氦)发布,比原来宣称在8月份发布晚了些时间,目前已经提供该版本下载,下载地址:http://www.opendaylight.org/software/downloads,此次Helium下载版本只有一个,相比原来简单多了。因为OpenDaylight相对比较复杂,很多人称之为大坑,已经有若干研究该开放项目的团队打了退堂鼓。 以下为安装初级教程,主要在SDNAP网站虚机安装一个OpenDaylight,并且能体现WebUI,也能接入其他OVS设备即可,非常初级的教程,方便同学们快速入手。 参考:
- 官方OpenDaylgith 安装PDF:Installation Guide
- 官方Wiki页面:OpenDaylight dlux:Dlux Karaf Feature
安装ODL步骤(之前需要安装好Java环境,参考早期教程):
- 在前面提及的Download页面下载zip包,解压zip文件:unzip distribution-karaf-0.2.0-Helium.zip
- cd distribution-karaf-0.2.0-Helium
- ./bin/karaf
________ ________ .__ .__ .__ __ \_____ \ ______ ____ ____ \______ \ _____ ___.__.| | |__| ____ | |___/ |_ / | \\____ \_/ __ \ / \ | | \\__ \< | || | | |/ ___\| | \ __\ / | \ |_> > ___/| | \| ` \/ __ \\___ || |_| / /_/ > Y \ | \_______ / __/ \___ >___| /_______ (____ / ____||____/__\___ /|___| /__| \/|__| \/ \/ \/ \/\/ /_____/ \/ Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown OpenDaylight. opendaylight-user@root>
要让其显示webUI必须安装相关的DLUX 安装DLUX步骤:
- Install L2 switch and openflow plugin
opendaylight-user@root>feature:install odl-restconf-all opendaylight-user@root>feature:install odl-l2switch-switch opendaylight-user@root>feature:install odl-openflowplugin-all
- Install basic md-sal controller features on the Karaf console
opendaylight-user@root>feature:install odl-mdsal-all
- Then, install dlux feature
opendaylight-user@root>feature:install odl-dlux-all
- Install ad-sal features on the Karaf console.
opendaylight-user@root>feature:install odl-adsal-northbound
如果安装出现问题和冲突,退出karaf console,执行./karaf clean
跟参考说明略有不同,安装完后等一段时间既可以访问你的OpenDaylight的webUI页面了,webUI也不是原来8080页面了,而是8181页面了,输入:http://<IP of your machine>:8181/dlux/index.html
默认用户名和密码都为:admin
在karaf控制台下,我们可以通过logout退出和关闭OpenDaylight的服务,通过./bin/start 后台重启ODL。提醒:启动过程非常漫长,请耐心等待。
前段时间教程有些误导,因为各组件顺序问题可能导致后无法登陆,感谢群友#上海-jerome的分享下解决了这个问题