Product SiteDocumentation Site

Lab 8 - Virtual Desktops

In Lab 4 - Power User Portal, you learned how to provision virtual machines in the user portal when you have power user privileges. In this lab however, you will log in to the user portal using the same web address but with a different domain. In particular, this lab pertains to the use of Windows virtual desktops and pools, which require users to be configured in Active Directory.
For desktop users, the Red Hat Enterprise Virtualization user portal is simply a one-stop platform to access one or more virtual machines. This portal is suitable for desktop end users who have little need to make configuration changes to their virtual machines. At the end of this lab you will have created Windows virtual machines and pools, and be able to connect to virtual machines from the basic user portal.
This lab assumes that you have successfully completed the basic labs of Section 1, “Track A: Standard Setup” or Section 2, “Track B: Minimal Setup”. You should have correctly installed and configured Red Hat Enterprise Virtualization, and be able to create virtual machines.
Lab 8 - Objectives
This lab takes you through the tasks necessary to create and then connect to a Windows virtual machine or desktop pool with UserRole privileges. This lab should take you about 50 minutes.
Section 1, “Add Active Directory Domain” shows you how to add an Active Directory domain to the Red Hat Enterprise Virtualization Manager in order to use Windows virtual desktop pools. (5 minutes)
Section 2, “Create a Windows Virtual Machine” shows you how to create a new Windows virtual machine, configure storage and networking, and install the operating system. (15 minutes)
Section 3, “Create a Windows Template” shows you how to seal the Windows virtual machine with sysprep and use it as a basis to create a template. (10 minutes)
Section 4, “Create a Windows Virtual Machine from a Template” shows you how to create a thin provisioned virtual machine from the Windows template and apply the sysprep configuration settings. (5 minutes)
Section 5, “Assign Virtual Machine User Permissions” shows you how to assign UserRole permissions for a virtual machine to a user. (2 minutes)
Section 6, “Connect to a Virtual Machine” shows you how to log in to the User Portal and connect to a virtual machine. (3 minutes)
Section 7, “Use Virtual Desktop Pools” shows you how to create a Windows desktop pool, assign UserRole permission for the desktop pool and how to connect to a virtual machine in a pool. (10 minutes)
Lab 8 - Requirements
In addition to the requirements stipulated in Section 1.1, “Track A Requirements” (for Track A) or Section 2.1, “Track B Requirements” (for Track B), to complete this lab you need the following requirements:

1. Add Active Directory Domain

Previously, you have used the internal domain, and learned how to add an IPA domain to the Red Hat Enterprise Virtualization Manager. In addition to IPA, Active Directory is also supported. This lab teaches you how to use Active Directory to authenticate users.
To add an Active Directory domain
  1. Log in to the Red Hat Enterprise Virtualization Manager server console.
  2. Run the following command, and provide the domain administrator password when prompted:
    # rhevm-manage-domains -action=add -domain=addomain.demo.redhat.com -user=desktopsadmin -interactive
  3. Restart the service for the changes to be applied across the system.
    # service jbossas restart
    Restarting the JBoss service disconnects you from the administration portal. After a few minutes, the restart completes, and you can log back in to the administration portal.
  4. Refresh the administration portal login screen. On the drop-down menu, you now have three domains — the internal domain, the IPA domain, and the new Active Directory domain. Log in to the portal as the admin user with the internal domain.