CloudStack Management Server (Standalone)
Prepare the Operating System
The OS must be prepared to host the Management Server using the following steps. These steps must be performed on each Management Server node.
-
Log in to your OS as root.
-
Check for a fully qualified hostname.
hostname --fqdn
This should return a fully qualified hostname such as “management1.lab.example.org”. If it does not, edit /etc/hosts so that it does.
-
Make sure that the machine can reach the Internet.
ping cloudstack.apache.org
-
Turn on NTP for time synchronization.
Note
An NTP daemon is required to synchronize the clocks of the servers in your cloud.
Install chrony.
In RHEL or CentOS:
$ yum install chrony
n RHEL or CentOS:
Yum repository information is found under
/etc/yum.repos.d
. You’ll see several.repo
files in this directory, each one denoting a specific repository.To add the CloudStack repository, create
/etc/yum.repos.d/cloudstack.repo
and insert the following information.In the case of RHEL being used, you can replace ‘centos’ by ‘rhel’ in the value of baseurl
[cloudstack] name=cloudstack baseurl=http://download.cloudstack.org/centos/$releasever/4.21/ enabled=1 gpgcheck=0
Now update your local apt cache.
sudo apt update
Your DEB package repository should now be configured and ready for use.
Install on CentOS/RHEL
yum install cloudstack-management
Step #2: Install MariaDB
AlmaLinux 9 provides a MariaDB package directly in its official repositories. To install the MariaDB server with all necessary dependencies, execute the following command:
sudo dnf install mariadb-server -y
Open the MySQL configuration file. The configuration file is
/etc/my.cnf.d/mariadb-server.cnf
.Insert the following lines in the
[mysqld]
section.You can put these lines below the datadir line. The max_connections parameter should be set to 350 multiplied by the number of Management Servers you are deploying. This example assumes one Management Server.
innodb_rollback_on_timeout=1 innodb_lock_wait_timeout=600 max_connections=350 log_bin=mysql-bin binlog_format=ROW
Start and Enable the MariaDB Service
Once you have installed the MariaDB package, start and enable the service to launch automatically on the system boot.
# sudo systemctl start mariadb
sudo systemctl enable mariadb
Run the following command to secure your installation. You can answer “Y” to all questions.
mysql_secure_installation
loudStack can be blocked by security mechanisms, such as SELinux. Disable SELinux to ensure + that the Agent has all the required permissions.
Configure SELinux (RHEL and CentOS):
-
Check whether SELinux is installed on your machine. If not, you can skip this section.
In RHEL or CentOS, SELinux is installed and enabled by default. You can verify this with:
rpm -qa | grep selinux
-
Set the SELINUX variable in
/etc/selinux/config
to “permissive”. This ensures that the permissive setting will be maintained after a system reboot.In RHEL or CentOS:
vi /etc/selinux/config
Change the following line
SELINUX=enforcing
to this:
SELINUX=permissive
-
Set SELinux to permissive starting immediately, without requiring a system reboot.
setenforce permissive
In a production environment, selinux should be set to enforcing and the necessary selinux policies are created to allow the services to run.
-
-
No comments to display
No comments to display