cloudstack4.11 centos7 installation documentation

centos 7.x cloudstack 4.11

Tip: In the production environment, it is recommended to use ceph block storage as the main storage. The test here uses nfs main storage.

td>

components

172.16.19.116 cloudstack-management nfs,mysql,cloudstack-management
172.16.19.170 cloudstack-agent kvm, cloudstack-agent

Prepare network segment:

172.16.17.50-100 255.255.252.0 172.16.16.1

###cloudstack-management

1. Basic system configuration

#hostnamectl set-hostname cloudstack-management 

//Install ntp

#yum install ntp #systemctl enable ntpd & amp; & amp; systemctl start ntpd 

//Turn off the firewall

#systemctl stop firewalld & amp; & amp; systemctl disable firewalld & amp; & amp; setenforce 0 #vim /etc/selinux/config SELINUX=permissive SELINUXTYPE=targeted 

//Configure yum source

#vim /etc/yum.repos.d/cloud.repo [cloudstack] name=cloudstack baseurl=http://cloudstack.apt-get.eu/centos/7/4.11/ enabled=1 gpgcheck=0 < /pre>
  
 <p><br>//master install</p>
  
  <pre>//Install nfs service as secondary storage #yum -y install nfs-utils # vim /etc/sysconfig/nfs MOUNTD_PORT=892 STATD_PORT=662 STATD_OUTGOING_PORT=2020 # vim /etc/modprobe.d/lockd.conf options lockd nlm_tcpport=32803 options lockd nlm_udpport=32769 #vim /etc/nfsmount.conf Nfsvers=4 #mkdir /home/nfs/secondary -p #systemctl start rpcbind & amp; & amp; systemctl enable rpcbind #systemctl start nfs & amp; & amp; systemctl enable nfs 

//install mysql-server

#wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm # rpm -ivh mysql-community-release-el7-5.noarch.rpm #yum install mysql- server mysql-connector-python<br> #vim /etc/my.cnf innodb_rollback_on_timeout=1<br>innodb_lock_wait_timeout=600<br>max_connections=350<br>log-bin=mysql-bin<br>binlog-format = 'ROW'<br> #systemctl start mysqld.service & amp; & amp; systemctl enable mysqld.service 

//cloudstack management install

#yum -y install cloudstack-management #cloudstack-setup-databases cloud:password@localhost --deploy-as=root #/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys -tmplt -m /home/nfs/secondary -u http://cloudstack.apt-get.eu/systemvm/4.11/systemvmtemplate-4.11.1-kvm.qcow2.bz2 -h kvm -F #cloudstack-setup-management #systemctl restart cloudstack-management & amp; & amp; systemctl enable cloudstack-management 

//cloudstack-agent

1. Basic system configuration

2. ntp configuration

3. yum configuration

//Install cloudstack-agent

#yum -y install cloudstack-agent 

//libvirtd configuration

#vim /etc/libvirt/qemu.conf
vnc_listen=0.0.0.0 #vim /etc/libvirt/libvirtd.conf listen_tls = 0<br>listen_tcp = 1<br>tcp_port = "16059"<br>auth_tcp = "none"<br>mdns_adv = 0 

//Network Configuration

#cat /etc/sysconfig/network-scripts/ifcfg-enp0s25
DEVICE=enp0s25 ONBOOT=yes HOTPLUG=no BOOTPROTO=none TYPE=Ethernet BRIDGE=cloudbr0 #cat /etc/sysconfig/network-scripts/ifcfg-cloudbr0 DEVICE=cloudbr0 TYPE=Bridge ONBOOT=yes BOOTPROTO=static IPV6INIT=no IPV6_AUTOCONF=no DELAY=5 IPADDR=172.16.19.170 NETMASK=255.255.252.0 GATEWAY=172.16.16.1 DNS1=172.16.16.250 DNS2=172.16.16.250 STP=yes #cat /etc/sysconfig/network GATEWAY=172.16.16.1<br><br>#/etc/init.d/network restart 

//Configure agent and start service

#cloudstack-setup-agent#systemctl restart libvirtd.service & amp; & amp; systemctl enable libvirtd #systemctl start cloudstack-agent & amp; & amp; systemctl enable cloudstack-agent 

##Login ui

http://172.16.19.116:8080/client/
The initialization username and password is admin/password

1. Security group configuration

2. Global parameters

secstorage.allowed.internal.sites ---> 172.16.0.0/16 network.throttling.rate ---> 0 vm.network.throttling.rate -→0 kvm.snapshot.enabled →true<br><br> 
             
             <img src="//i2.wp.com/img-blog.csdnimg.cn/img_convert/5d2c3b20739a930dfbad08061561efa0.png" alt="" style="outline: none;">
            

Reference documents: http://echoyun.com/2018/12/15/install-cloudstack-4-11-1-0-centos-7-5/ and official website configuration