• About
  • Manuals
  • Network
Confessions of a FreeBSD hacker Various tips & tricks about computers in general and FreeBSD in particular
Confessions of a FreeBSD hacker

Deploying oVirt in self-hosted mode

February 16, 2018 18:31 / Leave a Comment / Magnus Strahlert

Deploying the virtualisation platform oVirt can be quite cumbersome. These are my installation notes on how to set it up in self-hosted mode where the engine-server runs as a guest in a VM instead of running on the host itself – much like the vCenter server of VMWare.

Pre-install tasks

As my network-setup consists of tagged vlans I set up the network manually beforehand. The oVirt installation will require a pingable gateway and DNS, unless setting up entries in /etc/hosts. So while additional configuration will be made in oVirt itself once it’s set up, the initial configuration in my case had to be manually set up.

ifcfg-enp3s0

TYPE=Ethernet
BOOTPROTO=none
NAME=enp3s0
DEVICE=enp3s0
ONBOOT=yes

ifcfg-enp3s0.100

DEVICE=enp3s0.100
VLAN=yes
BRIDGE=br0.100
ONBOOT=yes

ifcfg-br0.100

DEVICE=br0.100
TYPE=Bridge
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.0.29
NETMASK=255.255.255.0
GATEWAY=192.168.0.248
DNS1=192.168.0.136
DNS2=192.168.0.146
SEARCH="home.strahlert.net s2.strahlert.net"
DEFROUTE=yes
USERCTL=no

This is how you’d normally set up bridged tagged VLAN interfaces in RHEL. The bridge carries the IP-address.

However, oVirt wants to create an “ovirtmgmt” interface which would conflict with my br0.100 interface. I disabled the br0.100 and transferred all IP information to the VLAN interface enp3s0.100 instead. Thus making room for oVirt to create its “ovirtmgmt” interface and let it set an IP-address on that.

Shared storage

oVirt requires a shared storage. That storage can be run on the host itself. I opted for an NFS share. The export filesystem must be chowned vdsm:kvm (uid 36/gid 36).

/etc/exports

/kvm/iso        *(rw,anonuid=36,anongid=36,all_squash)
/kvm/vm         *(rw,anonuid=36,anongid=36,all_squash)
/kvm/export     *(rw,anonuid=36,anongid=36,all_squash)

Make sure the exported filesystems can indeed be mounted. When running firewalld, add the following services: nfs, rpcbind and mountd.

Deploy

The installation script nowadays uses Ansible to configure itself. I could not get this to fully work in either of versions 4.2.0 nor 4.2.1. It turns out the undocumented switch --noansible let the install script behave in the old unsupported fashion, but that atleast worked.

yum install http://resources.ovirt.org/pub/yum-repo/ovirt-release42.rpm
yum install ovirt-hosted-engine-setup ovirt-engine-appliance
hosted-engine --deploy --noansible

After a while the engine-server is deployed and can be managed by pointing a webbrowser to it. The initial task is to import the storage domain of the shared storage (ie the NFS-server) and activate it. After a short while the data center will be up and running.

Posted in: KVM, Linux / Tagged: ansible, kvm, linux, network, nfs, ovirt, vlan, vmware

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

* Copy This Password *

* Type Or Paste Password Here *

Post Navigation

← Previous Post
Next Post →

Recent Posts

  • Takeaways utilising VFIO in a KVM virtual guest
  • Converting VM from ESXi to KVM with iSCSI storage
  • Deploying oVirt in self-hosted mode
  • Ansible playbook for handling perl on FreeBSD
  • iSCSI: Migrating from istgt to ctld

Tags

ansible backup carp chroot cluster cross-server esxi freebsd ftp ftpchroot gpt grub hast install iscsi kvm linux lun lvm mirror network nfs nfsroot ovirt pxe raid ramdrive raspberrypi snapshot ssd ssh terminalserver usb vfio virtio virtualbox vlan vmware volumes winxp zfs zpool zroot

Archives

  • July 2019
  • March 2018
  • February 2018
  • July 2017
  • February 2016
  • January 2015
  • August 2014
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • September 2012
  • July 2012
  • April 2012
  • March 2012
  • November 2011
  • August 2011

Recent Comments

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    © Copyright 2013-2016 - Magnus Strahlert
    Infinity Theme by DesignCoral / WordPress