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:
- Storage – Domains
- New
- Name: MainDataStore
- Function: Data
- Type: iSCSI
- Discover Targets – 10.10.9.3
- LUN – Targets – click + beside the 2 oVirtDATA targets
- New
- Name: ISO
- Function: ISO
- Type: NFS
- 172.16.1.80:/volume1/OVIRT/ISO
- New
- Name: EXPORT
- Function: Export
- Type: NFS
- 172.16.1.80:/volume1/OVIRT/EXPORT
- New
- Name: MIGRATE
- Function: DATA
- Type: NFS
- 172.16.1.80:/volume1/OVIRT/MIGRATE
- New
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] 10.10.10.3:3260,1 iqn.2000-01.com.synology:SynNAStestA.oVirtEngine.2776b78dce (non-flash) #tcp: [2] 10.10.9.3:3260,1 iqn.2000-01.com.synology:SynNAStestA.oVirtEngine.2776b78dce (non-flash) #tcp: [3] 10.10.10.3:3260,1 iqn.2000-01.com.synology:SynNAStestA.oVirtData.2776b78dce (non-flash) #tcp: [4] 10.10.9.3:3260,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
UPDATE FENCING OPTIONS on ENGINE
engine-config -s vdsConnectionTimeout=2 engine-config -s vdsRetries=0
Setup engine backup
vi /root/backup_my_engine.sh ### #!/bin/bash #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 172.16.1.80:/volume1/OVIRT/EXPORT/3dd7043a-4df2-406a-866e-8590eba0755a/images /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 MAIL_SERVER=your.emailserver.com MAIL_PORT=25 MAIL_USER=you@yourdomain.com MAIL_PASSWORD= MAIL_FROM= MAIL_REPLY_TO=
systemctl daemon-reload systemctl enable ovirt-engine-notifier.service systemctl restart ovirt-engine-notifier.service
In the oVIRT WebUI do the following:
- Administration – Users
- Click on the admin username link
- Click on the Event Notifier (tab)
- Click “Manage Events” (button)
- Choose your events and add your email address
- Click Save
- Network – Networks
- Add
- Name: VMNIC1
- Check VM Network
- Cluster(tab)
- Uncheck Required
- Click OK
- Add
- Compute – Hosts
- Click HostA (virttestnodea.<yourdomain>.com)
- Network Interface(tab)
- Setup Network Interfaces(button)
- drag VMNIC1 to eth1
- Click OK