码迷,mamicode.com
首页 > 其他好文 > 详细

centos7 openstack kilo版本一键安装

时间:2015-10-30 15:33:39      阅读:335      评论:0      收藏:0      [点我收藏+]

标签:centos7   openstack kilo   

最近在学习openstack的使用,由于是出于学习的目的使用的是all-in-one方式,在此记录在centos7系统是使用all-in-one方式安装openstack kilo版本的步骤。

centos7系统使用新的接口命名方式,在安装openstack前需要修改接口名称

修改接口名称:

(To restore the old naming convention, you need to edit the /etc/default/grub file and add net.ifnames=0 biosdevname=0 at the end of the GRUB_CMDLINE_LINUX variable:)

/etc/default/grub

GRUB_CMDLINE_LINUX="rd.lvm.lv=centos/swap vconsole.keymap=us crashkernel=auto rd.lvm.lv=centos/root vconsole.font=latarcyrheb-sun16 rhgb quiet net.ifnames=0 biosdevname=0"

# grub2-mkconfig -o /boot/grub2/grub.cfg

Generating grub configuration file ...

Found linux image: /boot/vmlinuz-3.10.0-123.el7.x86_64

Found initrd image: /boot/initramfs-3.10.0-123.el7.x86_64.img

Found linux image: /boot/vmlinuz-3.10.0-123.9.3.el7.x86_64

Found initrd image: /boot/initramfs-3.10.0-123.9.3.el7.x86_64.img

Found linux image: /boot/vmlinuz-0-rescue-eda26f60d4c948d09cd50d9086a87fcc

Found initrd image: /boot/initramfs-0-rescue-eda26f60d4c948d09cd50d9086a87fcc.img

done

Update the network interface configuration file (here the initial interface name was enp2s0 and the new one is eth0):


在cd /etc/sysconfig/network-scripts目录下修改接口的名称,修改为eth格式



1、修改系统更新源(强烈建议更新,如果使用默认的系统源,会在安装过程中因为无法下载文件导致安装失败)

wget http://mirrors.163.com/.help/CentOS6-Base-163.repo  

mv CentOS-Base.repoCentOS-Base.repo.bak  

mv CentOS6-Base-163.repo CentOS-Base.repo 


2、设置FQDN(使用all-in-one方式可以不做配置)

因为RDO的安装方式是通过puppet进行安装需要用到FQDN的命名方式,所以主机名要这样设置,名字可以随意取


[root@localhost~]#hostname controller

[root@localhost~]#vi /etc/hosts

10.23.21.71 controller

[root@localhost~]# hostname -f

controller

[root@localhost~]#reboot


3、关闭系统NetworkManager(In case your system is running with NetworkManager, you need to disable it.)

#systemctl stop NetworkManager

#systemctl disable NetworkManager

#systemctl enable network


4、安装openstack

Step 1: Software repositories


Update your current packages:

#sudo yum update -y

Setup the RDO repositories:

#sudo yum install -y https://rdoproject.org/repos/rdo-release.rpm


Step 2: Install Packstack Installer


#sudo yum install -y openstack-packstack


Step 3: Run Packstack to install OpenStack


Packstack takes the work out of manually setting up OpenStack. For a single node OpenStack deployment, run the following command.

#packstack --allinone


5、查看admin登录密码(安装时,admin密码是随机的)


[root@controller centos]# cat /root/keystonerc_admin 

unset OS_SERVICE_TOKEN

export OS_USERNAME=admin

export OS_PASSWORD=87269744dfcf4f70

export OS_AUTH_URL=http://10.23.21.71:5000/v2.0

export PS1=‘[\u@\h \W(keystone_admin)]\$ ‘


export OS_TENANT_NAME=admin

export OS_REGION_NAME=RegionOne

[root@controller centos]# 


登录系统:http://$YOURIP/dashboard




本文出自 “网络的那个地方” 博客,请务必保留此出处http://fhjx1234.blog.51cto.com/1022919/1708065

centos7 openstack kilo版本一键安装

标签:centos7   openstack kilo   

原文地址:http://fhjx1234.blog.51cto.com/1022919/1708065

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!