0% found this document useful (0 votes)
39 views

Private Cloud Setup Step by Step Using Apache Cloud Stack

Private Cloud Setup Step by Step Using Apache Cloud Stack

Uploaded by

Hoa Vo Duong
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

Private Cloud Setup Step by Step Using Apache Cloud Stack

Private Cloud Setup Step by Step Using Apache Cloud Stack

Uploaded by

Hoa Vo Duong
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Private Cloud Setup Step By Step Using

Apache Cloud Stack


- LINK THAM KHẢO
- https://technologyrss.com/private-cloud-setup-step-by-step/
-

Now I will show how to private cloud setup step by step using open source could computing Apache
Cloud Stack. Apache Cloud Stack is a strong cloud computing at this time. This has various environments
like small private cloud and large cloud system using Cloud Stack.

First see full network model for private cloud using Apache Cloud Stack.

THÔNG TIN CẤU HÌNH SERVER

Network: 192.168.200.x/24

HOSTNAME Role IP USERNAME PASS


ComputingNode01 Node01.hitek.local 192.168.200.150 Root
ComputingNode01 Node02.hitek.local 192.168.200.151
Management Cloud.hitek.local 192.168.200.160
Storage Nfs.hitek.local 192.168.200.170

Installation process:
1. Cloud Stack management server install.
2. Storage server install (NFS).
3. KVM server install.
4. NFS connection and systemvm download with create basic zone.
5. Firewall setup for all servers.
6. NTP install for all servers.
7. Apache Cloud Stack Upload iso.
8. Create Instance on CloudStack.

1. Cloud Stack management server install.

Step #01 : Ready host name for setup Cloud Stack.

Step #02 : Setup static ip address on Cloud Stack server.

[root@cloud ~#] cat /etc/sysconfig/network-scripts/ifcfg-eth1

Check server is connected internet and ping cloudstack.apache.org site.

[root@cloud ~#] hostname --fqdn


cloud.technologyrss.local
[root@cloud ~#] ping cloud.technologyrss.local
[root@cloud ~#] ping cloudstack.apache.org

All firewall service stop and disable. Only use iptables for firewall all servers.

[root@cloud ~#] systemctl stop firewalld


[root@cloud ~#] systemctl disable firewalld

Then edit selinux config must be setup permissive.


[root@cloud ~#] cat /etc/selinux/config

Output like below:

# This file controls the state of SELinux on the system.


# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=permissive
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are
protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

Reboot Cloud Stack management server for change selinux status otherwise not install Cloud
Stack service.

[root@cloud ~#] reboot

Step #03 : Start installation process


Apache Cloud Stack.
[root@cloud ~#] yum install wget -y
[root@cloud ~#] yum install ntp -y
[root@cloud ~#] yum install chrony -y
#systemctl enable chronyd
#vi /etc/chrony.conf
allow 192.168.200.0/24
systemctl restart chronyd

Open firewall port to allow for incoming NTP requests:


# firewall-cmd --permanent --add-service=ntp
# firewall-cmd --reload
et Chrony to act as an NTP client

To turn Chrony into the NTP cleint add the following line into the main Chrony
/etc/chrony.conf configuration file. Change the IP address accordingly to point to your local
Chrony NTP server:

Server 192.168.1.150
Restart Chrony NTP daemon to apply the changes:
# systemctl restart chronyd

Check for NTP server sources. Your local NTP server should be listed:
# chronyc sources
Check NTP client list on the NTP server:
# chronyc clients

Edit Apache Cloud Stack repo


file.
[root@cloud ~#] cat /etc/yum.repos.d/cloudstack.repo

[cloudstack]
name=cloudstack
baseurl=http://cloudstack.apt-get.eu/centos/$releasever/4.15/
enabled=1
gpgcheck=0

Add mysql community edition repo.

[root@cloud ~#] wget http://repo.mysql.com/mysql-community-release-el7-


7.noarch.rpm
[root@cloud ~#] rpm -ivh mysql-community-release-el7-7.noarch.rpm

nstall mysql server on Cloud Stack management server.

[root@cloud ~#] yum install mysql-server -y

Increase some config like timeout maximum connection. Add all line into my.cnf file.

[root@cloud ~#] cat /etc/my.cnf

Like below config

=================================================================

# For advice on how to change settings please see


# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html

[mysqld]
#
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
#

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

# Remove leading # to turn on a very important data integrity option: logging


# changes to the binary log between backups.
# log_bin
#
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock

# Disabling symbolic-links is recommended to prevent assorted security risks


symbolic-links=0

# Recommended in standard MySQL setup


sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

Edit another file just.

[root@cloud ~#] cat /etc/my.cnf.d/cloudstack.cnf

Example below:

[mysqld]

[root@cloud ~#] systemctl start mysql


[root@cloud ~#] systemctl enable mysql
#mysql_secure_install

Setup myql root password from mysql terminal. By default not setup root password. So must be
setup mysql root password before start Apache Cloud Stack management server.

[root@cloud ~#] mysql -u root -p

Restart mysql service then install Apache Cloud Stack management service.

[root@cloud ~#] systemctl restart mysql


[root@cloud ~#] yum -y install mysql-connector-python
[root@cloud ~#] yum -y install cloudstack-management
After installation done ! Now check java version 11 must be select. For check using below
command.

[root@cloud ~#] alternatives --config java

You might also like