based on CentOS7

Version


# cat /etc/redhat-release 
CentOS Linux release 7.1.1503 (Core)

cloudstack repo


# cat > /etc/yum.repos.d/cloudstack.repo <<EOF
[cloudstack]
name=cloudstack
baseurl=http://cloudstack.apt-get.eu/centos7/4.6/
enabled=1
gpgcheck=0
EOF


checking:


# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.otenet.gr
 * extras: ftp.otenet.gr
 * updates: ftp.otenet.gr
repo id                                     repo name                                     status
base/7/x86_64                               CentOS-7 - Base                               8652
cloudstack                                  cloudstack                                      45
extras/7/x86_64                             CentOS-7 - Extras                              278
updates/7/x86_64                            CentOS-7 - Updates                            1726
repolist: 10701


and install cloudstack !


sh-4.2# yum -y install cloudstack*


MySQL


# yum -y install mariadb-server


Configure:


# cat /etc/my.cnf.d/server.cnf

[server]
# ebal, Thu, 03 Dec 2015 18:01:36 +0200
skip_networking

# this is only for the mysqld standalone daemon
[mysqld]

#cloudstack settings
innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=350
log-bin=mysql-bin
binlog-format = 'ROW'


setup the database


# cloudstack-setup-databases cloud:dbpassword@localhost --deploy-as=root
Mysql user name:cloud                                                           [ OK ]
Mysql user password:******                                                      [ OK ]
Mysql server ip:localhost                                                       [ OK ]
Mysql server port:3306                                                          [ OK ]
Mysql root user name:root                                                       [ OK ]
Mysql root user password:******                                                 [ OK ]
Checking Cloud database files ...                                               [ OK ]
Checking local machine hostname ...                                             [ OK ]
Checking SELinux setup ...                                                      WARNING: We detected that your SELinux is not configured in permissive. to make sure cloudstack won't block by SELinux after system reboot, we strongly suggest you setting it in permissive in /etc/selinux/config, then reboot the machine.
[ OK ]
Detected local IP address as 195.170.0.182, will use as cluster management server node IP[ OK ]
Preparing /etc/cloudstack/management/db.properties                              [ OK ]
Applying /usr/share/cloudstack-management/setup/create-database.sql             [ OK ]
Applying /usr/share/cloudstack-management/setup/create-schema.sql               [ OK ]
Applying /usr/share/cloudstack-management/setup/create-database-premium.sql     [ OK ]
Applying /usr/share/cloudstack-management/setup/create-schema-premium.sql       [ OK ]
Applying /usr/share/cloudstack-management/setup/server-setup.sql                [ OK ]
Applying /usr/share/cloudstack-management/setup/templates.sql                   [ OK ]
Processing encryption ...                                                       [ OK ]
Finalizing setup ...                                                            [ OK ]

CloudStack has successfully initialized database, you can check your database configuration in /etc/cloudstack/management/db.properties


# ln -s /usr/share/cloudstack-management/webapps/client/WEB-INF/classes/server-nonssl.xml /etc/cloudstack/management/server-nonssl.xml
# ln -s /usr/share/cloudstack-management/webapps/client/WEB-INF/classes/tomcat6-nonssl.conf /etc/cloudstack/management/tomcat6-nonssl.conf


# cloudstack-setup-management                                                                                                            
Starting to configure CloudStack Management Server:
Configure Firewall ...        [OK]
Configure CloudStack Management Server ...[OK]
CloudStack Management Server setup is Done!