One, SELinux configuration
In order for Cloudstack to work properly, we must set the SELinux to permissive. It needs to be available in the current system running state and after it has been started, with the following configuration.
To set SELinux to permissive while the system is running, execute the following command:
Setenforce 0
Configure the/etc/selinux/config file according to the following Lezilai to ensure that the current SELinux status is permissive. As shown in this example
# This file controls the state of the 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 the values:# targeted-targeted processes is protected,# Mls-multi level Security protection.Selinuxtype=targeted Second, NTP time synchronizationyou need to specify an NTP server for all servers in the Cloudstack environment to ensure clock synchronization. However, the default installation is that NTP is not installed. To install NTP, follow these steps:yum-y Install NTPThe default configuration has actually met our requirements, so all we have to do is enable NTP and configure it to run automatically after startup:chkconfig ntpd onService ntpd StartThird,Configuring the Cloustack Software Library
We need to configure this machine to use the Cloudstack software library.
Annotations
Apache Cloudstack is officially released as the source code. Therefore, there is no "official" installer available. The Complete Installation Wizard describes how to get the source code and the RPM package and the Yum Library. This guide simplifies these operations as much as possible, so we use a Yum library provided by the community.
To add a cloudstack library, create a/etc/yum.repos.d/cloudstack.repo file and add the following information. Direct VI in front of the path can be created file
[cloudstack]
name=cloudstack baseurl=http://cloudstack. Apt-get. EU/rhel/4.3 /enabled=1 Gpgcheck=0
Cloudstack Installation Chapter 3-selinux configuration, NTP time synchronization, configuration Cloustack Software Library