Basic Node Setup

From DHVLab

Revision as of 15:28, 7 September 2016 by Wiki admin (talk | contribs) (Created page with "== Initial Setup == follow the following instructions on each node of the Ovirt Engine Cluster servers:<br> [https://www.howtoforge.com/tutorial/centos-7-minimal-server/ Insta...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Initial Setup

follow the following instructions on each node of the Ovirt Engine Cluster servers:
Install CentOS 7.2

Partitioning

Partitioning ovirt engine cluster.png
The disk named virt is going to host the VM image of the VM that contains the OVirt Engine. This device is passed directly to the ovirt-engine KVM.
The sync disk is used for different configuration files that are shared between the cluster nodes. Examples are the configuration of the openVPN cluster resource.

Software Installation

Download and execute script that installs required packages

wget -O - https://github.com/linuskohl/DHVLab/raw/master/scripts/ovirt-engine-cluster/install_packages.sh | bash

Network Settings

Networking schema cluster.png

General settings

#disable the NetworkManager and switch to manual configuration
systemctl stop Networkmanager
systemctl disable NetworkManager
systemctl mask NetworkManager
chkconfig network on

#disable firewalld for switching to iptables
systemctl stop firewalld
systemctl disable firewalld
systemctl mask firewalld

#disable SELinux
nano -w /etc/selinux/config
#change line SELINUX=enabled to disabled
#write with ctrl+o and ctrl+x

#configure NTP client
cat << EOT >> /etc/ntp.conf
server your.ntp.server1
server your.ntp.server2
interface ignore wildcard
interface listen 127.0.0.1
interface listen ::1
EOT

#add cron job
echo "30 * * * * root /usr/sbin/ntpd -q -u ntp:ntp" >> /etc/cron.d/ntpd
systemctl start ntpd
systemctl enable ntpd