oVirt 3.6 Installation

I’ve been playing with oVirt for about a year.  This week, I decided to rebuild the system to oVirt 3.6.  My current setup wasn’t so involved that I couldn’t rebuild the few VMs I was running, and the oVirt.org website recommends version 3.6.

My current VM Server Configuration:

  • AMD FX(tm)-8320 Eight-Core Processor
  • 32 GB DDR3 Crucial Ballistix Sport 1600 MHz
  • GeForce GTX 750
  • Seagate ST2000DM001-1CH1 2TB SATA Hard Drive
  • Western Digital WD20EARX-00P 2TB SATA Hard Drive
  • Intel 82574L Gigabit Ethernet Controller

I’ve installed CentOS 7.2.1511 (Core).  Fedora Server is a bit too GUI-y for my tastes.  Plus my current client uses Red Hat, so why add unneeded complexity?

Using and borrowing heavily from Jason Brooks’ Up and Running with oVirt 3.5, here are my installation notes:

Server Configuration

CentOS7 installed on the Intel SSD with the following partitions

  • 4 GB / (root)
  • 1 GB /boot
  • 10 GB /usr
  • 5 GB /opt
  • 10 GB /var
  • 5 GB /var /log
  • 5 GB /var/log/audit
  • 15 GB /tmp
  • 2 GB /home (I won’t be spending much time living here)
  • 5 GB swap

Add /etc/hosts entries for the server and the hosted oVirt engine

  •  ovirt-host.home.net   ovirt-host
  •  ovirt.home.net   ovirt

Add oVirt repository and install necessary packages

Gluster Storage Volumes

Create an LVM for gluster storage

  • pvcreate /dev/sdb1
  • ssm add -p vg_gluster /dev/sdb1
  • ssm create -p vg_gluster –fstype xfs -n lv_gluster
  • Add line to /etc/fstab:  /dev/mapper/vg_gluster-lv_gluster  /gluster  defaults  0 0
  • mkidr /gluster
  • mount /gluster

Create the gluster file systems for VMs, the oVirt engine, and an ISO “brick”

mkdir -p /gluster/{data,engine,iso}/brick

Enable the gluster system daemon, and enable a few volume options

systemctl start glusterd && systemctl enable glusterd

Create the gluster “bricks”

  • gluster volume create engine $HOSTNAME:/gluster/engine/brick
  • gluster volume create data $HOSTNAME:/gluster/data/brick
  • gluster volume create iso $HOSTNAME:/gluster/iso/brick
  • gluster volume set engine group virt
  • gluster volume set engine storage.owner-uid 36 && gluster volume set engine storage.owner-gid 36
  • gluster volume set data group virt
  • gluster volume set data storage.owner-uid 36 && gluster volume set data storage.owner-gid 36
  • gluster volume set iso group virt
  • gluster volume set iso storage.owner-uid 36 && gluster volume set iso storage.owner-gid 36

Start the Gluster volumes

gluster volume start engine && gluster volume start data && gluster volume start iso

Check the Gluster volume status and availability

  • gluster volume status
  • showmount -e $HOSTNAME

Install the hosted engine virtual machine

You’ll need the following:

  • The path to your Gluster engine (<hostname.domain:/engine)
  • The fqdn you’re using for the ovirt engine
  • The Ethernet interface name you plan on using as the management interface
    • DHCP is NOT recommended.  Use “Static” for the IP assignment
  • Your environment’s DNS server IP addresses
  • The OVirt engine’s planned IP address, gateway, and netmask
  • The amount of RAM you’re dedicating to the OVirt engine.  4 GB seemed to keep running out of room.
  • The admin password you’ll use to login from the web console
  • A temporary directory with 10 GB of free space

Use “disk” to install the OVirt appliance (ova).  If the installation script doesn’t find the ova, the location is: /usr/share/ovirt-engine-appliance/ovirt-engine-appliance-3.6-20160126.1.el7.centos.ova

hosted-engine –deploy

<Answer the questions using the information you collected in the previous step>

Bridge interface : enp10s0
Engine FQDN : ovirt.home.net
Bridge name : ovirtmgmt
SSH daemon port : 22
Firewall manager : iptables
Gateway address :
Host name for web application : hosted_engine_01
Host ID : 1
Image size GB : 10
GlusterFS Share Name : hosted_engine_glusterfs
GlusterFS Brick Provisioning : False
Storage connection : ovirt-host.home.net:/engine
Console type : qxl
Memory size MB : 6144
MAC address : 00:16:3e:17:cd:f8
Boot type : disk
Number of CPUs : 4
OVF archive (for disk boot) : /usr/share/ovirt-engine-appliance/ovirt-engine-appliance-3.6-20160126.1.el7.centos.ova
Restart engine VM after engine-setup: True
CPU Type : model_Opteron_G5

Once you have your information entered.  Let the VM process roll.  Unlike OVirt 3.5, you don’t need to do anything during the installation process.  The ova and Cloud-Init handles it all for you.

When the installation is finished and the OVirt engine is up, you’ll see a mail message appear in your shell session.  Run mailx and delete the messages.

I also recommend logging in and creating privileged user account.  By default, you can log in to the OVirt engine VM as root from anywhere.  Not a good security practice.  Run “yum update -y ” while you’re there, and fix that “PermitRootLogin” sshd_config setting!

Add Gluster Storage Domains

Log in to the web UI: https://ovirt.home.lan as the “admin” user.  Select the “Storage” tab, and add in the “data” Gluster volume.  On my actual setup, I added items to the “Name” field, but isn’t mandatory.  Note: The Name filed doesn’t accept spaces or special characters.

Ovirt Glsuter Add Storage

Do the same thing for the “iso” Gluster volume, but choose “ISO” ad the domain function.

Ovirt Glsuter Add ISO Storage

After a few minutes your storage domains will show as “up.”

Ovirt Gluster Volumes Online

That’s all for this post.  Next, I’ll detail how to add vLAN subnets and upload a few ISO files.

About Glenn H. Snead

Single IT guy, living the dream.
This entry was posted in Uncategorized. Bookmark the permalink.

5 Responses to oVirt 3.6 Installation

  1. Hi , It is very good article ..please keep writing such info.

  2. Hello
    Have you tried to install ovirt-engine only as admin interface and add fresh installed minimal host though the web-interface.

  3. programel says:

    really useful this, thank you.
    I had an issue when installing glusterfs-server as it complained about missing gpg-key
    had to do the following:
    # wget http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/rsa.pub
    # rpm –import ./rsa.pub

  4. David says:

    Did you have to remove or disable NetworkManager?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s