Building a Virtual Desktop Infrastructure Demo With Sun Virtual Desktop Connector 1.0Dirk Grobler, November 2007 (Updated March 2008) AbstractThis is a cookbook for building a demo using Sun's new desktop broker, the Sun Virtual Desktop Connector 1.0. This cookbook explains how to compose a self-contained demo based on Sun Virtual Desktop Infrastructure (VDI) Software [1]. This document is not meant to replace the Installation and Administration Guide for the Sun Virtual Desktop Connector [2], but to act as supplemental material. ContentsThis article covers the following topics:
IntroductionDesktop virtualization is getting more and more popular, and the tools for managing a Virtual Desktop Infrastructure (VDI) are becoming more sophisticated at the same time. The central management tool for a VDI is commonly referred to as a connection broker or a desktop broker. Early in 2007, Sun released a developer preview of its connection broker, Sun Virtual Desktop Access Kit for VMware, Version 1.0. The successor, the Sun Virtual Desktop Connector 1.0, has been released in March 2008 [1]. Besides providing a fully supported component as part of the Sun VDI Software offering, the goal of the Sun Virtual Desktop Connector is to significantly simplify the installation and configuration of the VDI stack. Since the release of the beta, a few improvements have been included in the product:
Please note that this updated cookbook focuses on the VMware VirtualCenter platform in response to customer requests and reflects the fact that VMware ESX-only support has been dropped. Please also note that dynamic provisioning of Windows Vista desktops is possible, but it requires a workaround that is documented in the troubleshooting section of the Sun Virtual Desktop Connector manual. Now, you may ask, why do I still need a cookbook in addition to the product's installation and administration guide? That is a fair question. The architecture is still multitiered and requires various skills for setup. That hasn't changed. A guide that provides a concise overview of the available functionality and a straightforward method for creating a demo can be a valuable addition. This cookbook focuses on providing quick, concise step-by-step instructions on how to build a first demo of the Sun VDI stack. It is still recommended that you look at the referenced documentation when questions arise during the setup process or when you progress from the demo to a proof-of-concept or production deployment. ArchitecturePrior to installing the demo, it is important to have a rough understanding of the underlying product. Sun VDI Software is a layered product that provides the means to access a data-center-hosted desktop from a remote client such as a PC, a notebook, or a Sun Ray Ultra-Thin Client. The following figure provides an overview of how this is accomplished.
Figure 1: Architecture Overview On the left side you find the virtualization hosts that serve the desktop to the user. This is typically the Microsoft Windows XP desktop. Currently, VMware Virtual Infrastructure 3 is the supported platform, more specifically VirtualCenter 2.x. An alternative platform such as Sun xVM is planned for a follow-up release. Sun VDI Software is placed in the middle between the virtualization hosts and the remote clients. Sun VDI Software consists of three parts that all can reside on a single system. The Virtual Desktop Connector (and more specifically, its service component) is responsible for allocating virtual desktops to the user from the virtualization platform. This is done through a Sun Virtual Desktop Connector agent installed on the virtualization layer. The lookup process is initiated through the Virtual Desktop Connector client, invoked through a Sun Ray Server Software (SRSS) or Sun Secure Global Desktop (SSGD) session. Once the virtual desktop is located and up and running, a remote connection (Microsoft RDP) is established and routed through the access tier (Sun Ray Server Software or Sun Secure Global Desktop) to the client device and its user. Besides the allocation and routing of virtual desktops, the Sun Virtual Desktop Connector provides features that control the whole desktop lifecycle from creation up to deletion of the virtual desktops. Some of these features are illustrated later in the description of the core configuration tasks. Note: For setting up Sun VDI Software, the Solaris 10 08/07 Operating System for x86 platforms is the recommended OS. Installation OverviewThis paper attempts to keep the hardware required for installation to a minimum. The core of the demo installation is a "Galaxy" server, such as a Sun Fire x4100, x4200, or x4600 server. A Sun Fire x4100 server with two CPUs, 4-GB RAM, and two hard disks should be sufficient. On this server, VMware ESX 3.0.2 (or above) software needs to be installed. All other required services, such as VMware VirtualCenter, Sun Ray Server or Sun Secure Global Desktop Server, are installed as Virtual Machines (VMs) inside VMware ESX, in addition to the managed virtual desktops, of course.
Figure 2: Installation Overview The VMware ESX server hosts all software services delivered on two virtual networks. One of them is connected to a physical network and is shared with the display clients (Sun Ray clients and a notebook). This is the public network and can be set up easily with a physical switch. Instead of using a physical switch, you can connect the entities through a shared network. The Sun VDI server is connected through a virtual switch to the public network. The public network is responsible for the device communication with the desktop access tier. It can also be used to manage the VMware ESX server. You also have the option of connecting the VMware VirtualCenter with the public network, simply for administration purposes. The second virtual network is private to the VMware ESX server and is not connected to a physical network. It connects the Sun VDI Software with all the virtual desktops. The Sun VDI Software, or more specifically, the Sun Ray Server component, is configured as the Dynamic Host Configuration Protocol (DHCP) server for this private network. The VMware VirtualCenter is also connected to this private network. This network handles the virtual desktop lookup process on behalf of the user and the Remote Desktop Protocol (RDP) communication between the Sun VDI server and the virtual desktops. The following sections walk you through the installation of the various components. There are two main steps:
Preparing the Virtual InfrastructureSetting Up VMware ESX 3.5The installation can be simply invoked through the Integrated Lights Out Manager (ILOM) of a "Galaxy" server (such as a Sun Fire x4100 server). VMware ESX is a Linux-based appliance. During installation, you can safely rely on most of the suggested default settings. After installation, make sure that you can access the VMware ESX server through the VMware Virtual Infrastructure Client and that the license is set properly. Configuring a Private NetworkThe only variation from the default is the setup of a private network that is not connected to a network interface adapter for the RDP communication, as outlined in the Installation Overview section.
The new private network is created. Because the switch is not connected to an adapter, no communication will be routed into a physical network. Configuring VMware VirtualCenter 2.5VMware VirtualCenter is simply installed as a VM inside your VMware ESX server. The guest OS can be Microsoft Windows XP. An 8-GB hard disk and 1GB of RAM are sufficient. The VM should be connected into the public and private network. Once VMware VirtualCenter is installed, complete the following configuration steps:
Thereafter, the VirtualCenter is ready to communicate with the Virtual Desktop Connector. Setting Up the Microsoft Windows GuestThere needs to be at least one instance of Microsoft Windows XP installed as Virtual Machine (VM) to seed the desktop population. In addition to the highlighted settings it is recommended to read through the VMware Windows XP Deployment Guide for further XP optimizations [4]. It is assumed that the process of creating such a VM is largely known. So only a few important settings are highlighted. Setting Up the OS ImageFollow these guidelines:
Configuring Power ManagementThe Power Options for Microsoft Windows XP have quite an important role. They control the suspend behavior of the VM. The idea is that a currently unused virtual desktop gets suspended automatically to release all its CPU and memory consumption. So unused virtual desktops are treated like a notebook that is unplugged to save power. Besides freeing resources for other virtual desktops, it is also possible to define policies to reset machines and hand them over to other users or to delete them and create fresh machines instead. More detail can be found in the Installation and Administration Guide [2]. Power Options can be found in the Control Panel of Microsoft Windows XP. You have to define the StandBy Time to the best suitable value. Note: The StandBy Time is a machine setting and can be set only by the administrator of the machine. Controlling this setting for each individual box could be quite tedious and error prone. Using Group Policy in a deployment dependent on Microsoft Active Directory (AD) would be great, but there are no such Group Policy Objects (GPOs) for Power Options for Microsoft Windows XP. A couple of vendors have addressed this as an addition to the Microsoft Windows default Group Policy. A free Terro Novum tool called EZ GPO allows you to control the Power Options using GPO [5]. Setting the StandBy Time as a local or central GPO through AD gives the most reliable results. Installing the Sun Virtual Desktop Connector ToolsThe Sun Virtual Desktop Connector tools are intended to ensure that a virtual desktop switching into standby or suspend mode disconnects the RDP connection. This is, unfortunately, not the default behavior we have observed in Microsoft Windows XP. The Sun Virtual Desktop Connector Tools will recognize the StandBy event of the system and will actively close a remote connection. The install procedure is simple. The Sun Virtual Desktop Connector Tools are located in the Windows folder of the download package:
Enabling Remote AccessRDP is the main access method to the Microsoft Windows XP desktop. By default, this access method is disabled and rejected through the firewall. Before you try to connect to a virtual desktop remotely, do the following:
Defining the Microsoft Windows Guest as TemplateThis is the final guest preparation step. Once this is done, the template can automatically be cloned by the Virtual Desktop Connector. Setting Up Sun VDI SoftwareThe Sun VDI stack is installed onto a single virtual machine. The Solaris 10 08/07 Operating System for x86 platforms is the recommended OS. It should perform much better than previous versions. Just follow the standard installation procedure. Setting Up the Solaris GuestFollow these guidelines:
Setting Up Sun Ray Server Software (SRSS) 4Both the Sun Ray Server Software in version 4 and the matching Sun Ray Windows Connector in version 2 need to be installed. It is important that the Kiosk mode is configured as the remote web administration during the configuration process. After the final installation step, there remains only the setup of the network configuration. Here are two recommended configuration steps:
Setting Up Sun Secure Global Desktop (SSGD) 4.4The setup of Sun Secure Global Desktop is straightforward. It requires you to run the package installation and to start the
Sun Secure Global Desktop service ( Setting Up Sun Virtual Desktop Connector 1.0The Sun Virtual Desktop Connector is installed in the following steps. The first step unpacks all installation packages and the second step configures how the Sun Virtual Desktop Connector integrates with the other Sun VDI components, such as the Sun Ray Server Software and the Sun Secure Global Desktop. Here is a brief overview:
At this point, Sun Secure Global Desktop has been fully set up for users to access their virtual desktops. For the Sun Ray Server Software, there are a few more setup steps to perform in order to access virtual desktops on the Sun Ray device:
Now, both access methods (thin-client and browser-based) are configured. The last remaining step is to create and assign virtual desktops to users, which is explained in the next section. Completing the DemoThis section elaborates on the remaining configuration steps for completing a first demo. The goal is that the system creates new virtual desktops automatically and assigns them to users when they log in. This process is captured using the concept of pools within the Sun Virtual Desktop Connector. A pool typically consists of a number of settings that allow the connector to create virtual desktops automatically based on a virtual machine template. Next you will find the sequence of tasks that are needed to create a pool configured for automatic provisioning. Creating a PoolNow it is time to launch the Sun Virtual Desktop Connector administration tool. This tool allows you to manage the connection to the virtualization hosts, the assignment of virtual machines to users, and the configuration of pools:
Now you can confirm these settings. The system will shortly thereafter start to clone the first new Microsoft Windows instances. In the pools overview page, you can see the current status, which indicates how many VMs are available (ready for usage), used (currently being used), or in preparation (currently being created). Verifying the DemoAfter a few VMs have been created and are marked available, you can verify your demo using either of these methods:
That's it. Setup is done. Congratulations! The next section elaborates on a few additional configuration options for fine-tuning your demo. Enhancing Your DemoRefer to the Installation and Administration Guide for the Virtual Desktop Connector ([2]) for a complete overview of features. Here are the highlights of a few configuration options. Enabling Session Pickup Between Sun Ray Desktop Unit and Sun Secure Global DesktopThe ability to pick up a session from a thin client, a notebook, or a PC using a Java technology enabled browser is one of the most powerful features that Sun VDI Software provides. It only requires that users are properly associated with the smart cards they are using. This action is typically part of the user provisioning. Sun Ray software provides a mechanism to register a smart card with the token. Therefore, you simply need the token ID of the smart card, which can be grabbed easily from a running session or read from a Sun Ray client that is configured as token reader. The registration then associates any so-called owner (typically, the user's identifier) and the smart card's token ID. Just open the Sun Ray administration interface and look at the token section. After the registration is complete, you can access a Microsoft Windows desktop two ways:
Assigning a Virtual Machine to a UserThe most common situation in a desktop deployment is actually that users own their desktops instead of just being granted temporarily access. So a permanent relationship between user and virtual desktop is desirable. This relationship can be established easily through the Virtual Desktop Connector administration tool:
SummaryOnce you have set up this initial demo, you can expand by making your demo more complex. You can define different types of templates, define different types of pools, add more ESX hosts to the Virtual Center, and much more stuff. If you run into problems, please consult the manual, which provides more in-depth information about the product and also a comprehensive troubleshooting section. References2. Sun Virtual Desktop Connector Installation and Administration Guide 3. Download for Microsoft System Preparation Tool 4. VMware Windows XP Deployment Guide (pdf) 5. Free Terra Novum EZ GPO tool for power management For More InformationHere are additional resources:
Comments (latest comments first)Discuss and comment on this resource in the BigAdmin Wiki
Unless otherwise licensed, code in all technical manuals herein (including articles, FAQs, samples) is provided under this License. |
BigAdmin SubscriptionsBigAdmin Areas
BigAdmin Sun Center
BigAdmin Topics | ||||