Installing oVirt – accommodation post

Here are some points when installing oVirt as a nested virtualization.

 

Please note: As of March 2019, nested virtualization with oVirt and any AMD ZEN/Zen+ based CPU (Ryzen, ThreadRipper, EPYC) does not work. It will be fixed by the oVirt team.

 

Prep

  • You’ll need a running local DNS server. In the DNS server, create 3 records: 2 for the nodes and one for the manager and assign each a unique IP. Example:
    • manage.mydomain.local (ip: 192.168.0.8)
    • ovirtn1.mydomain.local (ip:192.168.0.40)
    • ovirtn2.mydomain.local (ip: 192.168.0.41)
  • Whatever virtualization solution that you plan to use (ESXi, Proxmoxx, Hyper-V, Xen) – make sure to set the guest VM with nested virtualization
  • You’ll need at least an NFS server running somewhere. Create an NFS share (which we’ll use when installing the hosted-engine/manager, with the group and user id are 36 – or else it won’t work. In terms of size – at least 100GB will be required.
  • For the ovirt testing environment you’ll need at least 12GB RAM.
  • You’ll need to download the ovirt Node NG ISO. We’ll use version 4.3.2 which you can download here.

Install (all Hypervisors but virt-manager):

  • Create a VM, with the following features (these are the minimal requirements):
    • 8 GB RAM
    • 4-6 cores
    • Enable Nested Virtualization
    • 100GB Disk
    • Single network interface, make sure it’s bridged (in ESXi, you can just leave it in VMWare Network) so it can reach out to the world.
    • add to the “CDROM” – the oVirt NG ISO that you downloaded.
  • Boot the VM and choose to install oVirt Node NG.
  • Make sure in the network section to click the “configure” and in general, to enable automatic connection. In the IPV4 configure to “manual” and enter the IP, subnet, gateway, and DNS, as well as DNS suffix. Click save, and change the host name to the host name you’ve given the node1 in the DNS and click Apply. Click Done.
  • On disk management in the installation, click the Auto. Do not try to create things manually as the Node-NG has it’s own requirements. Click Done.
  • In the keyboard section – select the US, as well as any other that you wish to use.
  • In Time zone, select your time zone.

install (virt-manager on Fedora/CentOS/Ubuntu):

  • If you’re using CentOS or Fedora, disable SELinux. If you want to temporarily disable SELinux, use the command setenforce 0 and if you want to permanently disable SELinux, edit the /etc/selinux/config file and set selinux=disabled and reboot.
  • You’ll need to create a bridge between your wired Ethernet connection and a bridge. See instructions here how to create it.
  • run virt-manager and enter your password, if needed.
  • create a vm by pressing the first button on the left
  • clock Forward
  • Click Browse and on the open window, and then click “Browse Local” and select the downloaded ISO
  • Click Forward
  • memory: at least 8 GB. I recommend 12 if you want to run another guest VM inside oVirt.
  • CPU’s – at least 6 cores
  • disk image – at least 100GB and then click Forward..
  • Change the name to something else
  • In the network selection, make sure to select the bridge.
  • Click the “Customize configuration” and then click “Finish”
  • Check the CPU’s, NIC, disk, and SATA CDROM for correct values.
  • Click “Begin installation” and follow the video.

while installing:

  • edit and commend out the last line in /etc/yum/repo.d/ovirt-4.3.repo
  • save, exit
  • run: yum install vdsm-hook-nestedvt
  • edit the file again and remove the comment (#) from the last line. save, exit
  • edit the file /etc/modprobe.d/kvm.conf and comment out either kvm_intel or kvm_amd – depends on your CPU (at the moment AMD support has a bug).
  • Save, exit, reboot the VM

After rebooting, you can browse the cockpit interface to install the hosted engine (for example, if your VM IP is 192.168.0.40 then go to https://192.168.0.40:9090). Login as root with your password.

Click on the hosted engine and install as seen on the video.

Remote viewer can be downloaded from here.

oVirt guest tools ISO can be downloaded here.

 

Print Friendly, PDF & Email

Comments

comments

Leave a Reply

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