Bookmark this page

Lab: Backing Up and Upgrading Red Hat Virtualization

Performance Checklist

In this lab, you will perform a backup of the Red Hat Virtualization environment and update RHV environment hosts.

Outcome

You should be able to update all RHV-H hosts existing in your environment.

Log in to workstation as student using student as the password.

On workstation, run the lab upgrade-review start command. This command runs a start script that determines if the Red Hat Virtualization environment is configured and working.

[student@workstation ~]$ lab upgrade-review start
  • Upgrade the hostc.lab.example.com RHV-H host in the production data center.

    Download the http://materials.example.com/yum.repos.d/rhvh_updates.repo file to hostc, and then copy it into /etc/yum.repos.d/rhvh_updates.repo. This enables the RHV-H repository.

    1. From workstation, open a terminal and use ssh to log in to hostc.lab.example.com using the user name root.

      [student@workstation ~]$ ssh root@hostc.lab.example.com
      ...output omitted...
    2. To update your RHV-H operating system on your hostc.lab.example.com host, you normally would ensure the system is registered with Red Hat Subscription Manager and has the correct entitlements and Yum repositories enabled.

      In this classroom environment, this step has been modified because the classroom might not have access to the Content Distribution Network or to a Red Hat Satellite server. Instead, local Yum repositories have been provided, and contain the correct updates.

      Download the rhvh_updates.repo file from http://materials.example.com/yum.repos.d/rhvh_updates.repo and place it in the /etc/yum.repos.d/ directory to enable those repositories.

      [root@hostc ~]# curl http://materials.example.com/yum.repos.d/rhvh_updates.repo \
       -o /etc/yum.repos.d/rhvh_updates.repo
    3. Exit from hostc.

    4. On workstation, open Firefox and using the https://rhvm.lab.example.com URL go to the RHV-M web interface. Click on the Administration Portal link and log in to the web interface as the admin user with the internal profile. Use redhat as the password.

    5. Navigate to Hosts by clicking on the ComputeHosts menu.

    6. On the list of available RHV-H hosts, click on the hostc.lab.example.com host. In the window that displays, click Installation, and then click Check for Upgrade.

    7. When the Upgrade Host window displays, click OK to confirm the upgrade check.

      Notice that after a few moments, a new Action Item displays.

    8. Click on Upgrade next to the Action Item labelled A new version is available.

    9. In the Upgrade Host window, click the OK button to start the upgrade.

      Return to the Compute >> Hosts page.

      Wait and watch as the upgrade procedure taking place. Notice that the hostc.lab.example.com server status changes to Preparing for Maintenance, Maintenance, Installing, Reboot, Unresponsive, and finally to Up. The upgrade process can take some time to complete.

      Note

      If hostc.lab.example.com has running virtual machines they will be migrated to another host during the upgrade process. To ensure a smooth upgrade in the classroom environment shut down any running virtual machines.

Evaluation

On workstation, run the lab upgrade-review grade command to confirm that you have completed this exercise successfully.

[student@workstation ~]$ lab upgrade-review grade

Finish

On workstation, run the lab upgrade-review finish script to complete this lab.

[student@workstation ~]$ lab upgrade-review finish

This concludes the lab.

Revision: rh318-4.3-c05018e