设为首页 收藏本站
查看: 1547|回复: 0

[经验分享] centos7 openstack kilo版本一键安装

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2015-11-2 11:05:09 | 显示全部楼层 |阅读模式
1
最近在学习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的命名方式,所以主机名要这样设置,名字可以随意取

[iyunv@localhost~]#hostname controller
[iyunv@localhost~]#vi /etc/hosts
10.23.21.71 controller
[iyunv@localhost~]# hostname -f
controller
[iyunv@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密码是随机的)

[iyunv@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
[iyunv@controller centos]#

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




运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-134022-1-1.html 上篇帖子: openstack kilo开启lbaas功能 下篇帖子: openstack i版本 单用户模式(rhel7)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表