0% found this document useful (0 votes)
9 views4 pages

apache installation steps

This guide outlines the prerequisites and steps needed to set up a CloudStack environment, including hardware requirements, network configuration, and necessary software installations. Key tasks include configuring SELinux, installing NTP for time synchronization, and setting up MySQL for database management. Additionally, it provides instructions for adding the CloudStack repository and disabling the firewall for simplicity.

Uploaded by

mohitmondal59
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views4 pages

apache installation steps

This guide outlines the prerequisites and steps needed to set up a CloudStack environment, including hardware requirements, network configuration, and necessary software installations. Key tasks include configuring SELinux, installing NTP for time synchronization, and setting up MySQL for database management. Additionally, it provides instructions for adding the CloudStack repository and disabling the firewall for simplicity.

Uploaded by

mohitmondal59
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Prerequisites

To complete this guide you’ll need the following items:


1. At least one computer which supports and has enabled hardware virtualization.
2. A minimal EL8 distro like
1. Oracle Linux 8 - https://yum.oracle.com/oracle-linux-isos.html
2. Rocky Linux 8 - https://rockylinux.org/download
3. AlmaLinux OS 8 - https://almalinux.org/get-almalinux/
3. A /24 network with the gateway being at (e.g.) xxx.xxx.xxx.1, no DHCP is needed on this
network and none of the computers running CloudStack will have a dynamic address. Again
this is done for the sake of simplicity.
# dnf -y upgrade

#create an "empty” bridge, add eth0 to the bridge, set static IP and reactivate
the whole configuration
nmcli connection add type bridge con-name cloudbr0 ifname cloudbr0
nmcli connection modify eth0 master cloudbr0
nmcli connection up eth0
nmcli connection modify cloudbr0 ipv4.addresses '172.16.10.2/24' ipv4.gateway
'172.16.10.1' ipv4.dns '8.8.8.8' ipv4.method manual && nmcli connection up
cloudbr0

# dnf install net-tools -y

# reboot

# hostname --fqdn

At this point it will likely return:


localhost

To rectify this situation - we’ll set the hostname so that it follows a similar format to this example:
hostnamectl set-hostname server.local --static

# reboot

Now recheck the hostname with the


# hostname --fqdn

To configure SELinux to be permissive in the running system we need to run the following
command:
# setenforce 0

To ensure that it remains in that state we need to configure the file /etc/selinux/config to reflect the
permissive state, as shown in this example:
# 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 these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
NTP (Chrony)

NTP configuration is a necessity for keeping all of the clocks in your cloud servers in sync.
However, NTP is not installed by default. So we’ll install and and configure NTP at this stage.
Installation is accomplished as follows:
# dnf -y install chrony

# systemctl enable chronyd

# systemctl start chronyd

To add the CloudStack repository, create /etc/yum.repos.d/cloudstack.repo and insert the following
information.

[cloudstack]
name=cloudstack
baseurl=http://download.cloudstack.org/centos/$releasever/4.20/
enabled=1
gpgcheck=0

*****************************************Optional*******************************

Configuring your machines to use the APT repository


Now that we have created the repository, you need to configure your machine to make use of the
APT repository. You can do this by adding a repository file under
/etc/apt/sources.list.d. Use your preferred editor to create
/etc/apt/sources.list.d/cloudstack.list with this line:
deb http://<server.url>/cloudstack/repo/binary ./

If you signed your Release file with GnuPG, import the signing key on your target system first.
$ wget -q -O - http://<server.url>/cloudstack/repo/binary/KEY.gpg | sudo apt-key
add -

****************************************For Ubuntu/Debian***********************

For simplicity, we need to disable the firewall, so that it will not block
connections.

# systemctl stop firewalld

# systemctl disable firewalld

Database Installation and Configuration

We’ll start with installing MySQL and configuring some options to ensure it runs well with
CloudStack.
# dnf -y install mysql-server
This should install MySQL 8.x, as of the time of writing this guide. With MySQL now installed we
need to make a few configuration changes to /etc/my.cnf.d/mysql-server.cnf. Specifically, we need
to add the following options to the [mysqld] section:

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

# systemctl enable mysqld

# systemctl start mysqld

# dnf -y install cloudstack-management

# cloudstack-setup-databases cloud:password@localhost --deploy-as=root

# cloudstack-setup-management

You might also like