Openstack-newton手动安装配置 下载本文

外网:

内网:

下面是本人的网络配置(此虚拟机图片与本人虚拟机不同)

[root@localhost~]# cat /etc/sysconfig/network-scripts/ifcfg-eno16777736

TYPE=\BOOTPROTO=static DEFROUTE=\

IPV4_FAILURE_FATAL=\IPV6INIT=\IPV6_AUTOCONF=\IPV6_DEFROUTE=\IPV6_FAILURE_FATAL=\NAME=\

UUID=\DEVICE=\ONBOOT=\

IPADDR=192.168.174.222 NETMASK=255.255.255.0 GATEWAY=192.168.174.2 PEERDNS=\DNS1=8.8.8.8 IPV6_PEERDNS=yes IPV6_PEERROUTES=yes 修改主机名:

[root@localhost~]#hostnamectl set-hostname controller --static –transient 修改hosts文件:

[root@controller~]# vi /etc/hosts 192.168.174.222 controller 安装NTP_SERVER

[root@controller~]# yum install chrony 启动ntp:

[root@controller~]#systemctl enable chronyd.service [root@controller~]#systemctl start chronyd.service 检查ntp

[root@controller~]#chronyc sources 效果如图:

安装rdo源:

[root@controller~]# yum install centos-release-openstack-newton –y

[root@controller~]# yum install https://rdoproject.org/repos/rdo-release.rpm -y 进行升级:

[root@controller~]# yum upgrade 安装openstack客户端:

[root@controller~]# yum install python-openstackclient–y [root@controller~]# yum install openstack-selinux -y 安装mysql数据库:

[root@controller~]# yum install mariadbmariadb-server python2-PyMySQL –y 配置mysql/etc/my.cnf.d/openstack.cnf

[root@controller~]# vim /etc/my.cnf.d/openstack.cnf [mysqld]

bind-address = 0.0.0.0

default-storage-engine = innodb innodb_file_per_table max_connections = 4096 collation-server = utf8_general_ci character-set-server = utf8

完成安装:Start the database service and configure it to start when the system boots: [root@controller~]#systemctl enable mariadb.service [root@controller~]#systemctl start mariadb.service

设置mysql用户root登陆密码:root

[root@controller ~]# mysql_secure_installation 安装消息队列:Install the package

[root@controller~]# yum install rabbitmq-server –y 启动:

[root@controller~]#systemctl enable rabbitmq-server.service [root@controller~]#systemctl start rabbitmq-server.service

创建用户Add the openstack user:

[root@controller~]#rabbitmqctladd_useropenstack RABBIT_PASS

设置权限Permit configuration, write, and read access for the openstackuser

[root@controller~]#rabbitmqctlset_permissionsopenstack \

安装memcached

[root@controller~]# yum install memcached python-memcached–y 设置开机启动:

[root@controller~]#systemctl enable memcached.service [root@controller~]#systemctl start memcached.service

安装认证服务:keystone

1.To create the database, complete the following actions:

[root@controller~]#mysql -u root -proot

Create the keystone database:

MariaDB [(none)]> CREATE DATABASE keystone;

MariaDB [(none)]> GRANT ALL PRIVILEGES ON keystone.* TO

Grant proper access to the keystone database:

'keystone'@'localhost' \\