Skip to content

Deploying XianDian IaaS 2.4 Cloud Platform

August 29, 2022

Preparation

Software: VMware Workstation 16 Pro, base image: CentOS-7-x86_64-DVD-1804.iso, ISO package: ChinaSkills_Cloud_IaaS.iso

Hardware Config

HostnameHost-Only NICNAT NIC
controllerIP: 172.16.10.10IP: 10.0.0.0/24 GW: 10.0.0.1
computeIP: 172.16.10.20IP: 10.0.0.0/24 GW: 10.0.0.1

Initialization (both nodes)

systemctl stop firewalld && systemctl disable firewalld
vi /etc/selinux/config  # SELINUX=permissive
setenforce 0
vi /etc/hosts  # add 172.16.10.10 controller / 172.16.10.20 compute

Upload ISOs to /root, mount and copy to /opt/centos and /opt/openstack.

Configure Local YUM (controller)

cd /etc/yum.repos.d/ && rm -rf *.repo
vi local.repo  # [centos] baseurl=file:///opt/centos, [openstack] baseurl=file:///opt/openstack/iaas-repo

HTTP Service & Network YUM (compute)

yum install -y httpd && systemctl start httpd && systemctl enable httpd
ln -s /opt/ /var/www/html/
# compute: baseurl=http://172.16.10.10/opt/...

Deploy

yum install -y iaas-xiandian  # both nodes
vi /etc/xiandian/openrc.sh  # configure all PASS=000000, HOST_IP, etc.
scp /etc/xiandian/openrc.sh compute:/etc/xiandian/openrc.sh
iaas-pre-host.sh  # both, then reboot

Run service deployment scripts in order: iaas-install-mysql.sh, iaas-install-keystone.sh, iaas-install-glance.sh, iaas-install-nova-controller.sh / -nova-compute.sh, -neutron-controller.sh / -neutron-compute.sh, -dashboard.sh, -cinder-controller.sh / -cinder-compute.sh, -swift-controller.sh / -swift-compute.sh, -heat.sh, -zun-controller.sh / -zun-compute.sh, -ceilometer-controller.sh / -ceilometer-compute.sh, -aodh.sh.

To add controller as compute: change HOST_IP_NODE=172.16.10.10, HOST_NAME_NODE=controller in openrc.sh, then run iaas-install-nova-compute.sh.

Previous
VMware Workstation 17 Pro Setup Notes
Next
[Notes] Configuring HTTP Services on CentOS 7