Setting Up a Demo Based on the Sun Virtual Desktop Access Kit for VMwareDirk Grobler, March 2007 (Updated July 2007) AbstractHere is a cookbook for Sun Desktop Virtualization. The Sun Virtual Desktop Access (VDA) Kit for VMware is a set of small components that combines the Sun Desktop Access layer (Sun Ray Server Software [SRSS] and Sun Secure Global Desktop [SSGD]) with VMware's Virtual Infrastructure (VI) layer. This kit needs to be installed on various tiers of the virtualization solution, which makes the installation process quite complex and far from self-explanatory. This paper gives a step-by-step introduction on how to install a demo for the VDA Kit for VMware.
IntroductionSetting up a demo to show the Sun Desktop Virtualization assets is a time-consuming task because it involves various layers of software that are complex in themselves. A guide that gives a clear overview on the required components, how they are installed, and how they are configured can be beneficial for someone who is new to the topic. However, this document presents only one possible setup. More options are definitely available, but this paper should get you started. The goal here is not to explain the architecture and design of the VDA Kit. The Sun BluePrints publication Sun Virtual Desktop Access Kit for VMware covers both architecture and design in detail. This paper provides an overview of the demo architecture and the process for installing the demo. At the end of this paper, you will also get some hints on how to transfer the demo setup into a setup that can be used for a customer proof of concept (POC). The intention of this document is to show how to create a small and self-contained demo. However, it includes various different products and technologies that need to work nicely together. To complete the demo successfully, you need knowledge about VMware Infrastructure 3, Sun's access tier, Sun Ray Server, Sun Secure Global Desktop, and finally, the fundamentals of Microsoft Windows XP deployment and remote connection. This sounds like a lot, and it really is. It is easy to get stuck during the installation process. Therefore, a detailed troubleshooting section has been added at the end of the document. OverviewThis paper attempts to keep the hardware required for installation as minimal as possible. 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, 4GB RAM, and two hard disks should be sufficient. On this server, VMware ESX 3.01 or above needs to be installed. All other required services, such as Virtual Center, Sun Ray server, or Sun Secure Desktop server, are installed as Virtual Machines (VMs) inside ESX, in addition to the managed virtual desktops, of course. Figure 1 provides an overview of the intended setup.
Figure 1: Overview of Intended Setup The ESX server hosts all software services. It contains two virtual networks. One of them is connected with a physical network and is shared with the display clients (Sun Ray clients and a notebook). This virtual network 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 Ray Server Software/Sun Secure Global Desktop server and the Virtual Center server are connected through a virtual switch with the physical network. This connection is actually hidden in Figure 1. The physical network is responsible for the device communication with the desktop access tier. It can also be used to manage the Virtual Infrastructure. The second virtual network is private to the ESX server and is not connected with a physical network. It connects Sun Ray Server Software/Sun Secure Global Desktop and the Virtual Center with all virtual desktops. The Sun Ray server is configured as the Dynamic Host Configuration Protocol (DHCP) server for this network. This private network handles the VDA communication. Requests from the VDA client to the VDA service are routed through this network. The Remote Desktop Protocol (RDP) communication also occurs within the private network. InstallationNow that you have a rough overview of the intended demo setup, you can begin the installation procedure. If you do the installation from a shared network, make sure that you get at least four static IP addresses for the ESX server, the Integrated Lights Out Manager (ILOM), Sun Ray Server Software/Sun Secure Global Desktop, and Virtual Center. Also make sure that you have a dedicated license for Virtual Center. Installing ESX The installation of the ESX
server is straightforward. The installation can be very simply invoked
through the ILOM of the Galaxy server (such as a Sun Fire x4100 server). Make sure that you are using at least version 3.0.1. ESX is a Linux-based appliance. During
installation you can safely rely on most of the suggested default settings.
The only thing you should do right after installation is to
open up Installing the Virtual Infrastructure Client Once the system is set up, you should install the VI client. It is a Microsoft Windows application. It presents far more options to configure the system. So if you don't want to learn about all the command line tools, you should really use it. You'll need it anyway later for the Virtual Center. You can download the client through the web access interface, which can be launched by typing the IP address of the ESX server into your browser. Setting Up the License for ESX During the installation process, there is no need to provide the license. At the moment when you want to create a VM, you are reminded that you haven't provided the license for the system. Assuming you have not set up a license server yet, you need to use your license file. Within the VI client, select the Configuration tab and then under Software, locate the License Feature section. From this point on, setting up the license should be straightforward. Configuring a Private Network As explained in Overview, you need to set up a second private network for the VDA and RDP communication. You need to launch the Virtual Infrastructure client and connect it to the ESX server:
The new private network is created. Because the switch is not connected to an adapter, no communication will be routed into a physical network. Setting Up the OS Image The Sun Ray server, and later Sun Secure Global Desktop, need to be installed on the Solaris 10 Operating System:
Installing the Sun Ray Server Software The Sun Ray server and the Windows connector are installed in the typical manner. Installing the VDA Client
Configuring CAM
Configuring Kiosk (applicable only for SRSS 4.x) SRSS 4 introduces the Kiosk component, which replaces the Control Access Mode. The operation and configuration is quite similar.
The only thing you need to add is a session descriptor in the kiosk configuration directory KIOSK_SESSION_EXEC="/opt/sun-vda/bin/vda-kiosk.sh" KIOSK_SESSION_LABEL="VDA Kit Session" KIOSK_SESSION_Description="Starts Virtual Desktop Access Kit sessions" KIOSK_SESSION_PROTOTYPE=vda Once this VDA session descriptor is written, it is picked up by the new Administration UI. The administrator can then simply select the VDA session. Configuring DHCP for the Private Network Configure the private network as a directly connected dedicated
interconnect. Basically, the Sun Ray server will act as DHCP server for this
network. Only the Sun Ray server and the Virtual Center server need to
have static IPs in this subnet. You can set the configuration using
the Configuring the Primary Interface You also need to configure the primary interface, but this step depends on whether the interface belongs to a shared subnet or a dedicated one. Creating Demo Users If the demo has no Network Information System (NIS) setup, you should create your demo users on the Sun Ray server and later on the Virtual Desktops. Setting Up the OS Image The Virtual Center service is installed on either Windows XP or Windows 2003. The OS will be installed as VM:
Installing Virtual Center
Configuring Web Access for the VI SDK The VDA service uses the VI Software Development Kit (SDK) for communication with Virtual Center. The
communication is handled by the VMware Infrastructure SDK Web Service.
The URL for accessing the VMware Infrastructure is protocol To use the HTTP protocol to access to the Virtual Center Web Service, you must edit the configuration file. Note: You should edit the configuration file only in a
test or development environment. The configuration The following steps are for configuring HTTP access:
Setting Up the For Windows customization, you need to install the Configuring Virtual Center
Note:
When you change the naming of pools, the data center, or the cluster,
you need to understand the internal structure and hierarchy as it is used
in the VI SDK. The top-level node is typically a data center. Underneath,
you have a subtree for hosts ( Creating the Golden Image Perform all the procedures in the Setting Up the Virtual Desktop section and then finish the rest of the procedures in this "Setting Up Virtual Center" section. Creating a Template for Deployment The template can be created through the default commands within the Virtual Infrastructure Client. Once created, the template will seed the Virtual Desktop population. Installing and Configuring the VDA Service
Setting Up the Virtual Desktop Setting Up the OS Image Use Windows XP SP2:
Configuring Power Management The Power Options for Windows XP have quite an important role. They control the suspend behavior of the VM. Power Options can be found in the Control Panel. 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. A couple of vendors have addressed this as an addition to the Windows default Group Policy. A free Terro Novum tool called EZ GPO allows you to control the Power Options using GPO. Setting the StandBy Time setting as a local or central GPO through AD gives the most reliable results. Installing the VDA Tools
Creating Demo Users
Creating a Template for Deployment This template will seed the Virtual Desktop population. Setting Up Secure Global Desktop Installing Sun Secure Global Desktop Install Sun Secure Global Desktop onto the Sun Ray server in the usual manner. Configuring VDA Client
Configuring Desktop Access With the Object Manager
Post InstallationOnce you have gone through all the installation steps, take a deep breath and cross your fingers. Ideally, it should now be possible to launch the newly created Virtual Desktops either through Sun Secure Global Desktop or Sun Ray Server Software. You can test doing that with your Sun Ray client or the laptop. There are a few other things to consider: Implementing Hotdesking Between Sun Ray Server Software and Sun Secure Global Desktop: Hotdesking between both worlds will be possible if the same identifiers (namely the user ID) are used. Hotdesking requires you to assign a couple of smartcards with the IDs of the demo users, which can be done through the Sun Ray Administration UI. Once this is done, Virtual Desktops are requested with the user ID instead of with the smartcard token ID. Starting and Defining Static and Dynamic Virtual Desktops: Once you feel more familiar with the architecture, you can start and define static desktops (by moving VMs into the folder called Pool-Static and naming them after a certain users). You might also want to define a different behavior for the smartcard and the nonsmartcard scenario. You can do that by using different Golden Images. From Demo to Proof of Concept (POC)This architecture is quite small. It serves only a limited number of desktops. However, even for a small POC, this architecture might be quite sufficient. Here are the things you definitely need to rework:
TroubleshootingYou've run various setup steps and might still not see the desired result: a running demo. Here are a couple of troubleshooting hints. Virtual Desktops are not automatically created by the VDA Service: There are a couple of reasons why this might fail:
Virtual Desktops are created automatically, but they stay in the factory:
Sun Ray Desktop Unit is cycling and cannot connect to a Virtual Desktop:
Users can't log in to Windows XP:
Unused Virtual Desktops do not suspend:
Virtual Desktops get unresponsive after a couple of hours: Check if your Virtual Desktops run at least Windows XP SP2. In previous versions, there was a bug in the terminal services implementation. You can't create a customization specification for Windows: Make sure you have installed the C:\Documents and Settings\All Users\Application Data\ / VMware\VMware VirtualCenter\sysprep\xp If the VDA service does not automatically create new instances of Virtual Desktops, make sure that the name of the customization specification matches the name in your VDA service configuration
( References
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. |
| ||||