oVirt 4.2.x Install HE (Hosted Engine) (4 Hosts) (2 SAN-HA) – Setup HOST A & Hosted Engine

This outlines the Setup HOST A & Hosted Engine of the oVirt 4.2.x Install HE (Hosted Engine) (4 Hosts) (2 SAN-HA)

To get started with an oVirt Hosted Engine configuration, you will need to setup your first HOST while also installing your ENGINE which is the Hypervisor for your oVIRT Environment. The steps below will walk you though the install of the first HOST and the ENGINE.

Config the BIOS to allow the SERVER MGMT (IPMILAN). Using IP 172.16.1.11. You will need the user/pass later.

  1. Download the latest CentOS7 DVD ISO and burn it to a DVD
  2. Boot the HOST1/HOSTA server to the DVD and on the initial screen do the following (**IMPORTANT**)
    1. click tab
    2. you should then see the bootline string of the installer
    3. add the following to the string after quiet (leaving a space after quiet)
    4. biosdevname=0 net.ifnames=0
    5. then hit enter and proceed with install
  3. On installer screen, do the following:
    1. DISABLE KDUMP
    2. SET HOSTNAME: virttestnodea.testdomain.com
    3. SET TIMEZONE
    4. SET LANGUAGE
    5. SET PRIMARY NIC (eth0)
      1. SET TO AUTO START ON BOOT
      2. IP: 172.16.1.84
      3. MASK: 255.255.255.0
      4. GATE: 172.16.1.49
    6. DONE
    7. SET ROOT PASSWORD

Once installed, click REBOOT

After reboot, do the following:

yum update -y
yum install http://resources.ovirt.org/pub/yum-repo/ovirt-release42.rpm -y
yum install ovirt-hosted-engine-setup -y
yum install ovirt-engine-appliance -y
yum install screen -y

Now we will disable Network Manager as oVirt doesn’t like it, and neither do I 😉

systemctl stop NetworkManager
systemctl disable NetworkManager

Now we will switch to the network configs folder and set each NIC as follows.

cd /etc/sysconfig/network-scripts
vi ifcfg-eth0
#
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=eth0
DEVICE=eth0
ONBOOT=yes
ETHTOOL_OPTS="autoneg on"
IPADDR=172.16.1.84
PREFIX=24
GATEWAY=172.16.1.49
DNS1=8.8.8.8
DNS2=8.8.4.4
IPV6_PRIVACY=no
ZONE=public
NM_CONTROLLED=no
#
vi ifcfg-eth1
#
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=eth1
DEVICE=eth1
ONBOOT=yes
ETHTOOL_OPTS="autoneg on"
IPV6_PRIVACY=no
ZONE=public
NM_CONTROLLED=no
#
vi ifcfg-eth2
#
DEVICE=eth2
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=no
ONBOOT=yes
MTU=9000
NM_CONTROLLED=no
#
vi ifcfg-eth2.3
#
VLAN=yes
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=no
IPV4_FAILURE_FATAL=no
IPV6INIT=no
DEVICE=eth2.3
ONBOOT=yes
ETHTOOL_OPTS="autoneg on"
IPADDR=10.10.10.11
PREFIX=24
MTU=9000
NM_CONTROLLED=no
#
vi ifcfg-eth3
#
DEVICE=eth3
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=no
ONBOOT=yes
MTU=9000
NM_CONTROLLED=no
#
vi ifcfg-eth3.2
#
VLAN=yes
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=no
IPV4_FAILURE_FATAL=no
IPV6INIT=no
DEVICE=eth3.2
ONBOOT=yes
ETHTOOL_OPTS="autoneg on"
IPADDR=10.10.9.11
PREFIX=24
MTU=9000
NM_CONTROLLED=no
#
ifup eth2
ifup eth3
ifup eth2.3
ifup eth3.2

You should now be able to ping using MTU 9000 to your SAN

ping -M do -s 8972 10.10.9.3
ping -M do -s 8972 10.10.10.3

If the above pings work, all is good, if not, double check your settings and your CAT6 connections.

DO NOT PROCEED UNTIL 9000 MTU PING TEST WORKS

Make sure that the DNS is as needed. I adjusted as follows:

vi /etc/resolv.conf
#make sure only nameservers are
nameserver 8.8.8.8
nameserver 8.8.4.4
vi /etc/hosts
#append the following
172.16.1.83   ovirttestmgmt.<yourdomain>.com
172.16.1.84   virttestnodea.<yourdomain>.com
172.16.1.85   virttestnodeb.<yourdomain>.com
172.16.1.86   virttestnodec.<yourdomain>.com
172.16.1.87   virttestnodec.<yourdomain>.com
hostname -I

the above command should return something like:
172.16.1.84 10.10.10.11 10.10.9.11

hostname

confirm above command returns virttestnodea.<yourdomain>.com

 

 

 

IF ALL ABOVE TEST WORK – PROCEED

screen
hosted-engine --deploy

Answers:

  • Yes
  • Confirm Gateway
  • mgmt bridge: eth0
  • no custom option just hit enter
  • engine FQDN: ovirttestmgmt.<yourdomain>.com
  • Domain: <yourdomain>.com
  • Root Pass
  • skip <enter>
  • ssh: yes
  • Virtual CPU: 4
  • Memory: 8192 **more if you have it
  • MAC: <enter>
  • Engine VM Network: Static
  • IP: 172.16.1.83
  • DNS: confirm
  • Hosts: no
  • SMTP server: your.emailserver.com
  • port: 25
  • user: you@yourdomain.com
  • to: you@yourdomain.com
  • Password: <your password>
  • Storage
    • *** STOP AND SSH INTO THE HOST WITH A SECOND SESSION
    • once logged in with a second SSH session do the following:
      setenforce 0
      
      vi ifcfg-eth0
      #make sure that "DEFROUTE=yes"
      
      iscsiadm -m discovery -t sendtargets -p 10.10.10.3:3260
      ** Make sure you see some targets - or fix synology by turning target off/on
      
      vi /etc/multipath.conf
      #add the following comment to line 2
      # VDSM PRIVATE
      
      #add to bottom of file /etc/multipath.conf in the array
      device {
                      vendor                  "SYNOLOGY"
                      product                 ".*"
                      path_grouping_policy    multibus
                      failback                immediate
                      path_selector           "round-robin 0"
                      rr_min_io               100
              }
      
      *** NOW PROCEED WITH INSTALL ON ORIGINAL SSH SESSION
  • In original SSH session, answer the Storage with:
    • iscsi
    • IP: 10.10.9.3
    • port: 3260
    • user: <enter>
    • pass: <enter>
    • user: <enter>
    • pass: <enter>
    • target: SynNAStestA.oVirtEngine
    • confirm the LUN
    • VM Disk: 50GB

This process takes a while …. 30min +

 

After done, login to https://ovirttestmgmt.<yourdomain>.com