在KVM最小化搭建openstack平台 --快速部署openstack

时间:2025-03-25 14:34:57
[root@QQZ ~]# yum -y install iaas-xiandian [root@QQZ ~]# cd /etc/xiandian [root@QQZ xiandian]# ll 总用量 4 -rwxr-xr-x 1 root root 2798 413 2016 openrc.sh [root@QQZ xiandian]# vi [2]+ Stopped vi openrc.sh [root@QQZ xiandian]# vi //修改文件 ##--------------------system config--------------------## ##Controller Server Manager IP. example: HOST_IP=192.168.19.128 ##Controller Server hostname. example:controller HOST_NAME=QQZ ##Compute Node Manager IP. example: HOST_IP_NODE=192.168.19.128 ##Compute Node hostname. example:compute HOST_NAME_NODE=QQZ ##--------------------MySQL config---------------------## ##Password for MySQL root user . exmaple:000000 DB_PASS=000000 ##--------------------Keystone config------------------## ##Password for Keystore admin user. exmaple:000000 ADMIN_PASS=000000 ##Password for Mysql keystore user. exmaple:000000 KEYSTONE_DBPASS=000000 ##--------------------Glance config--------------------## ##Password for Mysql glance user. exmaple:000000 GLANCE_DBPASS=000000 ##Password for Keystore glance user. exmaple:000000 GLANCE_PASS=000000 ##--------------------Nova config----------------------## ##Password for Mysql nova user. exmaple:000000 NOVA_DBPASS=000000 ##Password for Keystore nova user. exmaple:000000 NOVA_PASS=000000 ##--------------------Neturon config-------------------## ##Password for Mysql neutron user. exmaple:000000 NEUTRON_DBPASS=000000 ##Password for Keystore neutron user. exmaple:000000 NEUTRON_PASS=000000 ##metadata secret for neutron. exmaple:000000 METADATA_SECRET=000000 ##External Network Interface. example:eth1 INTERFACE_NAME=eth1 ##First Vlan ID in VLAN RANGE for VLAN Network. exmaple:101 #minvlan= ##Last Vlan ID in VLAN RANGE for VLAN Network. example:200 #maxvlan= ##--------------------Cinder config--------------------## ##Password for Mysql cinder user. exmaple:000000 CINDER_DBPASS=000000 ##Password for Keystore cinder user. exmaple:000000 #CINDER_PASS=000000 ##Cinder Block Disk. example:md126p3 BLOCK_DISK=sda4 //Cinder块储存使用的分区 ##--------------------Swift config---------------------## ##Password for Keystore swift user. exmaple:000000 SWIFT_PASS=000000 ##The NO1. NODE Object Disk for Swift. example:md126p4. The 2nd will be OBJECT_DISK_2 OBJECT_DISK_1=sda3 //swift存储使用的分区 ##The NO1. NODE IP for Swift Storage Network. example:. The 2nd will be STORAGE_LOCAL_NET_IP_2 STORAGE_LOCAL_NET_IP_1=192.168.19.128 ##The numbers of all the Swift Nodes. example:3 SWIFT_ZONE=1 ##The number of this Swift Node. exmaple:1 SWIFT_NODE=1 ##--------------------Heat config----------------------## ##Password for Mysql heat user. exmaple:000000 #HEAT_DBPASS= ##Password for Keystore heat user. exmaple:000000 #HEAT_PASS= ##--------------------Ceilometer config----------------## ##Password for Mysql ceilometer user. exmaple:000000 #CEILOMETER_DBPASS= ##Password for Keystore ceilometer user. exmaple:000000 #CEILOMETER_PASS= ##token for ceilometer. exmaple:000000 #CEILOMETER_TOKEN= ##--------------------Sahara config--------------------## ##Password for Mysql sahara user. exmaple:000000 #SAHARA_DBPASS= ##Password for Keystore sahara user. exmaple:000000 #SAHARA_PASS= 安装Qpid [root@QQZ xiandian]# yum -y install qpid-cpp-server [root@QQZ xiandian]# vi /etc/ //修改文件,最后运行改为no即可 cluster-mechanism=DIGEST-MD5 ANONYMOUS acl-file=/etc/qpid/qpidd.acl auth=no [root@QQZ xiandian]# service qpidd start //启动服务 启动 Qpid AMQP 守护进程: [确定] [root@QQZ xiandian]# chkconfig qpidd on //设置为开机启动 [root@QQZ xiandian]# vi /etc/hosts [root@QQZ xiandian]# 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.19.128 QQZ 上面搞完虚拟机重启一下