虛擬化-ovn入門到精通(二)

大家好,我是小白。 繼續(xù)給大家分享一下openstack和kubernetes下熱門的SDN技術(shù)ovn ,今天了解一下ovn的安裝部署。

ovn 安裝部署

基于CentOS 7 x86_64

| 10.175.160.66 | Central | 網(wǎng)卡eth0/eth1 |

| 10.175.160.59 | Node1 | 網(wǎng)卡eth0/eth1 | vm1/vm11 |

| 10.175.160.60 | Node2 | 網(wǎng)卡eth0/eth1 | vm2/vm12 |

一、 系統(tǒng)初始化

配置repo源,ovn/ovs版本2.11.0

#vim /etc/yum.repos.d/stein.repo

[openstack-stein]

name=OpenStack Stein Repository

#baseurl=http://mirror.centos.org/centos/7/cloud/$basearch/openstack-stein/

mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=cloud-openstack-stein

gpgcheck=0

enabled=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud

關(guān)閉防火墻/selinux

#systemctl stop firewalld

#systemctl disable firewalld

二、部署服務(wù)

Central 節(jié)點(diǎn)

# yum install -y openvswitch-ovn-central.x86_64 openvswitch-ovn-host.x86_64

#yum install libibverbs -y

# systemctl enable ovn-northd openvswitch ovn-controller

# systemctl start ovn-northd ovn-controller

Node節(jié)點(diǎn)

# yum install -y openvswitch.x86_64 openvswitch-ovn-host.x86_64

#yum install libibverbs -y

#systemctl enable openvswitch ovn-controller

#systemctl start ovn-controller

三、 配置OVN

配置ovs與ovn相連接

central節(jié)點(diǎn)

#export Centralip=10.175.160.66

#ovn-nbctl set-connection ptcp:6641:$Centralip

#ovn-sbctl set-connection ptcp:6642:$Centralip

#netstat -ntlp

#ovs-vsctl set open . external-ids:ovn-remote=tcp:$Centralip:6642

overlay網(wǎng)絡(luò)使用geneve,當(dāng)然支持geneve,vxlan,gre等

#ovs-vsctl set open . external-ids:ovn-encap-type=geneve

#ovs-vsctl set open . external-ids:ovn-encap-ip=$Centralip

node 1 節(jié)點(diǎn)

#export Centralip=10.175.160.66

#export NodeIP=10.175.160.59

#ovs-vsctl set open . external-ids:ovn-remote=tcp:$Centralip:6642

#ovs-vsctl set open . external-ids:ovn-encap-type=geneve

#ovs-vsctl set open . external-ids:ovn-encap-ip=$NodeIP

node2 節(jié)點(diǎn)

#export Centralip=10.175.160.66

#export NodeIP=10.175.160.60

#ovs-vsctl set open . external-ids:ovn-remote=tcp:$Centralip:6642

#ovs-vsctl set open . external-ids:ovn-encap-type=geneve

#ovs-vsctl set open . external-ids:ovn-encap-ip=$NodeIP


所有服務(wù)器重啟一下

#reboot

至此安裝完成~

排錯(cuò)

net_mlx5: cannot load glue library: libibverbs.so.1: cannot open shared object file: No such file or directory

net_mlx5: cannot initialize PMD due to missing run-time dependency on rdma-core libraries (libibverbs, libmlx5)

PMD: net_mlx4: cannot load glue library: libibverbs.so.1: cannot open shared object file: No such file or directory

PMD: net_mlx4: cannot initialize PMD due to missing run-time dependency on rdma-core libraries (libibverbs, libmlx4)

解決:#yum install libibverbs -y

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容