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 "kvm1.lab.example.org". If it does not, edit /etc/hosts so that it does.
Set SELinux to be permissive by default.
Check to see whether SELinux is installed on your machine. If not, you can skip to step 4.
In RHEL or CentOS, SELinux are installed and enabled by default. You can verify this with:
# rpm -qa | grep selinux
In Ubuntu, SELinux is not installed by default. You can verify this with:
# dpkg --list '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
In Ubuntu (do this step only if SELinux was found on the machine in the previous step):
# selinux-config-enforcing permissive
Then set SELinux to permissive starting immediately, without requiring a system reboot.
In CentOS:
# setenforce permissive
In RHEL:
# setenforce 0
In Ubuntu (do this step only if SELinux was found on the machine):
# setenforce permissive
Make sure that the Management Server can reach the Internet.
# ping www.google.com
(RHEL 6.2) If you do not have a Red Hat Network account, you need to prepare a local Yum repository.
If you are working with a physical host, insert the RHEL 6.2 installation CD. If you are using a VM, attach the RHEL6 ISO.
Mount the CDROM to /media.
Create a repo file at /etc/yum.repos.d/rhel6.repo. In the file, insert the following lines:
[rhel]
name=rhel6
baseurl=file:///media
enabled=1
gpgcheck=0
Turn on NTP for time synchronization.
NTP is required to synchronize the clocks of the servers in your cloud.
Install NTP.
On RHEL or CentOS:
# yum install ntp
On Ubuntu:
# apt-get install ntp
Edit the NTP configuration file to point to your NTP server.
# vi /etc/ntp.conf
For example, you can use one of the following:
0.xenserver.pool.ntp.org
1.xenserver.pool.ntp.org
2.xenserver.pool.ntp.org
3.xenserver.pool.ntp.org
Restart the NTP client.
# service ntpd restart
Make sure NTP will start again upon reboot.
On RHEL or CentOS:
# chkconfig ntpd on
On Ubuntu:
# chkconfig ntp on