开源MANO+VIM环境搭建终极版

Posted 云计算和网络安全技术实践

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了开源MANO+VIM环境搭建终极版相关的知识,希望对你有一定的参考价值。

在ETSI NFV第三次互操作测试前夕,OSM4.0版本终于发布,经过安装验证,终于能搭建个靠谱的官方认证的开源MANO+VIM环境了,

OSM4.0的安装非常简单,在ubuntu16.04下,

sudo apt install apt-transport-https,

wget https://osm-download.etsi.org/ftp/osm-4.0-four/install_osm.sh,

chmod +x install_osm.sh,

./install_osm.sh,

环境变量,每次重启后都要source一下,

export OSM_HOSTNAME=127.0.0.1
export OSM_SOL005=True

VIM当然就是OpenStack了,下面是kolla-ansible的安装过程,

apt-get install apt-transport-https ca-certificates curl software-properties-common,

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -,

apt-key fingerprint 0EBFCD88,

add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable",

apt-get update,

apt-get install docker-ce,

apt-get install python-pip,

apt-get install python-dev libffi-dev gcc libssl-dev python-selinux,

pip install ansible,

pip install kolla-ansible,

mkdir /etc/kolla,

cp /usr/local/share/kolla-ansible/etc_examples/kolla/globals.yml /etc/kolla/globals.yml,

cp /usr/local/share/kolla-ansible/etc_examples/kolla/passwords.yml /etc/kolla/passwords.yml,

vim /etc/kolla/globals.yml,

openstack_release: "queens"

kolla_internal_vip_address: "10.210.1.101"

network_interface: "ens160"

neutron_external_interface: "ens192"

neutron_plugin_agent: "openvswitch"
nova_console: "novnc"
enable_haproxy: "no"
enable_heat: "yes"
enable_horizon: "yes"
enable_neutron_sfc: "yes"
enable_openvswitch: "{{ neutron_plugin_agent != 'linuxbridge' }}"

kolla-genpwd,

kolla-ansible deploy,

kolla-ansible post-deploy,

pip install python-openstackclient,

source /etc/kolla/admin-openrc.sh,

嵌套虚拟化环境,把hypervisor改成qemu,

vim /etc/kolla/nova-compute/nova.conf,

virt_type = qemu,

docker stop nova_compute,

docker start nova_compute,

在OSM上添加VIM之前要查看认证参数,

在OSM上添加VIM,

开源MANO+VIM环境搭建终极版(一)

在OpenStack里提前注册VNF镜像,

wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img,

openstack image create --file="./cirros-0.3.4-x86_64-disk.img" --container-format=bare --disk-format=qcow2 cirros034,

下载VNFD和NSD模板,

https://osm-download.etsi.org/ftp/osm-3.0-three/examples/cirros_2vnf_ns/cirros_vnf.tar.gz,

https://osm-download.etsi.org/ftp/osm-3.0-three/examples/cirros_2vnf_ns/cirros_2vnf_ns.tar.gz,

注册VNFD和NSD,

开源MANO+VIM环境搭建终极版(一)

创建NS,

开源MANO+VIM环境搭建终极版(一)

成功后去OpenStack下查看VNF实例,

OSM下的整体效果就出来了,

后面会继续实践VNF的0 day configuration,auto scaling,以及服务链。

以上是关于开源MANO+VIM环境搭建终极版的主要内容,如果未能解决你的问题,请参考以下文章

在windows10下搭建ubuntu环境

[编译] 7在Linux下搭建安卓APP的开发烧写环境(makefile版-gradle版)—— 在Linux上用命令行+VIM开发安卓APP

部署篇01:搭建开源Pentaho Kettle 8.1团队开发环境开篇

openstack Q版部署-----环境搭建

optee3.14.0 qemu_v8的环境搭建篇(ubuntu20.10)--终极篇

终极答案搭建selenium3.11 +Firefox+python3.6自动化UI测试环境踩的坑