Upgrading KVM Hosts

After you upgrade your engine, you have the option of working with Release 4.2.8 KVM hosts or upgrading them to Release 4.3.6. If you choose to upgrade one or more hosts, any virtual machines residing on a host are put into Maintenance mode before the host is upgraded. After the upgrade completes, the virtual machines are restarted on the newly upgraded host.

Before you upgrade a KVM host, here are a few considerations.

  • If migration is enabled at the cluster level, virtual machines are automatically migrated to another host in the cluster.

  • The cluster must contan more than one host before performing an upgrade.

  • Do not attempt to upgrade all hosts at the same time because one host must remain available to perform Storage Pool Manager (SPM) tasks.

  • The cluster must have sufficient memory reserve in order for its hosts to perform maintenance. If a cluster lacks sufficient memory, the virtual machine migration hangs and then fails. You can reduce the memory usage of virtual machine migration by shutting down some or all virtual machines before updating the host.

  • You cannot migrate a virtual machine using a vGPU to a different host. Virtual machines with vGPUs installed must be shut down before updating the host.

To upgrade a KVM host you install the ovirt-engine package and then complete the upgrade steps in the Administration Portal.

  1. Subscribe to the required channels OR install the Release 4.3.6 package.

    1. For ULN registered hosts only: If the host is registered on ULN, subscribe the system to the required channels.

      1. Log in to https://linux.oracle.com with your ULN user name and password.

      2. On the Systems tab, click the link named for the host in the list of registered machines.

      3. On the System Details page, click Manage Subscriptions.

      4. On the System Summary page, select each required channel from the list of available channels and click the right arrow to move the channel to the list of subscribed channels. Subscribe the system to the following channels:

        • ol7_x86_64_ovirt43

        • ol7_x86_64_ovirt43_extras

      5. Click Save Subscriptions.

    2. For Oracle Linux yum server hosts only: Install the Oracle Linux Virtualization Manager Release 4.3.6 package.

      # yum install oracle-ovirt-release-el7
  2. In the Administration portal, go to Compute and then click Hosts.

  3. In the Hosts pane, select a host, click Installation and then Check for Upgrade.

  4. From the Upgrade Host window, click OK.

    The engine checks the KVM host to see if it requires an upgrade.

  5. To proceed with the upgrade, click Installation and then Upgrade.

  6. From the Upgrade Host window, click OK to begin the upgrade process.

    On the Hosts pane you can watch the host transition through the upgrade stages: Maintenance, Installing, Up. The host is rebooted after the upgrade and displays a status of Up if successful. If any virtual machines were migrated off the host, they are migrated back.

    Note

    If the update fails, the host’s status changes to Install Failed and you must click Installation and then Upgrade again.

  7. Unsubscribe to the 4.2 channels OR disable the 4.2 repositories.

    1. For ULN registered hosts only: If the host is registered on ULN, unsubscribe to the following channels.

      • ol7_x86_64_ovirt42

      • ol7_x86_64_ovirt42_extras

    2. For Oracle Linux yum server hosts only: Run the following commands.

      # yum-config-manager --disable ovirt-4.2
      # yum-config-manager --disable ovirt-4.2-extra
      Important

      Before you execute yum-config-manager ensure the yum-utils package is installed on your system. For more information, see Using Yum Utilities to Manage Configuration in the Oracle® Linux 7: Administrator's Guide

  8. (Optional) Repeat the previous steps for any KVM host in your environment that you want to upgrade.