You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
53 lines
1.3 KiB
|
3 years ago
|
# 先电Open Stack 安装详细步骤
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
下载好下面镜像:
|
||
|
|
|
||
|
|
XianDian-IaaS-V2.4.iso
|
||
|
|
|
||
|
|
CentOS-7-x86_64-DVD-1511.iso
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
首先按照正常按照虚拟机的方式安装好CentOS 虚拟机:
|
||
|
|
|
||
|
|
设置网卡。
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
cat >>/etc/fstab<<eof
|
||
|
|
/dev/cdrom /opt/centos iso9660 defaults 0 0
|
||
|
|
/opt/XianDian-IaaS-V2.4.iso /opt/iaas iso9660 defaults 0 0
|
||
|
|
eof
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
sed -i 's/.//' /etc/xiandian/openrc.sh
|
||
|
|
sed -i 's/PASS=/PASS=000000/g' /etc/xiandian/openrc.sh
|
||
|
|
sed -i 's/HOST_IP=/HOST_IP=10.37.129.4/g' /etc/xiandian/openrc.sh
|
||
|
|
sed -i 's/HOST_NAME=/HOST_NAME=controller/g' /etc/xiandian/openrc.sh
|
||
|
|
sed -i 's/HOST_IP_NODE=/HOST_IP_NODE=10.37.129.5/g' /etc/xiandian/openrc.sh
|
||
|
|
sed -i 's/HOST_NAME_NODE=/HOST_NAME_NODE=compute/g' /etc/xiandian/openrc.sh
|
||
|
|
sed -i 's/RABBIT_USER=/RABBIT_USER=openstack/g' /etc/xiandian/openrc.sh
|
||
|
|
sed -i 's/DOMAIN_NAME=/DOMAIN_NAME=demo/g' /etc/xiandian/openrc.sh
|
||
|
|
sed -i 's/METADATA_SECRET=/METADATA_SECRET=000000/g' /etc/xiandian/openrc.sh
|
||
|
|
sed -i 's/INTERFACE_NAME=/INTERFACE_NAME=eth1/g' /etc/xiandian/openrc.sh
|
||
|
|
|
||
|
|
cat >>/etc/yum.repos.d/ftp.repo<<eof
|
||
|
|
[centos]
|
||
|
|
name=centos
|
||
|
|
baseurl=ftp://controller/centos
|
||
|
|
gpgcheck=0
|
||
|
|
enabled=1
|
||
|
|
[iaas]
|
||
|
|
name=iaas
|
||
|
|
baseurl=ftp://controller/iaas/iaas-repo
|
||
|
|
gpgcheck=0
|
||
|
|
enabled=1
|
||
|
|
eof
|
||
|
|
|
||
|
|
yum -y install iaas-xiandian
|
||
|
|
cd /etc/xiandian
|
||
|
|
mv openrc.sh openrc.sh.bk
|
||
|
|
scp 10.37.129.4:/etc/xiandian/openrc.sh openrc.sh
|