学习openstack 安装实验环境,经过诸多挫折,顺利搭建,记录如下,以作备忘。
环境: linux ubuntu16.04.3 , 虚拟机上安装,openstack是由devstack安装 版本stable/pike
两主机,一个是controller控制节点,安装所有组件,另一台是compute1计算节点
控制主机三个虚拟网卡,计算主机两个虚拟网卡
首先两台电脑安装 ubuntu16.04.3 server版,controller第一网卡设置静态ip:192.168.0.102, 计算节点compute第一个网卡ip:192.168.0.103,安装openssh 并设置允许root远程登录
分别在两台主机开始安装以下步骤:
1.修改apt为国内源
#vi /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
也可以修改pip源
#vi /etc/pip.conf
[global]
no-binary = libvirt-p