Centos7 allinone方式安装openstack

Centos7 allinone方式安装openstackCentos7allin 安装 Openstack 安装 centos7cpu2x 内存 10G 网卡 nat 或者桥接都行硬盘 60G 以上第一步 修改网卡信息 vi etc sysconfig network scripts ifcfg ens33 加不加引号都没问题广播地址 ip 地址子网掩码网关 dns 地址第二步 修改主机名和地址 hostnamectls hostnamecont 修改主机名为 controllervi etc

Centos7 allinone 安装Openstack

安装centos7  cpu2x2 内存10G+ 网卡nat或者桥接都行 硬盘60G以上

第一步:修改网卡信息

vi /etc/sysconfig/network-scripts/ifcfg-ens33  加不加引号都没问题

Centos7 allinone方式安装openstack

广播地址 ip地址 子网掩码 网关 dns地址

第二步:修改主机名和地址

hostnamectl set-hostname controller   修改主机名为controller

vi /etc/hosts                        编辑hosts文件

ip controller controller.localdomain     一定要注意格式 IP 主机名 主机名.localdomain

第三步:关闭防火墙和网络管理器 启用网络

systemctl disable firewalld

systemctl stop firewalld

systemctl disable NetworkManager

systemctl stop NetworkManager

systemctl enable network

systemctl start network

启用网络

vi /etc/sysconfig/network    添加如下

Centos7 allinone方式安装openstack

第四步:修改域名解析服务器

Centos7 allinone方式安装openstack

vi /etc/resolv.conf

第四步:修改SElinux

vi /etc/selinux/config

  Centos7 allinone方式安装openstack

Centos7 allinone方式安装openstack

重启一下!!!

第五步:下载openstack软件包和安装包

yum install -y centos-release-openstack-train

yum install -y openstack-packstack

yum update -y

yum repolist all 

第六步:开始安装:packstack –allinone

第七步:获取密码:cat /root/keystonerc_admin

完成

[root@controller ~]# packstack –allinone

Welcome to the Packstack setup utility

The installation log file is available at: /var/tmp/packstack/–MOOHEP/openstack-setup.log

Packstack changed given value  to required value /root/.ssh/id_rsa.pub

Installing:

Clean Up                                             [ DONE ]

Discovering ip protocol version                      [ DONE ]

Setting up ssh keys                                  [ DONE ]

Preparing servers                                    [ DONE ]

Pre installing Puppet and discovering hosts’ details [ DONE ]

Preparing pre-install entries                        [ DONE ]

Setting up CACERT                                    [ DONE ]

Preparing AMQP entries                               [ DONE ]

Preparing MariaDB entries                            [ DONE ]

Fixing Keystone LDAP config parameters to be undef if empty[ DONE ]

Preparing Keystone entries                           [ DONE ]

Preparing Glance entries                             [ DONE ]

Checking if the Cinder server has a cinder-volumes vg[ DONE ]

Preparing Cinder entries                             [ DONE ]

Preparing Nova API entries                           [ DONE ]

Creating ssh keys for Nova migration                 [ DONE ]

Gathering ssh host keys for Nova migration           [ DONE ]

Preparing Nova Compute entries                       [ DONE ]

Preparing Nova Scheduler entries                     [ DONE ]

Preparing Nova VNC Proxy entries                     [ DONE ]

Preparing OpenStack Network-related Nova entries     [ DONE ]

Preparing Nova Common entries                        [ DONE ]

Preparing Neutron API entries                        [ DONE ]

Preparing Neutron L3 entries                         [ DONE ]

Preparing Neutron L2 Agent entries                   [ DONE ]

Preparing Neutron DHCP Agent entries                 [ DONE ]

Preparing Neutron Metering Agent entries             [ DONE ]

Checking if NetworkManager is enabled and running    [ DONE ]

Preparing OpenStack Client entries                   [ DONE ]

Preparing Horizon entries                            [ DONE ]

Preparing Swift builder entries                      [ DONE ]

Preparing Swift proxy entries                        [ DONE ]

Preparing Swift storage entries                      [ DONE ]

Preparing Gnocchi entries                            [ DONE ]

Preparing Redis entries                              [ DONE ]

Preparing Ceilometer entries                         [ DONE ]

Preparing Aodh entries                               [ DONE ]

Preparing Puppet manifests                           [ DONE ]

Copying Puppet modules and manifests                 [ DONE ]

Applying 192.168.31.140_controller.pp

192.168.31.140_controller.pp:                        [ DONE ]          

Applying 192.168.31.140_network.pp

192.168.31.140_network.pp:                           [ DONE ]       

Applying 192.168.31.140_compute.pp

192.168.31.140_compute.pp:                           [ DONE ]       

Applying Puppet manifests                            [ DONE ]

Finalizing                                           [ DONE ]

  Installation completed successfully

Additional information:

 * Parameter CONFIG_NEUTRON_L2_AGENT: You have chosen OVN Neutron backend. Note that this backend does not support the VPNaaS or FWaaS services. Geneve will be used as the encapsulation method for tenant networks

 * A new answerfile was created in: /root/packstack-answers–.txt

 * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.

 * File /root/keystonerc_admin has been created on OpenStack client host 192.168.31.140. To use the command line tools you need to source the file.

 * To access the OpenStack Dashboard browse to http://192.168.31.140/dashboard .

Please, find your login credentials stored in the keystonerc_admin in your home directory.

 * Because of the kernel update the host 192.168.31.140 requires reboot.

 * The installation log file is available at: /var/tmp/packstack/–MOOHEP/openstack-setup.log

 * The generated manifests are available at: /var/tmp/packstack/–MOOHEP/manifests

You have new mail in /var/spool/mail/root

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

unset OS_SERVICE_TOKEN

    export OS_USERNAME=admin

    export OS_PASSWORD=’20188d742e0a4df6′

    export OS_REGION_NAME=RegionOne

    export OS_AUTH_URL=http://192.168.31.140:5000/v3

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

export OS_PROJECT_NAME=admin

export OS_USER_DOMAIN_NAME=Default

export OS_PROJECT_DOMAIN_NAME=Default

export OS_IDENTITY_API_VERSION=3

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/227618.html原文链接:https://javaforall.net

(0)
上一篇 2026年3月16日 下午8:53
下一篇 2026年3月16日 下午8:54


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号