Bookmark this page

Lab: Installing and Configuring Red Hat Virtualization

Performance Checklist

In this lab, you will create a new virtual machine in your Red Hat Virtualization environment using a qcow2 image.

Outcomes

You should be able to:

  • Upload a qcow2 image to an existing data storage domain.

  • Create a new virtual machine using an unattached disk in the data storage domain.

  • Verify that your virtual machine starts correctly.

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

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

[student@workstation ~]$ lab install-review start
  1. On workstation, download the qcow2 image located at http://materials.example.com/rhel-8.0-lab.qcow2 to the /home/student/Downloads/ directory.

    1. Use the wget command to download the qcow2 file:

      [student@workstation ~]$ wget -P ~/Downloads/ \
      http://materials.example.com/rhel-8.0-lab.qcow2
      ...output omitted...
      HTTP request sent, awaiting response... 200 OK
      Length: 1864302592 (1.15G)
      Saving to: ‘/home/student/Downloads/rhel-8.0-lab.qcow2’
      ...output omitted...
  2. Use Firefox to access the RHV-M Administration Portal located at https://rhvm.lab.example.com/ovirt-engine/webadmin/. Log in as user admin with a password of redhat. The profile should be set to internal.

  3. Upload the qcow2 file to the hosted_storage data storage domain as rhel8-lab.

    1. In the menu bar, click Storage and then select Disks.

    2. In the upper-right corner, click Upload and then select Start.

    3. Use the Choose File button to select the previously downloaded qcow2 file. In the File Upload window, click Downloads in the left navigation and then double-click the rhel-8.0-lab.qcow2 file to select it. If you downloaded rhel-8.0-lab.qcow2 to a different location, you will need to find it.

    4. In the Upload Image window, use rhel8-lab in both the Alias and Description fields. Verify that Data Center is set to Default and that Disk Profile is set to hosted_storage. Accept the default settings for everything else.

    5. In a previous guided exercise, you should have downloaded the ovirt-engine certificate. Click the Test Connection button to verify this. If clicking the Test Connection button returns a green success box, then you are ready to upload. If clicking the Test Connection button returns an orange warning box, click the ovirt-engine certificate link within the warning box. Check the box next to Trust this CA to identify websites and then click the OK button. After you have done this, click the Test Connection button again. It should return a green success box.

      Important

      If you accidentally forget to check the box next to Trust this CA to identify websites, the following procedure will allow you to bring up that window again:

      1. Open Preferences for Firefox and then select Privacy & Security in the left navigation.

      2. Scroll down to the Security section (at the bottom) and click the View Certificates... button.

      3. In the Certificate Manager window, scroll down to lab.example.com, click rhvm.lab.example.com.34088 so that it is highlighted, and then click the Delete or Distrust button.

      4. Back on the Preferences tab for Privacy & Security, scroll up to the Cookies and Site Data section and then click the Clear Data... button.

      5. Accept the default selections and click the Clear button. Confirm your choice by clicking the Clear Now button in the new window that appears.

    6. Click the OK button to start the upload process.

  4. Create a new virtual machine according to the following requirements:

    • Cluster: Default

    • Template: Blank | (0)

    • Operating System: Red Hat Enterprise Linux 8.x x64

    • Instance Type: Custom

    • Optimized for: Server

    • Name: rhel-lab-test

    • Instance Images: Attach the rhel8-lab disk (ensure that the check box under the OS column is checked)

    • nic1: ovirtmgmt/ovirtmgmt

    1. Within the RHV-M Administration Portal, click Compute in the menu bar and then select Virtual Machines.

    2. Click the New button.

    3. Ensure Cluster is set to Default.

    4. Ensure Template is set to Blank | (0).

    5. Ensure Operating System is set to Red Hat Enterprise Linux 8.x x86.

    6. Leave Instance Type set as Custom.

    7. Ensure Optimized for is set to Server.

    8. Use rhel-lab-test as the name of the virtual machine.

    9. For Instance Images, click the Attach button. In the Attach Virtual Disks window, click the radio button for rhel8-lab and ensure the check box in the OS column is checked. Click the OK button to attach the disk.

    10. For nic1, ensure ovirtmgmt/ovirtmgmt is selected.

    11. Click the OK button to create the virtual machine.

  5. Verify that the rhel-lab-test virtual machine starts correctly.

    1. Within the RHV-M Administration Portal, click Compute in the menu bar and then select Virtual Machines.

    2. Click the blank Comment column for the row containing the rhel-lab-test virtual machine. The entire row should now be highlighted in blue.

    3. Click the Run button to start the rhel-lab-test virtual machine.

    4. Once it becomes accessible, click the Console button. If prompted, open the virtual machine using Remote Viewer.

    5. Verify that you can log in as user root with a password of redhat.

    6. Shut down the virtual machine using the systemctl poweroff command.

Evaluation

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

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

Finish

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

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

This concludes the guided exercise.

Revision: rh318-4.3-c05018e