oVirt 4.2.x Install HE (Hosted Engine) (4 Hosts) (2 SAN-HA) – Configure New Hosted Engine

This outlines the Configuration of the New Hosted Engine of the oVirt 4.2.x Install HE (Hosted Engine) (4 Hosts) (2 SAN-HA)

Login to https://ovirttestmgmt.<yourdomain>.com

Once logged in to the oVirt Engine WebUI:

  1.  Storage – Domains
    1. New
      1. Name: MainDataStore
      2. Function: Data
      3. Type: iSCSI
      4. Discover Targets –
      5. LUN – Targets – click + beside the 2 oVirtDATA targets
    2. New
      1. Name: ISO
      2. Function: ISO
      3. Type: NFS
    3. New
      1. Name: EXPORT
      2. Function: Export
      3. Type: NFS
    4. New
      1. Name: MIGRATE
      2. Function: DATA
      3. Type: NFS

You should now be able to run the following command on the command line of the HOST A server:

iscsiadm --m session --op show

You should see something like the following from the above command.

#tcp: [1],1 iqn.2000-01.com.synology:SynNAStestA.oVirtEngine.2776b78dce (non-flash)
#tcp: [2],1 iqn.2000-01.com.synology:SynNAStestA.oVirtEngine.2776b78dce (non-flash)
#tcp: [3],1 iqn.2000-01.com.synology:SynNAStestA.oVirtData.2776b78dce (non-flash)
#tcp: [4],1 iqn.2000-01.com.synology:SynNAStestA.oVirtData.2776b78dce (non-flash)


For VNC Connections run this

hosted-engine --add-console-password


#To enable libvirt command line calls run the following command. If you ever use libvirt commands you can use the username/password below to access them.

saslpasswd2 -a libvirt myfavoriteusername


If you SSH into the  oVirtEngineVM as root, run the following config commands:

#this sets up VNC as the default console type and will allow console to run in web browser
engine-config -g ClientModeVncDefault
engine-config -s ClientModeVncDefault=NoVnc
engine-config -g ClientModeVncDefault


engine-config -s vdsConnectionTimeout=2
engine-config -s vdsRetries=0


Setup engine backup

vi /root/backup_my_engine.sh

#required for cronjob
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR

export TERM=xterm

BUDATE=`date "+%Y-%m-%d-%H%M%S"`

engine-backup --mode=backup --file="engine-backup${BUDATE}.bak" --log="engine-backup${BUDATE}.log"

cp /root/engine-backup${BUDATE}* /mnt/backups/engine/
rm /root/engine-backup${BUDATE}*

vi /etc/crontab
#add the following line at the bottom
38 17 * * * root /root/backup_my_engine.sh > /dev/null 2>&1
vi /etc/fstab
#add this line to the bottom of the file /mnt/backups nfs rw,async,hard,intr,noexec 0 0
mkdir /mnt/backups
mount /mnt/backups
mkdir /mnt/backups/engine

Set UI to never end session

engine-config -s UserSessionTimeOutInterval=-1
service ovirt-engine restart

Setup Notifier

vi /usr/share/ovirt-engine/services/ovirt-engine-notifier/ovirt-engine-notifier.conf
#Add this to the end of the file
systemctl daemon-reload
systemctl enable ovirt-engine-notifier.service
systemctl restart ovirt-engine-notifier.service

In the oVIRT WebUI do the following:

  1. Administration – Users
    1. Click on the admin username link
    2. Click on the Event Notifier (tab)
    3. Click “Manage Events” (button)
    4. Choose your events and add your email address
    5. Click Save
  2. Network – Networks
    1. Add
      1. Name: VMNIC1
      2. Check VM Network
      3. Cluster(tab)
      4. Uncheck Required
      5. Click OK
  3. Compute – Hosts
    1. Click HostA (virttestnodea.<yourdomain>.com)
    2. Network Interface(tab)
    3. Setup Network Interfaces(button)
      1. drag VMNIC1 to eth1
      2. Click OK