一.opencontrail install:

https://github.com/Juniper/contrail-installer

cd contrail-installer
cp samples/localrc-all localrc

修改localrc中一些项:

CONTRAIL_DEFAULT_INSTALL - Set this to True for installation from OpenContrail binary packages. When set to False, trunk OpenContrail bits will be downloaded and compiled.

LAUNCHPAD_BRANCH=PPA - Applicable only when CONTRAIL_DEFAULT_INSTALL is set to True. It specifies to use released binary packages for installation. Default is to use latest snapshots as this knob is commented out by default in sample localrc.

PHYSICAL_INTERFACE - This is external interface Vrouter should bind to. It should have a valid IP address configured. For example eth0

INSTALL_PORFILE - Set this to ALL to for an all in one node.

USE_SCREEN - Set this to True to launch contrail modules in a screen session called "contrail". Connect to screen session for any troubleshooring of contrail modules.

LOGFILE - Specifiy logfile for contrail.sh runs. By default this is log/contrail.log in contrail-installer directory

安装步骤:

cd contrail-installer
cp samples/localrc-all localrc (edit localrc as needed)
sudo -E add-apt-repository -y cloud-archive:kilo
./contrail.sh build
由于被墙,手动下载repo放到/usr/bin 修改contrail.sh:
# basic dependencies
592     if ! which repo > /dev/null 2>&1 ; then
593         #wget http://commondatastorage.googleapis.com/git-repo-downloads/repo
594         chmod 0755 repo
595         #sudo mv repo /usr/bin
596     fi
添加公钥(ssh-keygen -t rsa), https://github.com/settings/ssh
git config --global user.email "liukuan73@gmail.com"
git config --global user.name "lk"
$repo init -u git@github.com:Juniper/contrail-vnc

./contrail.sh install
./contrail.sh configure
./contrail.sh start

附我的localrc:

STACK_DIR=$(cd $(dirname $0) && pwd)

LOG_DIR=$STACK_DIR/log/screens
LOG=True
DEBUG=True
LOGFILE=$STACK_DIR/log/contrail.log
LOGDAYS=1
USE_SCREEN=True

PASSWORD=123456
DATABASE_PASSWORD=$PASSWORD
RABBIT_PASSWORD=$PASSWORD
SERVICE_TOKEN=$PASSWORD
SERVICE_PASSWORD=$PASSWORD
ADMIN_PASSWORD=$PASSWORD

#set loglevel to 1/2/3 . Always stderr into logfile,console.
#For LOG_LEVEL 1 stdout into logfile.
#For LOG_LEVEL 2 stdout into logfile and xtrace commands into console.
#For LOG_LEVEL 3 stdout and xtrace into logfile,console.

LOG_LEVEL=3

SERVICE_TIMEOUT=180
SERVICE_HOST=10.133.19.110

#use only when INSTALL_PROFILE=COMPUTE, provide IP of compute node
#COMPUTE_HOST_IP=<IP of compute-node>

INSTALL_PROFILE=ALL
PHYSICAL_INTERFACE=eth1

# to get source code make it as False
#CONTRAIL_DEFAULT_INSTALL=False

# to get the ppa packages uncomment
#LAUNCHPAD_BRANCH=r2.20

# repo proto is https or (default) ssh. Leave commented for ssh
# CONTRAIL_REPO_PROTO=https

# proto for openstack bits. Use HTTPS if git is firewalled
GIT_BASE=https://github.com

CASS_MAX_HEAP_SIZE=500M
CASS_HEAP_NEWSIZE=100M

# number of jobs used to build
# NB_JOBS=1

# target of the build debug/production
# TARGET=production

二.安装devstack:

1. Goto "/opt/stack/neutron", then clone or download "contrail-neutron-plugin"

#cd /opt/stack/neutron

#git clone https://github.com/Juniper/contrail-neutron-plugin.git OR #wget https://github.com/Juniper/contrail-neutron-plugin/archive/v2.01.tar.gz

#tar -zxvf /opt/stack/neutron/v2.01.tar.gz

#cp -r contrail-neutron-plugin-2.01/neutron_plugin_contrail ./

2. 下载安装脚本到"devstack/lib/neutron_plugins/"

https://github.com/Juniper/contrail-installer/blob/master/devstack/lib/neutron_plugins/opencontrail

or

https://github.com/dsetia/devstack/blob/master/lib/neutron_plugins/contrail

3. Add following lines in localrc

VA_VIF_DRIVER=nova_contrail_vif.contrailvif.VRouterVIFDriver
APISERVER_IP=10.133.19.110
Q_HOST=10.133.19.109
HOST_IP=10.133.19.110
SERVICE_HOST=10.133.19.109

#OpenContrail API Server

APISERVER_IP=192.168.56.102
#OpenContrail Plugin
Q_PLUGIN=opencontrail
#OpenContrail nova plugin

NOVA_VIF_DRIVER=nova_contrail_vif.contrailvif.VRouterVIFDriver

Example localrc

STACK_DIR=$(cd $(dirname $0) && pwd)

LOG_DIR=$STACK_DIR/log/screens
LOG=True
DEBUG=True
LOGFILE=$STACK_DIR/log/stack.log
LOGDAYS=1
SCREEN_LOGDIR=$LOG_DIR

disable_service n-net
enable_service q-svc
enable_service q-meta
#enable_service neutron

# not used by contrail
disable_service q-agt
disable_service q-dhcp
disable_service q-l3

DATABASE_PASSWORD=contrail123
RABBIT_PASSWORD=contrail123
SERVICE_TOKEN=contrail123
SERVICE_PASSWORD=contrail123
ADMIN_PASSWORD=contrail123
#OpenContrail API Server
APISERVER_IP=192.168.56.102
#OpenContrail Plugin
Q_PLUGIN=opencontrail
PHYSICAL_INTERFACE=eth1

# proto for openstack bits. Use HTTPS if git is firewalled
GIT_BASE=https://git.openstack.org

#OpenContrail nova plugin
NOVA_VIF_DRIVER=nova_contrail_vif.contrailvif.VRouterVIFDriver
4.  Comment/delete following line from stack.sh(Optional Step)
create_neutron_initial_network

5. ./stack.sh

In this step, we just want to get /neutron.conf. There will be error when starting q-svc, but it doesn't matter.

6..Configure contrail api_extensions_path  and core_plugin in /etc/neutron/neutron.conf
#vim /etc/neutron/neutron.conf
 [DEFAULT]
 api_extensions_path = extensions:/opt/stack/neutron/neutron_plugin_contrail/extensions
 core_plugin = neutron_plugin_contrail.plugins.opencontrail.contrail_plugin.NeutronPluginContrailCoreV2

7.Enable contrail_extensions (Example ipam) in /etc/neutron/plugins/opencontrail/ContrailPlugin.ini

#vim /etc/neutron/plugins/opencontrail/ContrailPlugin.ini
[APISERVER]
contrail_extensions=ipam:neutron_plugin_contrail.plugins.opencontrail.contrail_plugin_ipam.NeutronPluginContrailIpam

8. ./unstack.sh ./clean.sh ./stack.sh

9. Verification

List all extensions and check for the "ipam" extension

#curl -s -H "X-Auth-Token: $(keystone token-get | awk '/ id / {print $4}')" 192.168.56.102:9696/v2.0/extensions | python -mjson.tool
OR
#neutron ext-list

http://fosshelp.blogspot.jp/2015/04/openstack-devstack-opencontrail-enable.html

http://fosshelp.blogspot.in/2015/04/openstack-devstack-opencontrail-localrc.html

Openstack Integration with VMware vCenter by Devstack and Opencontrail相关推荐

  1. VMware vCenter Server 8.0U1 发布 - 集中式管理 vSphere 环境

    请访问原文链接:VMware vCenter Server 8.0U1 - 集中式管理 vSphere 环境,查看最新版.原创作品,转载请保留出处. 作者主页:sysin.org 2023-04-18 ...

  2. vmware vcenter 5.5 + OpenStack Havana vlan 网络部署

    OS: RHEL6.5 OpenStack: Havana Icehouse Controller: KVM Compute: Vmware vcenter 5.5 1. 安装vcenter以及下载 ...

  3. 服务器虚拟机6的安装教程,VMware vCenter 6.7 安装过程(图文教程)

    本文关键详细介绍了VMware vCenter 6.7 安装全过程,原文中根据实例编码详细介绍的十分详尽,对大伙儿的学习培训或是工作中具备一定的参照学习培训使用价值,必须的小伙伴们下边伴随着我来一起学 ...

  4. Vmware Vcenter 5.1 部署安装过程 part 4 vmware vcenter 安装步骤

    Vmware  Vcenter 5.1  部署安装过程 part 4 vmware vcenter  安装步骤 作者:黄鑫      时间:2013-8-14    QQ:153890227(欢迎交流 ...

  5. SCVMM2012 SP1 添加VMware vCenter服务器

    SCVMM2012 SP1 添加VMware vCenter服务器 1. 点击 添加VMware vCenter服务器 2. 输入 计算机名.端口号,运行方式账户,此处不勾选"在安全模式下与 ...

  6. VMware vCenter 6.0 安装及群集配置介绍

    一.介绍 VMware vCenter Server 提供了一个可伸缩.可扩展的平台,为虚拟化管理奠定了基础.可集中管理VMware vSphere环境,与其他管理平台相比,极大地提高了 IT 管理员 ...

  7. 公司虚拟化平台VMware vCenter Server无法连接故障排查解决

    1.环境: 系统:Windows 2008R2 vCenter版本:VMware vCenter Server 5.1.799731 数据库:Oracle 11.2.0 2.故障描述: 用VMware ...

  8. 虚拟化--027 VMware vCenter Server Heartbeat 6.5安装教程

    027 VMware vCenter Server Heartbeat 6.5安装教程 参考链接 http://url.cn/cd1h4l 转载于:https://blog.51cto.com/wil ...

  9. VMware vCenter Converter Standlone迁移手册

    目   录 1.VMware vCenter Converter Standalone 简介 3 1.1  Converter Standalone 组件及克隆方式 3 1.2  Converter ...

  10. VMware vCenter Converter:将物理机转换为虚拟机

    https://www.vmware.com/cn/products/converter.html Vmware Vcenter Converter 详细安装配置及功能介绍

最新文章

  1. 【HDU】1084 What Is Your Grade? (结构体 sort)
  2. iOS 去除导航栏下的黑线
  3. 关键字提取_Excel根据2个关键字,批量提取字符
  4. 面向对象设计启发规则
  5. Lua中实现类似C#的事件机制
  6. Lua 笔记--表达式
  7. https://blog.csdn.net/gyming/article/details/46611369
  8. CentOS 6.x x86_64 编译安装gcc 4.8.2
  9. php 不通过表单post,php – 简单表单不通过_POST发送数据
  10. 环境影响评价知识点整理
  11. 计算机地图制图符号制作的心得,计算机地图制图.docx
  12. 电脑没有声音,显示“未插入耳机或扬声器”,检测不到Realtek高清晰音频管理器...
  13. 操作系统安装磁盘清理方法
  14. android 呼吸灯权限_Android 呼吸灯流程分析
  15. 安卓手机作为文件共享服务器,安卓手机的文件共享应该怎么操作?
  16. Golang创建DLL
  17. 关于监控服务器指标、CPU、内存、警报的一些解决方案
  18. 【转】最浅显的LDAP介绍
  19. Ubuntu 20.04 LTS 关闭 Swap 分区
  20. 首拆:iFixit完整版 iPhone X拆解报告

热门文章

  1. Object.keys()的用法
  2. html连接到mysql数据库_怎么连接HTML网页到数据库?
  3. 如何抢到腾讯云校园1元优惠资格(新版腾讯云)-更新
  4. 人人都是产品经理 读后感
  5. shadow文件的MD5密码破解
  6. 使用Xshell重启远程服务器指令
  7. 软考高项论文范文——论信息系统项目的沟通管理
  8. 论文阅读:《Bridging the Gap in 3D Object Detection for Autonomous Driving》
  9. 打通最后100米:苏宁小店如何成为家门口的“共享冰箱”
  10. nodeJs 实现邮箱验证码注册