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

ovn编译

时间:2020-05-16 16:33:36      阅读:68      评论:0      收藏:0      [点我收藏+]

标签:pms   tom   war   prefix   -o   eating   system   gen   npe   

 编译参考:https://github.com/ovn-org/ovn/blob/master/Documentation/intro/install/general.rst

 

 

 git clone http://github.com/openvswitch/ovs.git

 

yum -y install python3
 pip3 install six
[root@kunpeng82 ovs]# ls ~/rpmbuild/
BUILD  BUILDROOT  RPMS  SOURCES  SPECS  SRPMS
[root@kunpeng82 ovs]# 

./boot.sh
 

 

./configure --with-ovs-source=../rpmbuild/SOURCES/openvswitch-2.12.0/ --with-ovs-build=../rpmbuild/BUILD/openvswitch-2.12.0/   
make

报undefined reference to `ovs_cmdl_env_parse_all‘

1、 重新下载一个openvswitch-2.13.0

2、先编译openvswitch-2.13.0

3、./configure --with-ovs-source=../ovs  --with-ovs-build=../ovs

4、make -j 96  编译 ovn

5、make install

[root@kunpeng82 ovn]# export PATH=$PATH:/usr/local/share/ovn/scripts
[root@kunpeng82 ovn]# ovn-ctl start_northd
/usr/local/etc/ovn/ovnnb_db.db does not exist ... (warning).
Creating empty database /usr/local/etc/ovn/ovnnb_db.db [  OK  ]
/usr/local/etc/ovn/ovnsb_db.db does not exist ... (warning).
Creating empty database /usr/local/etc/ovn/ovnsb_db.db [  OK  ]
Starting ovn-northd [  OK  ]
[root@kunpeng82 ovn]# 
[root@kunpeng82 ovn]# export PATH=$PATH:/usr/local/share/ovn/scripts
[root@kunpeng82 ovn]# ovn-ctl start_northd
/usr/local/etc/ovn/ovnnb_db.db does not exist ... (warning).
Creating empty database /usr/local/etc/ovn/ovnnb_db.db [  OK  ]
/usr/local/etc/ovn/ovnsb_db.db does not exist ... (warning).
Creating empty database /usr/local/etc/ovn/ovnsb_db.db [  OK  ]
Starting ovn-northd [  OK  ]
[root@kunpeng82 ovn]# ovn-ctl start_controller
Starting ovn-controller [  OK  ]

 

[root@kunpeng82 ~]# ovn-ctl stop_controller
Exiting ovn-controller (15798) [  OK  ]
[root@kunpeng82 ~]# ovn-ctl stop_northd
Exiting ovn-northd (15732) [  OK  ]

 

1 # *Linux Environment: CentOS 73.10.0-327.18.2.el7.x86_64)
 2   
 3 # Install depen package
 4 yum install gcc make python-devel openssl-devel kernel-devel graphviz  5     kernel-debug-devel autoconf automake rpm-build redhat-rpm-config  6     libtool checkpolicy selinux-policy-devel
 7   
 8 # Download code
 9 git clone https://github.com/openvswitch/ovs.git
10   
11 # Start build
12 cd $OVS_DIR
13 # Bootstrapping
14 ./boot.sh
15 # Configuring (special --prefix and --with-linux  e.g  ./configure  --with-linux=/lib/modules/$(uname -r)/build)
16 ./configure
17 #Build
18 make
19   
20 # 安装方式一 源代码安装
21  make install
22 ## Install kernel modules
23  make modules_install
24 ## Start service
25 ### Start openvswitch service
26 /usr/local/share/openvswitch/scripts/ovs-ctl start --system-id=random
27 ### Start ovn-northd
28 /usr/local/share/openvswitch/scripts/ovn-ctl start_northd
29 ### Start ovn-controller
30 /usr/local/share/openvswitch/scripts/ovn-ctl start_controller

 

ovn编译

标签:pms   tom   war   prefix   -o   eating   system   gen   npe   

原文地址:https://www.cnblogs.com/dream397/p/12900760.html

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