zoukankan      html  css  js  c++  java
  • openstack Q版部署-----环境搭建(1)

    浏览器建议全程使用火狐或者谷歌,不然VNC可能会有问题

    一、环境准备

    系统:centos7.2 x86_64
    controller 2c+8g+40g 10.1.80.110 可以nat上网
    compute1  2c+8g+40g 10.1.80.111 可以nat上网
    neutron   2c+8g+40g 10.1.80.112 可以nat上网
    cinder   2c+8g+40g 10.1.80.114 可以nat上网

    二、配置主机名及hosts和防火墙(只演示一台,其他机器配置方式一样)

    vim /etc/hosts加入

    10.1.80.110 controller 
    10.1.80.111 compute1
    10.1.80.112 neutron

    修改主机名

    hostnamectl set-hostname controller
    hostnamectl set-hostname compute1
    hostnamectl set-hostname neutron

    关闭防火墙

    systemctl stop firewalld.service
    systemctl disable firewalld.service

    关闭网络管理NetworkManager

    systemctl stop NetworkManager.service
    systemctl disable NetworkManager.service

    关闭selinux

     vim /etc/selinux/config

    SELINUX=disabled

    三、时间同步配置

    所有服务器安装chrony

    yum install chrony –y

    配置服务端的chrony

    vi  /etc/chrony.conf
    allow 10.1.0.0/16

    其他客户端配置

    vim /etc/chrony.conf
    server 10.1.80.110 iburst  #只保留这一行

    将所有服务器时间设置成对应时区(上海为例)

    timedatectl set-timezone Asia/Shanghai

    将所有chrony重启和加入开机自启动

    systemctl enable chronyd.service
    systemctl start chronyd.service
    systemctl status chronyd.service

    同步时钟(所有节点)

    chronyc sources


    确保所以的时间都是同步的。
    使用timedatectl status查看:
    [root@openstack-compute ~]# timedatectl status

    四、更新yum源(所有服务器)

    下载新yum源

    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

    更新yum源

    yum clean all
    yum makecache

    五、安装openstack软件仓库(所有服务器)

    yum安装Q版仓库

    yum install centos-release-openstack-queens -y

    更新所有节点软件包

    yum upgrade -y

    安装open stack client端

    yum install python-openstackclient -y

     安装open stack的selinux(如果关闭了服务器selienx可以不安)

    由于我提前关闭了,所以此处我没有安装

    yum install openstack-selinux -y
    ---当才华撑不起你的野心的时候,请努力!---
  • 相关阅读:
    SQL server查询笔记
    thinkphp ajax无刷新上传头像
    JSTL
    EL表达式
    jBox 弹框内容交互
    网页可读不可写
    readonly与disable的区别
    vuex 的使用
    页面向上滚动
    按照数组中的对象属性进行排序
  • 原文地址:https://www.cnblogs.com/jinyuanliu/p/10303373.html
Copyright © 2011-2022 走看看