Virtual Desktop Infrastructure
Virtual Desktop Infrastructure
E36503-03
June 2013
Oracle® Virtual Desktop Infrastructure: Administrator's Guide for Release
3.5
Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are
trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or
registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.
This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected
by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce,
translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse
engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them
to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the
following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware,
and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition
Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs,
including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license
terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government.
This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for
use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware
in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its
safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous
applications.
This software or hardware and documentation may provide access to or information on content, products, and services from third parties. Oracle
Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products,
and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of
third-party content, products, or services.
Oracle Virtual Desktop Client software is an included component of Oracle's Sun Ray Software and Oracle Virtual Desktop Infrastructure software
products that must be separately downloaded from Oracle Software Delivery Cloud (https://edelivery.oracle.com). Use of Oracle Virtual Desktop
Client is subject to the Oracle software license agreement provided with and/or applying to Sun Ray Software and Oracle Virtual Desktop
Infrastructure.
Table of Contents
Preface ............................................................................................................................................ xiii
1. System Overview of Oracle Virtual Desktop Infrastructure ................................................................ 1
1.1. Introduction to Oracle Virtual Desktop Infrastructure .............................................................. 1
1.2. About Virtualization .............................................................................................................. 2
1.3. About Storage ..................................................................................................................... 3
1.4. About Management .............................................................................................................. 3
1.5. About Desktop Access ......................................................................................................... 6
2. Installing Oracle VDI and Configuring Oracle VDI Centers ................................................................ 7
2.1. About Oracle VDI Centers and Hosts ................................................................................... 7
2.1.1. Single Oracle VDI Host Configuration ........................................................................ 8
2.1.2. High Availability Configuration Using the Embedded MySQL Server Database .............. 8
2.1.3. High Availability Configuration Using a Remote MySQL Database ............................... 9
2.2. Oracle VDI System Requirements ........................................................................................ 9
2.2.1. Oracle VDI Hardware Requirements .......................................................................... 9
2.2.2. Supported Installation Platforms for Oracle VDI ........................................................ 10
2.2.3. Requirements for Oracle Linux Platforms ................................................................. 10
2.2.4. Requirements for Oracle Solaris 11 Platforms .......................................................... 14
2.2.5. Requirements for Oracle Solaris 10 Platforms .......................................................... 15
2.2.6. User Requirements ................................................................................................. 15
2.2.7. Network Requirements ............................................................................................ 15
2.2.8. Time Synchronization .............................................................................................. 15
2.2.9. Requirements for Using a Remote MySQL Database ................................................ 16
2.2.10. Oracle VDI Centers in Virtualized Environments ...................................................... 16
2.2.11. Sun Ray Software ................................................................................................. 17
2.2.12. Sun Ray Operating Software ................................................................................. 17
2.2.13. Oracle Virtual Desktop Client ................................................................................. 17
2.3. Installing and Configuring Oracle VDI ................................................................................. 18
2.3.1. Installing Oracle VDI ............................................................................................... 18
2.3.2. Configuring a New Oracle VDI Center ...................................................................... 19
2.3.3. Adding a Host to an Oracle VDI Center ................................................................... 21
2.3.4. Removing a Host from an Oracle VDI Center ........................................................... 22
2.3.5. Reinstalling Oracle VDI ........................................................................................... 23
2.3.6. Uninstalling Oracle VDI ........................................................................................... 23
2.4. Updating Oracle VDI to Release 3.5 ................................................................................... 24
2.4.1. Oracle VDI Update Requirements ............................................................................ 24
2.4.2. Updating an Oracle VDI Center ............................................................................... 25
2.5. Firewall Ports and Protocols ............................................................................................... 28
2.5.1. Firewalls Between Clients and Oracle VDI ................................................................ 28
2.5.2. Firewalls Between Oracle VDI and User Directories .................................................. 29
2.5.3. Firewalls Between Desktop Providers and Oracle VDI Centers .................................. 30
2.5.4. Firewalls Between the Hosts in an Oracle VDI Center ............................................... 31
3. Configuring Companies and User Directories ................................................................................. 33
3.1. About User Directory Integration ......................................................................................... 33
3.1.1. Active Directory Types ............................................................................................ 33
3.1.2. LDAP Types ........................................................................................................... 34
3.1.3. User Directory Customization .................................................................................. 35
3.2. Supported User Directories ................................................................................................ 35
3.3. About Companies .............................................................................................................. 35
3.3.1. Multiple Companies and the Desktop Login Screen .................................................. 36
3.4. Creating a Company .......................................................................................................... 36
3.5. Setting Up Kerberos Authentication .................................................................................... 37
iii
Oracle® Virtual Desktop Infrastructure
iv
Oracle® Virtual Desktop Infrastructure
v
Oracle® Virtual Desktop Infrastructure
vi
Oracle® Virtual Desktop Infrastructure
vii
Oracle® Virtual Desktop Infrastructure
viii
Oracle® Virtual Desktop Infrastructure
10.1.4. Can I Try Out MySQL or Set up an Evaluation Oracle VDI Remote Database? ........ 266
10.1.5. Adding a Host to an Oracle VDI Center Fails With a Sun Ray Server Software
Replication Error ............................................................................................................. 267
10.1.6. Reconfiguring Oracle VDI Fails With "Error While Configuring Database" ................ 267
10.1.7. Oracle VDI Configuration Fails to Create Database Tables With Remote Windows
Databases That Use UTF-8 ............................................................................................ 268
10.1.8. Reverting to a Previous Release of Oracle VDI ..................................................... 268
10.2. Failover ......................................................................................................................... 272
10.2.1. Troubleshooting a Failover ................................................................................... 272
10.2.2. After a Failover the Primary Host is Not Configured ............................................... 275
10.3. User Directory ................................................................................................................ 275
10.3.1. Increasing Logging to Troubleshoot User Directory Problems ................................. 275
10.3.2. Kerberos Authentication to Active Directory Works for a While and Then Stops ........ 276
10.3.3. Can I Use PKI Instead of Kerberos for Authentication to an Active Directory? .......... 277
10.3.4. What Type of Privileged Access to the User Directory Is Required? ........................ 277
10.3.5. Can I Disable the Automatic Cleanup of Computer Objects in Active Directory? ....... 277
10.4. Oracle VM VirtualBox Desktop Provider .......................................................................... 278
10.4.1. Are all Oracle VM VirtualBox Releases Compatible With Oracle VDI? ..................... 278
10.4.2. Oracle VM VirtualBox Install Is Failing With "Postinstall Script Did Not Complete
Successfully" Errors ........................................................................................................ 278
10.4.3. There Is an Error When I Add an Oracle VM VirtualBox Host to a Desktop
Provider .......................................................................................................................... 278
10.4.4. What Are the Requirements for High Availability for Oracle VM VirtualBox? ............. 279
10.4.5. Changing the Password of the VirtualBox User ..................................................... 279
10.4.6. Adding a Sun ZFS or iSCSI Storage Fails if the VirtualBox User is Not Root ............ 281
10.4.7. Adding a Storage Fails With an "Unable to Stop Cluster" Error ............................... 281
10.4.8. A Sun ZFS or iSCSI Storage is Shown With a Reduced Capacity ........................... 282
10.4.9. A Storage Cannot Be Removed From a Desktop Provider ..................................... 282
10.4.10. Virtualization Hosts Crash if a Storage is Shut Down ........................................... 283
10.4.11. A Critical Alarm is Displayed When Storage is Added to a Desktop Provider .......... 283
10.4.12. Provider Host is Unresponsive After Updating Oracle VM VirtualBox ..................... 283
10.4.13. Storage is Unresponsive After Updating Oracle VM VirtualBox ............................. 283
10.4.14. Users Experience Blurry Text in Internet Explorer ................................................ 283
10.4.15. The Time in My Oracle VM VirtualBox Desktop Is Too Slow ................................. 284
10.4.16. I Can See My Oracle VM VirtualBox Hosted Desktop, But It Will Not Start ............. 284
10.4.17. Why Are My Windows 7 Audio Drivers Not Automatically Installed? ...................... 285
10.5. VMware vCenter Desktop Provider ................................................................................. 285
10.5.1. I Cannot Log into My VMware Virtual Machine ...................................................... 285
10.5.2. Users Cannot Log Into Their VMware Provided Windows desktop .......................... 285
10.5.3. Why Does My VMware Virtual Machine Have an Invalid IP Address Or Cannot Be
Pinged? .......................................................................................................................... 285
10.5.4. I Am Unable to Get a MS RDC Connection on My VMware Virtual Machine ............ 285
10.5.5. Creating a vCenter Desktop Provider Fails With "Unable to Contact VMware
VirtualCenter - Host Not Reachable at Port 443" Errors .................................................... 286
10.5.6. In My VMware Desktop Pool, New Virtual Machines Are Created Automatically, But
They Are Not Made Available .......................................................................................... 286
10.5.7. The VMware Virtual Machine Cloning Process Is Not Operating As Expected .......... 286
10.5.8. VMware Windows 8 Cloning Fails ........................................................................ 287
10.5.9. The Window Displaying the VMware-Hosted Virtual Desktop Is Freezing ................ 287
10.5.10. I Have Created a New Pool in My VMware Desktop provider and Virtual Machines
Are Not Created Automatically ........................................................................................ 288
10.5.11. How Do I Use VMware Virtual Machines With Multiple Network Adapters? ............ 288
10.5.12. Unused VMware Virtual Machines Are Not Being Recycled .................................. 289
10.6. Microsoft Hyper-V and RDS Desktop Providers ............................................................... 289
ix
Oracle® Virtual Desktop Infrastructure
10.6.1. Sessions Are Started by Oracle VDI on RDS Hosts That Do Not Participate in the
Microsoft Remote Desktop Provider. Why Is That Happening? .......................................... 289
10.6.2. Hyper-V Desktop Cloning Fails With "Cannot Reload MSiSCSI Target List" Errors ... 289
10.6.3. Can I Enter the Farm Information for the Microsoft Remote Desktop Provider and
let Oracle VDI Detect the Individual RDS Hosts Participating in the Farm? ......................... 290
10.6.4. Oracle VDI Is Not Able to Communicate With the Windows Server ......................... 290
10.6.5. Connection Problems between Oracle VDI and Hyper-V ........................................ 290
10.7. Desktops and Pools ....................................................................................................... 291
10.7.1. How Do I Make a Desktop Available to a User at All Times? .................................. 291
10.7.2. Starting a Desktop Fails With "No suitable Hosts to Start a Desktop for Desktop
Provider <Name>" Errors ................................................................................................ 291
10.7.3. What Is the Difference Between Personal and Flexible Desktop Assignments? ........ 291
10.7.4. Oracle VDI Fast Preparation Is Failing .................................................................. 292
10.7.5. Can I Use Wild Cards in Token Names to Represent a Group of Thin Clients in
Order to Assign These Thin Clients to a Pool? ................................................................. 292
10.7.6. The Audio in My Ubuntu Desktop Is Playing Too Slowly. What Should I Do? ........... 293
10.7.7. Audio Does Not Play After Changing the Audio Configuration for Oracle VM
VirtualBox Hosted Desktops in Oracle VDI Manager ......................................................... 293
10.7.8. USB Devices Are Not Detected ............................................................................ 293
10.7.9. Smart Cards Are Not Detected When VRDP Is Used ............................................ 294
10.7.10. What Are the Differences Between MS-RDP and VRDP? .................................... 294
10.7.11. Cloning Fails if the Sysprep Timezone Setting Does not Match the Host
Timezone ....................................................................................................................... 294
10.7.12. Checking the VirtualBox Guest Additions Version ................................................ 294
10.7.13. Starting A Desktop Fails With an "Error Getting State" Message ........................... 295
10.7.14. Creating an App-V Repository or Revision Takes a Long Time ............................. 295
10.7.15. Creating or Updating an App-V Repository Fails With a "Failed to Refresh App-V
Cache" Message ............................................................................................................ 296
10.7.16. Creating or Updating an App-V Repository Fails With a "Failed to Login User"
Message ......................................................................................................................... 297
10.7.17. Creating an App-V Repository Fails Due to Low Disk Space ................................ 297
10.7.18. Creating an App-V Repository Revision Fails With "An Internal Error Occurred"
Message ......................................................................................................................... 298
10.8. Logging In and Accessing Desktops ............................................................................... 298
10.8.1. Users Cannot Access Their Desktops .................................................................. 298
10.8.2. A User Can Log in But Their Desktop is Not Responding ....................................... 299
10.8.3. Error - "Currently There Is No Desktop Available Or Assigned to You" .................... 299
10.8.4. The Sun Ray Client Is Cycling and Cannot Connect to a Virtual Machine ................ 301
10.8.5. Users Cannot Log in to Ubuntu 8.04 Desktops Because the Network Is Not
Enabled .......................................................................................................................... 301
10.8.6. Hotdesking Redirect Does Not Work With Windows XP Professional and Microsoft
RDP ............................................................................................................................... 301
10.8.7. The Trust Relationship Between a Windows Desktop and the Domain Controller
Fails ............................................................................................................................... 302
10.9. Administration Tools ....................................................................................................... 303
10.9.1. I Cannot Log in to Oracle VDI Manager ................................................................ 303
10.9.2. I Cannot Log in to Oracle VDI Manager Running on Oracle Solaris 11 Using
Firefox ............................................................................................................................ 303
10.9.3. I Get a Blank Screen After Successfully Logging in to Oracle VDI Manager ............. 303
10.9.4. Error - "You Have Been Logged out Because a Consistent Response Could Not Be
Guaranteed" ................................................................................................................... 304
10.9.5. How Can I Change the Password of an Oracle VDI Host? ..................................... 304
10.9.6. How Do I Change the Password of a Remote MySQL Database? .......................... 304
10.9.7. Does the MySQL Database Store All Sun Ray Software Configuration? .................. 304
x
Oracle® Virtual Desktop Infrastructure
10.9.8. The vda Command Reports That Oracle VDI Is Not Running But Other Commands
Say It Is ......................................................................................................................... 305
10.9.9. Users Do Not Show Up in Users and Groups in Oracle VDI Manager ..................... 305
10.9.10. Is There a Way to Modify the Cacao Logging Behavior So That a Long History
Can Be Maintained? ....................................................................................................... 305
10.9.11. Jobs Do Not Finish Even After You Cancel Them with Oracle VDI Manager .......... 305
10.9.12. Can I Adjust the Logging Level for the Oracle VDI Logs? ..................................... 305
10.9.13. How Do I Log in to the Embedded MySQL Server Database? .............................. 305
10.10. Oracle VDI ................................................................................................................... 306
10.10.1. Oracle VDI Hangs Intermittently When Running on x2270 Hardware ..................... 306
10.10.2. The System Is Not Reacting as Expected ........................................................... 306
10.10.3. Which Service Owns the Oracle VDI Daemon Job? ............................................. 306
10.10.4. How Do I Configure DHCP in Oracle VDI? .......................................................... 307
A. Automated Administration Scripts ................................................................................................ 309
A.1. Parsing vda Commands that Result in Jobs ...................................................................... 309
A.2. Parsing vda Command Output ......................................................................................... 311
A.3. Parsing vda-center Command Output ............................................................................... 324
B. Defaults for the Software Bundled With Oracle VDI ...................................................................... 327
C. User Directory LDAP Filters and Attributes .................................................................................. 329
C.1. Editing LDAP Filters and Attributes .................................................................................. 329
C.2. LDAP Filters and Attributes for Users, Groups, and Containers .......................................... 330
C.2.1. Default LDAP Filters and Attributes for Users, Groups and Containers ..................... 331
C.2.2. Active Directory Settings for Users, Groups, and Containers ................................... 332
C.2.3. Oracle Directory Server Enterprise Edition Settings for Users, Groups, and
Containers ...................................................................................................................... 333
C.2.4. OpenDS Settings for Users, Groups, and Containers .............................................. 333
C.2.5. OpenLDAP Settings for Users, Groups, and Containers .......................................... 334
C.2.6. Novell eDirectory Settings for Users, Groups, and Containers ................................. 334
C.3. LDAP Filters and Attributes for Global Oracle VDI Centers ................................................ 335
C.3.1. Default LDAP Filters and Attributes for Global Oracle VDI Centers ........................... 335
C.3.2. Active Directory Settings for Global Oracle VDI Centers .......................................... 336
C.3.3. Oracle Directory Server Enterprise Edition Settings for Global Oracle VDI Centers .... 336
D. Remote Database Configuration ................................................................................................. 337
D.1. Installing and Configuring a Remote MySQL Database (InnoDB) ........................................ 337
D.2. Creating a Privileged Database Administrator ................................................................... 339
E. Licenses for Third-Party Components .......................................................................................... 341
E.1. Apache Software Foundation Licenses ............................................................................. 341
E.2. Bouncy Castle License .................................................................................................... 345
E.3. EclipseLink License ......................................................................................................... 346
E.4. Java Secure Channel (JSCH) for SSH2 License ............................................................... 346
E.5. Xerces License ................................................................................................................ 347
Glossary ......................................................................................................................................... 349
xi
xii
Preface
This document is part of the documentation library for Oracle Virtual Desktop Infrastructure (VDI) release
3.5, which is available at:
http://www.oracle.com/technetwork/server-storage/virtualdesktop/docs/index.html
Enterprise Manager Plug-in User's Guide for Oracle Virtual Desktop Infrastructure
The plug-in user's guide is intended for administrators who are familiar with Oracle VDI and require
access to the comprehensive monitoring capabilities of Oracle Enterprise Manager.
Audience
The Oracle VDI documentation is written for system administrators who want to install and configure
Oracle VDI in order to deploy desktops to users. It is assumed that readers are familiar with web and
virtualization technologies and have a general understanding of operating systems such as UNIX (including
Linux) and Windows.
• Sun Ray Software and Sun Ray Clients, including Oracle Virtual Desktop Client
http://www.oracle.com/technetwork/server-storage/sunrayproducts/docs/index.html
• Oracle VM VirtualBox
http://www.oracle.com/technetwork/server-storage/virtualbox/documentation/index.html
http://www.oracle.com/technetwork/server-storage/securedesktop/docs/index.html
Documentation Accessibility
For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website
at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc.
xiii
Access to Oracle Support
Conventions
The following text conventions are used in this document:
Convention Meaning
boldface Boldface type indicates graphical user interface elements associated with an
action, or terms defined in text or the glossary.
italic Italic type indicates book titles, emphasis, or placeholder variables for which
you supply particular values.
monospace Monospace type indicates commands within a paragraph, URLs, code in
examples, text that appears on the screen, or text that you enter.
Document Revision
Document generated on: 2013-06-18 (revision: 2493)
xiv
Chapter 1. System Overview of Oracle Virtual Desktop
Infrastructure
Table of Contents
1.1. Introduction to Oracle Virtual Desktop Infrastructure ...................................................................... 1
1.2. About Virtualization ...................................................................................................................... 2
1.3. About Storage ............................................................................................................................. 3
1.4. About Management ..................................................................................................................... 3
1.5. About Desktop Access ................................................................................................................. 6
The four elements of an Oracle VDI system are virtualization, storage, management and desktop access,
as shown in Figure 1.1.
1
About Virtualization
• The provider hosts: The servers that actually run the desktops, and their associated storage.
Oracle VDI supports several types of desktop provider and the types can be divided into the following
categories:
• Hypervisor-based providers: These provide access to desktops that are virtual machines hosted by
a bare metal hypervisor such as a VMware ESX server, or a hosted hypervisor such as Oracle VM
VirtualBox.
• Session-based providers: These provide access to desktop sessions that are hosted by remote
computers, such as Microsoft Remote Desktop Services (RDS).
The provider hosts configured for a desktop provider are installed separately from Oracle VDI and run
on their own platforms. The provider hosts provide the physical resources for running desktops, such as
CPU and memory, as well as the means for managing desktops. The storage used by the provider hosts is
discussed in Section 1.3, “About Storage”.
Oracle VDI does not restrict you to a single virtualization platform. You can use a mixture of desktop
provider types and create as many desktop providers as you need. How Oracle VDI interacts with a
desktop provider depends on the provider type, and is described in more detail in the following sections.
• Oracle VM VirtualBox
• Microsoft Hyper-V
• VMware vCenter
The Oracle VM VirtualBox software is distributed with Oracle VDI. Unlike the other desktop providers,
VirtualBox enables you to run UNIX and Linux platform desktops as well Windows desktops. VirtualBox
also has its own integrated server for the Remote Desktop Protocol (RDP) that enables you to connect to,
and control, a remote virtual machine as though it was running locally.
With the Oracle VM VirtualBox and Microsoft Hyper-V desktop providers, Oracle VDI directly manages
the provider hosts. Oracle VDI sends requests to register desktops with a provider host, including the
configuration information for the virtual machines, and sends requests to manage those desktops, for
example to start, stop, and preserve the state of desktops. For Oracle VDI providers, Oracle VDI uses the
VirtualBox web service application programming interface (API) to communicate with the provider hosts.
For Microsoft Hyper-V providers, Windows Remote Management (WinRM) is used. The communication
between Oracle VDI and a provider host takes place over secure Hypertext Transfer Protocol (HTTPS)
connections. There is no limit on the number of hosts these desktop providers can have, and to ensure
best performance, Oracle VDI balances the desktop load across the available hosts.
When you configure a VMware vCenter desktop provider, you specify a VMware vCenter server rather
than individual provider hosts because the provider hosts are managed by the VMware infrastructure.
Oracle VDI sends requests for desktops to the vCenter server, and the vCenter server sends the request
2
Session-Based Desktop Providers
to a vSphere server in the group. Oracle VDI uses the VMware Infrastructure SDK web services API to
communicate with the vCenter server and the communication takes place over HTTPS. Although the
VMware infrastructure is responsible for all desktop operations, Oracle VDI is able to monitor the load and
choose a particular data store to use when creating a desktops.
• Generic
The Microsoft Remote Desktop provider does not provide individual desktops, instead Oracle VDI connects
users to desktop sessions created on RDS servers. The provider host can be a single stand-alone RDS
server or a group of servers in an RDS farm. The RDS server or farm is responsible for creating new RDS
desktop sessions for users, or for reconnecting users to their existing desktop sessions (if Session Broker
is configured), and for load balancing the sessions. Optionally, you can configure the RDS servers so that
Oracle VDI can display session, CPU, and memory load information, in the Oracle VDI administration tools.
The Sun Ray Kiosk desktop provider provides access to types of sessions that are not available with
Oracle VDI itself, for example to connect to a remote desktop using a different broker such as the Sun Ray
VMware View connector, or to provide access to a web-based application in a locked-down web browser.
Generic desktop providers run RDS desktop sessions on physical computers or virtual machines. Typically
the Generic provider is used by Oracle VDI to connect users to existing Windows PCs, and is used as part
of a strategy for migrating desktops to the Oracle VDI solution.
The Oracle VM VirtualBox and Microsoft Hyper-V desktop providers require storage. Oracle VDI supports
local disks, network file system shares, iSCSI storage devices, and Zettabyte File System (ZFS) storage
pools. The storage that can be used depends on the desktop provider type and operating system of the
virtualization hosts.
VMware vCenter desktop providers also require storage but the storage is managed by the VMware
infrastructure. However, Oracle VDI is able to query vCenter for the available storage, and can select the
data store to use when creating virtual disks.
For all other desktop providers, storage is managed independently of Oracle VDI.
For the desktop providers that require storage, Oracle VDI is able to monitor the available free space and
current workload. If multiple storage servers are configured, Oracle VDI uses this information to balance
the load.
• VDI Service
3
VDI Service
• MySQL Database
• RDP Broker
The RDP Broker, and Sun Ray Software components provide the means for users to access their
desktops, and these are discussed in Section 1.5, “About Desktop Access”. The following sections
describe the purpose of the other components.
VDI Service
The VDI Service is the most important component of the Oracle VDI. It is used to create and manage
desktop providers and desktops, and to authenticate users and assign desktops to them. The VDI Service
is deployed as the vda module in the Common Agent Container (Cacao), which is a system daemon for
running Java management applications. Sometimes the VDI Service is referred to as the VDA Service.
With Oracle VDI, desktops are organized into pools. A pool is a group of desktops hosted by a particular
desktop provider type. Individual desktops can be imported into a pool, or a desktop can be imported as a
template which is then cloned to create the required number of desktops. Pools are also used to apply a
group of configuration settings to all the desktops in the pool, for example to specify the subnet on which
the desktops are placed, or to control the resources used by the virtual machines.
• Personal: These desktops are assigned to individual users and are owned by them until the desktop is
either deleted or assigned to another user by an Administrator.
• Flexible: These desktops are temporarily assigned to individual users. Once a user log outs out, or the
desktop is no longer in use, the desktop is either recycled so that it can be assigned to another user or
deleted.
The VDI Service can be configured to manage the complete lifecycle of a desktop by:
• Monitoring the usage of the desktop and the state of the virtual machine
Oracle VDI can make use of data held in external user directories to authenticate users and assign
desktops to them. This enables you to assign individual desktops or pools to the existing users and groups
within your organization. The VDI Service supports Active Directory and LDAP-type directories. Multiple
directories can be configured and this enables you to provide desktops to multiple companies from a single
Oracle VDI deployment, or to integrate with companies that have complex Active Directory structures such
as multiple tree forests with multiple domains. It is also possible to assign desktops to users using smart
cards (Oracle VDI calls these tokens). Tokens and user directories can be used together, or independently.
4
Oracle VDI Center Agent
Oracle VDI has two tools for configuring and managing the VDI Service:
• The vda command: This a command-line tool with a family of sub-commands for managing the
individual areas such as desktop providers and pools.
The VDI Service itself can only be started and stopped from the command line, using the vda-service
command.
Oracle VDI hosts can be joined together to form an Oracle VDI Center. The first host that is configured
forms the Oracle VDI Center and this host is known as the primary host. Additional hosts are configured
and added to the Oracle VDI Center as secondary hosts. The Oracle VDI Center Agent provides secure
communication between the hosts in the Oracle VDI Center and is responsible for co-ordinating the
information about the Oracle VDI Center among the hosts.
An Oracle VDI Center that has more than one host is able to provide a reliable service because the
desktop sessions can be distributed between the hosts. If one host fails another one continues to host
desktop sessions with only a minimal interruption to the user. If the primary host becomes unavailable,
the Oracle VDI Center Agent automatically promotes a secondary host to become the new primary host,
and communicates these changes to the other hosts in the Oracle VDI Center. This is known as failover.
Failover only occurs if the embedded MySQL Server database is used.
MySQL Database
Oracle VDI requires a MySQL database to store configuration and run-time information. When you
configure an Oracle VDI Center, you can choose to use the embedded MySQL Server database that is
included with the Oracle VDI software, or you can use your own MySQL database.
If you use the embedded MySQL Server database, the primary host in the Oracle VDI Center runs the
Oracle VDI database (the master). To provide for high availability, a secondary host in the Oracle VDI
Center runs a replication database (the slave) that receives updates from the primary host. If the primary
host becomes unavailable, the Oracle VDI Center Agent automatically promotes the secondary host to
become the primary host, and the slave database becomes the master database. If you use your own
MySQL database, you must make your own provision for high availability.
The configuration data stored in the database includes the information about user directories and tokens,
desktop information such as desktop providers, pools, templates, and storage. The run-time information
includes information about the users that are logged in, the desktops they are using, the state of the
desktops, and details of cloning jobs that are running.
The Oracle VDI Web Server also runs the Oracle VDI web services, which are described in Section 1.5,
“About Desktop Access”.
5
About Desktop Access
• Remote Desktop Protocol (RDP) clients, including secure web access using Oracle Secure Global
Desktop
All requests for access to a desktop are handled by the VDI Service. Once a user has a desktop, the RDP
protocol is used to connect to, and display, the desktop session. How users access their desktops depends
on the client used to access a desktop, and is described in the following sections.
The Sun Ray Software provides the infrastructure for displaying desktops to Sun Ray Clients. The Sun
Ray Software runs the Oracle VDI Kiosk Session, which in turn runs a Desktop Selector program and a
Sun Ray Windows connector program. The Desktop Selector submits the user's credentials to the VDI
Service and requests the desktops assigned to the user. The Sun Ray Windows connector is an RDP
client for the Sun Ray environment and this connects the user to the virtual machine running the desktop.
Users access their desktops by authenticating themselves with a user name, password, and optionally
a Windows domain, or by inserting a smart card. If the authentication succeeds, the user is connected
to their desktop. If a user is assigned more than one desktop, a screen is displayed that enables them
to select the desktop to connect to. The user's credentials can also be passed to a Windows operating
system so that the user can be automatically logged into their desktop.
RDP Clients
Oracle VDI includes an RDP Broker that enables RDP clients to connect to a desktop using the Remote
Desktop Protocol. Supported RDP clients include the Remote Desktop Client included with Oracle Secure
Global Desktop, or Microsoft Remote Desktop Connection.
Users access their desktop by running an RDP client and specifying an Oracle VDI host to connect to.
The RDP Broker accepts the incoming request, which includes a user name, password, and optionally
a domain name, and runs the VDI Client command line tool, which authenticates the user and requests
a desktop. The VDI Service returns the IP address and port of the desktop to the VDI Client tool, which
passes this information to the RDP Broker. The RDP Broker redirects the RDP Client to connect to the
desktop at the specified IP address and port.
Oracle Secure Global Desktop extends the reach of traditional RDP clients by providing users with secure
access to a remote desktop using a browser.
6
Chapter 2. Installing Oracle VDI and Configuring Oracle VDI
Centers
Table of Contents
2.1. About Oracle VDI Centers and Hosts ........................................................................................... 7
2.1.1. Single Oracle VDI Host Configuration ................................................................................ 8
2.1.2. High Availability Configuration Using the Embedded MySQL Server Database ...................... 8
2.1.3. High Availability Configuration Using a Remote MySQL Database ....................................... 9
2.2. Oracle VDI System Requirements ................................................................................................ 9
2.2.1. Oracle VDI Hardware Requirements .................................................................................. 9
2.2.2. Supported Installation Platforms for Oracle VDI ................................................................ 10
2.2.3. Requirements for Oracle Linux Platforms ......................................................................... 10
2.2.4. Requirements for Oracle Solaris 11 Platforms .................................................................. 14
2.2.5. Requirements for Oracle Solaris 10 Platforms .................................................................. 15
2.2.6. User Requirements ......................................................................................................... 15
2.2.7. Network Requirements .................................................................................................... 15
2.2.8. Time Synchronization ...................................................................................................... 15
2.2.9. Requirements for Using a Remote MySQL Database ........................................................ 16
2.2.10. Oracle VDI Centers in Virtualized Environments ............................................................. 16
2.2.11. Sun Ray Software ......................................................................................................... 17
2.2.12. Sun Ray Operating Software ......................................................................................... 17
2.2.13. Oracle Virtual Desktop Client ......................................................................................... 17
2.3. Installing and Configuring Oracle VDI ......................................................................................... 18
2.3.1. Installing Oracle VDI ....................................................................................................... 18
2.3.2. Configuring a New Oracle VDI Center .............................................................................. 19
2.3.3. Adding a Host to an Oracle VDI Center ........................................................................... 21
2.3.4. Removing a Host from an Oracle VDI Center ................................................................... 22
2.3.5. Reinstalling Oracle VDI ................................................................................................... 23
2.3.6. Uninstalling Oracle VDI ................................................................................................... 23
2.4. Updating Oracle VDI to Release 3.5 ........................................................................................... 24
2.4.1. Oracle VDI Update Requirements .................................................................................... 24
2.4.2. Updating an Oracle VDI Center ....................................................................................... 25
2.5. Firewall Ports and Protocols ....................................................................................................... 28
2.5.1. Firewalls Between Clients and Oracle VDI ....................................................................... 28
2.5.2. Firewalls Between Oracle VDI and User Directories .......................................................... 29
2.5.3. Firewalls Between Desktop Providers and Oracle VDI Centers .......................................... 30
2.5.4. Firewalls Between the Hosts in an Oracle VDI Center ....................................................... 31
The first host that is configured forms the Oracle VDI Center and this host is known as the primary host.
Additional hosts are configured and added to the Oracle VDI Center as secondary hosts. If you add more
than one host in an Oracle VDI Center, you automatically configure the Center for high availability. High
availability offers reliability so that if one host fails, another one continues to host desktop sessions with
only a minimal interruption to the user. An Oracle VDI Center that contains only a single host is also a
supported configuration.
7
Single Oracle VDI Host Configuration
Apart from high availability, the other main configuration choice is whether to use the embedded Oracle
VDI MySQL Server database, or to connect to your own remote database.
There are several possible configurations for Oracle VDI. The following sections describe the main
configuration models.
It is possible to use separate hosts for the database, virtualization platform, and storage, but this increases
the cost of the deployment without increasing availability.
Figure 2.2. High Availability Configuration Using the Embedded MySQL Server Database
This configuration provides high availability at both the database level and the desktop access level.
8
High Availability Configuration Using a Remote MySQL Database
At the database level, the primary host runs the database (the master) for the entire Oracle VDI Center.
The first secondary host that is added to the Oracle VDI Center runs the replication database (the slave).
The slave database is not active, it simply receives asynchronous updates from the master database. If
the primary host becomes unavailable, the secondary host with the replication database is automatically
promoted to become the new primary. Additional secondary hosts have no database role.
At the desktop access level, the primary host is configured as the Sun Ray primary server and the
secondary hosts are configured as Sun Ray secondary servers. Together they form a failover group.
If the primary host becomes unavailable, you can manually promote a secondary host to become the
new primary. You can also enable automatic reconfiguration, so that the Sun Ray primary server is
automatically reconfigured after a failover. See Section 8.11.8, “Changing the Sun Ray Primary Server” for
details. Failover only occurs if the embedded MySQL Server database is used.
High availability of the virtualization platform, storage and user directory must be configured separately.
This configuration provides high availability at the desktop access level. The primary host is configured
as the Sun Ray primary server and the secondary hosts are configured as Sun Ray secondary servers.
Together they form a failover group. When a remote database is used, automatic failover never occurs. If
the primary host becomes unavailable, you must manually promote a secondary host to become the new
primary. See Section 8.11.8, “Changing the Sun Ray Primary Server” for details.
High availability at the database level can be configured for the remote database, but this is configured
outside of Oracle VDI.
High availability of the virtualization platform, storage and user directory must be configured separately.
• Quad core x86-64 (64-bit) central processing unit (CPU), with virtualization support (Intel VT-x or AMD-
V)
9
Supported Installation Platforms for Oracle VDI
These requirements assume the host is used only for Oracle VDI.
Hardware sizing is a very important part of planning an Oracle VDI deployment. For some basic sizing
guidelines, see Chapter 7, Performance and Tuning. For more detailed assistance with sizing, contact an
Oracle Sales or Support representative.
Oracle products certified on Oracle Linux are also certified and supported on Red Hat Enterprise Linux due
to implicit compatibility between both distributions. Oracle does not run any additional testing on Red Hat
Enterprise Linux products.
For the best performance on Oracle Linux platforms, use Oracle's Unbreakable Enterprise Kernel.
For Sun Ray Software, there are some feature differences between Oracle Linux and Oracle Solaris
platforms, see Feature Differences Between Oracle Solaris and Oracle Linux Platforms in the Sun Ray
Software Administration Guide for details.
All hosts in an Oracle VDI Center must use the same operating system, either Oracle Linux or Oracle
Solaris. You cannot use a mixture of Oracle Linux 5 and Oracle Linux 6 hosts, or Oracle Solaris 10 and
Oracle Solaris 11 hosts, in an Oracle VDI Center.
If you intend to use the single Oracle VDI host configuration model, you must also take the Oracle VM
VirtualBox requirements into account, see Section 2.1.1, “Single Oracle VDI Host Configuration” and
Section 4.1.2, “System Requirements for Oracle VM VirtualBox” for details.
The supported installation platforms for Oracle VDI can be virtualized, see Section 2.2.10, “Oracle VDI
Centers in Virtualized Environments”.
If you use technologies for automating the installation of the operating system or for replicating hosts, such
as Kickstart on Oracle Linux platforms, or Jumpstart or Flash Archives on Oracle Solaris platforms, you
must ensure that each host has a unique iSCSI initiator name. See your system documentation for details
on how to configure the iSCSI initiator.
For Oracle Linux 5 platforms, the default package set is required and must be installed on the host.
For Oracle Linux 6 platforms, the Desktop package set is required and must be installed on the host.
Oracle VDI requires specific packages to be installed. The Oracle VDI installation script checks for these
packages before installing the software. If any required packages are missing, the installation script uses
10
Requirements for Oracle Linux Platforms
the yum command to check whether the packages are available. If the missing required packages are
available, you are prompted to continue and the packages are downloaded and installed. If the required
packages are not available, the installation fails and a list of required packages that must be installed is
displayed.
Automatic software update tools can be configured to update a host to a new release of Oracle Linux when
it becomes available. Updates performed in this way can result in the host being updated to a release of
Oracle Linux that is not supported. You must ensure that your Oracle VDI hosts are configured to receive
updates only for the supported releases of Oracle Linux.
To resolve package dependencies and to receive updates only for the supported releases of Oracle
Linux, see the following:
• Section 2.2.3.1, “Required Channel Subscriptions for Oracle Unbreakable Linux Network (ULN)”
• Section 2.2.3.2, “Required Repository Configuration for the Oracle Public Yum Server”
Oracle Linux patches that fix bugs affecting Oracle VDI are only available on ULN.
2. Update the host with the latest package versions by using the yum update command.
If the host does not have Internet access, you can configure yum to resolve package dependencies using a
local source, see Section 2.2.3.3, “Resolving Package Dependencies Without Internet Access”.
SELinux must be disabled on the host. For details of how to check the SELinux status and how to disable
SELinux, see Section 2.2.3.4, “Disabling SELinux”.
The firewall must be disabled on the host during installation and configuration. See Section 2.2.7, “Network
Requirements” for more details.
For Oracle Linux 6 platforms, optimize the shared memory used by PulseAudio. Add the following line to
the /etc/pulse/client.conf file on the host:
shm-size-bytes = 131072
See Audio Output Troubleshooting (Oracle Solaris 11 and Oracle Linux 6) in the Sun Ray Software
Administration Guide for details about PulseAudio.
2.2.3.1. Required Channel Subscriptions for Oracle Unbreakable Linux Network (ULN)
Before you install Oracle VDI, ensure the host is subscribed to the required Oracle Unbreakable Linux
Network (ULN) channels. For information about ULN, see Oracle Linux Unbreakable Linux Network User's
Guide.
If you change your channel subscriptions, use the yum clean all command to clear the yum cache, and
then use the yum repolist command to check that you have subscribed to the correct channels.
ULN Channel Subscriptions for Oracle Linux 6 Platforms
11
Requirements for Oracle Linux Platforms
2.2.3.2. Required Repository Configuration for the Oracle Public Yum Server
Before you install Oracle VDI, ensure the required repositories are configured for the Public Yum Server.
For details of how to enable access to the repositories on the Public Yum Server, see http://public-
yum.oracle.com. For Oracle Linux 6 platforms, see also Yum in the Oracle Linux Administrator's Solutions
Guide for Release 6.
For Oracle Linux 6 platforms, you must download the latest yum configuration file (http://public-
yum.oracle.com/public-yum-ol6.repo) and copy it to the /etc/yum.repos.d directory on the host. The
latest yum configuration file contains entries for the required Oracle Linux 6 GDM Multiseat repository.
If you change your repository configuration, use the yum clean all command to clear the yum cache,
and then use the yum repolist command to check that you have the correct repository configuration.
Repository Configuration for Oracle Linux 6 Platforms
Repository Name
[ol6_latest] Oracle Linux 6 Latest (x86_64)
[ol6_UEK_latest] Latest Unbreakable Enterprise Kernel for Oracle Linux 6 (x86_64)
Repository Name
[ol6_u3_base] Oracle Linux 6 Update 3 installation media copy (x86_64)
12
Requirements for Oracle Linux Platforms
Repository Name
[ol6_UEK_base] Unbreakable Enterprise Kernel for Oracle Linux 6 (x86_64)
[ol6_gdm_multiseat] Oracle Linux 6 GDM Multiseat (x86_64)
Repository Name
[ol5_latest] Oracle Linux 5 Latest (x86_64)
[ol5_UEK_latest] Latest Unbreakable Enterprise Kernel for Oracle Linux 5 (x86_64)
Repository Name
[ol5_u8_base] Oracle Linux 5 Update 8 installation media copy (x86_64)
[ol5_UEK_base] Unbreakable Enterprise Kernel for Oracle Linux 5 (x86_64)
For details of how to configure a local yum server or repository, see Yum in the Oracle Linux
Administrator's Solutions Guide for Release 6.
For Oracle Linux 6 platforms, you currently cannot use an ISO image to resolve the package dependencies
because it does not contain gdm-multiseat packages.
Hosts configured to use a local yum server or repository created from an ISO image are only suitable for
evaluation installments because they are not configured to receive the latest packages and security fixes.
1. Edit the /etc/selinux/config file and change the SELINUX setting to SELINUX=disabled.
The setenforce command only enables you to change between Enforcing or Permissive .
13
Requirements for Oracle Solaris 11 Platforms
On Oracle Linux 6 platforms, if daemon fails to start, try the following command:
# service iscsid force-start
The default Oracle Solaris 11 packages, which are provided through the solaris package publisher, are
required and must be installed on the host.
Oracle VDI requires specific packages to be installed. The Oracle VDI installation script checks for these
packages before installing the software. If any required packages are missing, the installation script uses
the pkg command to check whether the packages are available. If the missing required packages are
available, you are prompted to continue and the packages are downloaded and installed. If the required
packages are not available, the installation fails and a list of required packages that must be installed is
displayed. You must resolve these dependencies before you can install Oracle VDI.
1. Ensure that the Oracle Solaris Image Packaging System (IPS) is configured to receive updates from
the Oracle Solaris 11 Support Repository.
For more details, see the Oracle Technology Network article How to Update Oracle Solaris 11 Systems
From Oracle Support Repositories.
2. Install the latest Oracle Solaris 11 Support Repository Update (SRU), using the pkg update
command.
For more details, see the Oracle Technology Network article More Tips for Updating Your Oracle
Solaris 11 System from the Oracle Support Repository.
The firewall must be disabled on the host. See Section 2.2.7, “Network Requirements” for more details.
If you use Solaris zones, Oracle VDI must be installed in the global zone. Installation in a non-global zone
is not supported.
To increase the performance of Sun Ray Clients, make the following configuration updates:
For more information about this setting, see How to Improve Sun Ray Client Performance by
Decreasing Buffering on the Network Switch (Oracle Solaris) in the Sun Ray Software Administration
Guide.
For more information about this setting, see How to Improve Network Performance by Disabling CPU
Binding (Oracle Solaris 11) in the Sun Ray Software Administration Guide.
14
Requirements for Oracle Solaris 10 Platforms
The Entire Distribution software cluster is required and must be installed on the host.
Before you install Oracle VDI, the latest Recommended Patchset must be installed on the host. You can
download the patchset from My Oracle Support.
The firewall must be disabled on the host. See Section 2.2.7, “Network Requirements” for more details.
If you use Solaris zones, Oracle VDI must be installed in the global zone. Installation in a non-global zone
is not supported.
To increase the performance of Sun Ray Clients, make the following configuration update:
For more information about this setting, see How to Improve Sun Ray Client Performance by
Decreasing Buffering on the Network Switch (Oracle Solaris) in the Sun Ray Software Administration
Guide.
Typically, you use the su - root command to become superuser or to assume the root role.
Alternatively, you can use the sudo command to run commands. To use the sudo command, your sudo
configuration must grant running the required Oracle VDI commands as root.
You must have Domain Name System (DNS) entries for your Oracle VDI hosts. The DNS forward lookup
and reverse lookup for a host must always succeed. There must be a one-to-one mapping between the
forward and reverse lookup.
Always use fully-qualified DNS names for your Oracle VDI hosts. For example, vdi.example.com.
A host must have a fixed host name and a static IP address. The host cannot be a DHCP client.
There are additional network requirements for Sun Ray Software, see Using a Shared Network
Configuration in the Sun Ray Software Administration Guide.
15
Requirements for Using a Remote MySQL Database
When you configure Oracle VDI, a check is made as to whether NTP is configured on the host. If NTP is
not configured, the first host (the primary) added to the Oracle VDI Center is automatically configured as an
NTP server, and the secondary hosts in the Oracle VDI Center automatically synchronize their times with
the primary. If NTP is configured but the time on a host is not synchronized, a warning displays when you
configure Oracle VDI.
• MySQL Server, at least release 5.0, with the InnoDB storage engine.
• MySQL Cluster, at least release 6.2.15, with the NDB storage engine.
To use the remote database, you must provide the following information when you configure Oracle VDI on
a primary host:
• The user name and password of a privileged administrator in the MySQL database.
• The port number to use for connections to the database and whether you want to use Socket Secure
Layer (SSL) to secure the connections.
The privileged database administrator is used only to create and configure an Oracle VDI database on
the remote MySQL database. When the Oracle VDI database is created, a database user is also created.
All access to the remote Oracle VDI database is performed through this user. By default, the name of the
remote Oracle VDI database is vda and the name of the database user is vdadb. When you configure the
Oracle VDI primary, you can choose different names, and choose a password to use for the database user.
To use SSL connections to the remote database, you must copy the certificate and key files needed for
the SSL connection to the primary host so that they can be specified when you configure Oracle VDI. The
certificates and key must be in Privacy Enhanced Mail (PEM) format. Depending on the SSL configuration
of the remote database, you might need the following:
For more information about MySQL SSL configuration, refer to the chapter "MySQL Server Administration"
in the MySQL Reference Manual.
If you plan to create an Oracle VDI Center by cloning an Oracle VDI host template, note the following:
16
Sun Ray Software
A fully-configured Oracle VDI host template cannot be cloned. You can install the Oracle VDI software
in the template, but you can only configure the host and add it to an Oracle VDI Center after it has been
cloned.
Use the -i option with the vda-install command to install the software without configuring it.
After cloning the template, you might have to reconfigure the iSCSI initiator name on the host, so that it
is a unique name. See your system documentation for details on how to configure the iSCSI initiator.
The primary Oracle VDI host (with the master database) and the first secondary Oracle VDI host (with
the replication database) can be installed in a virtualized environment. However, to provide for high
availability, they must be hosted on separate physical machines.
For information on multiple Oracle VDI Centers, see Section 3.12, “About Global Oracle VDI Centers”.
See also Feature Differences Between Oracle Solaris and Oracle Linux Platforms in the Sun Ray Software
Administration Guide.
For the latest list of peripherals tested to work with Sun Ray Clients, see the Sun Ray Clients and Oracle
Virtual Desktop Client Peripherals List at:
http://www.oracle.com/technetwork/server-storage/sunrayproducts/docs/index.html
In order to update Sun Ray Clients with the latest firmware, Sun Ray Operating Software must be
downloaded separately from My Oracle Support and installed on Sun Ray servers. Both new and existing
Sun Ray Clients might not contain the latest Sun Ray Operating Software and might need to be updated.
The latest Sun Ray Operating Software can be downloaded from the Sun Ray Products Download page at:
http://www.oracle.com/technetwork/server-storage/sunrayproducts/downloads/index.html
See Sun Ray Client Firmware in the Sun Ray Software Administration Guide for details of how to update
the Sun Ray Operating Software on Sun Ray Clients.
For support-related questions about Sun Ray Operating Software, see knowledge document ID 1448410.1
on My Oracle Support.
17
Installing and Configuring Oracle VDI
The Oracle Virtual Desktop Client product is not included with the Oracle VDI software. It must be
downloaded separately from the Sun Ray Products Download page at:
http://www.oracle.com/technetwork/server-storage/sunrayproducts/downloads/index.html
You should ensure that you use the latest release of Oracle Virtual Desktop Client as this includes support
for the latest Sun Ray Software features, performance enhancements, and bug fixes.
For detailed information about using the Oracle Virtual Desktop Client application, see:
http://www.oracle.com/technetwork/server-storage/sunrayproducts/docs/index.html
• Oracle Virtual Desktop Clients in the Sun Ray Software Administration Guide
1. Download the Oracle VDI software archive to a temporary location on the host.
3. Unzip the Oracle VDI software archive and change working directory to the extracted directory.
If you use zones on Oracle Solaris hosts, Oracle VDI must be installed in the global zone.
In the directory extracted from the Oracle VDI software archive, run the following command:
# ./vda-install
Use the -i option with the vda-install command to install the software without configuring it. You
should use this option if you are you are installing the software in a host template for use in a virtualized
environment.
18
Configuring a New Oracle VDI Center
On Oracle Linux and Oracle Solaris 11 hosts, the installation script checks whether the required
packages for Oracle VDI are installed. If any required packages are missing and packaging system is
configured correctly, the installation script prompts you to continue and installs the missing packages. If
the required packages are not installed, the installation fails.
At the end of the installation, you are prompted to configure Oracle VDI.
Do you want to configure Oracle VDI 3.5 now? ([y]/n)
• To configure Oracle VDI later, type n and press the Return key.
If you use the -i option with the vda-install command, the configuration prompt is not displayed.
When you configure Oracle VDI on a host, you can either create a new Oracle VDI Center or you can
add the host to an existing Oracle VDI Center. For details of how to configure Oracle VDI, see:
Warning
If you are prompted to reboot the host to complete the installation, ensure you
do this.
• As part of the software installation, immediately after you install or update Oracle VDI software on a host.
• As a separate step, after you install or update Oracle VDI software on a host.
To use a remote MySQL database instead of the embedded Oracle VDI MySQL Server database, ensure
you have all the required information as described in Section 2.2.9, “Requirements for Using a Remote
MySQL Database”.
Steps
This step is not necessary if you configure the software at the same time as you install it.
See Section 2.2.6, “User Requirements” for details of how to run commands as root.
When you installed Oracle VDI, if the installation script detected the preserved configuration from an
existing installation or you installed the software with the vda-install -p command, the host is
19
Configuring a New Oracle VDI Center
automatically configured using the preserved configuration. Otherwise, a list of configuration types is
displayed.
1 New Oracle VDI Center
2 Join Oracle VDI Center
Select (1/2):
2. To configure a new Oracle VDI Center, type 1 and press the Return key.
If you are configuring an Oracle VDI Center that contains only one host, type 1.
The default is to use the embedded Oracle VDI MySQL Server database. To use a remote MySQL
database, you must customize the configuration settings.
• To accept the defaults and create the Oracle VDI Center, press the Return key.
• To change the settings before creating the Oracle VDI Center, type c and press the Return key.
If you change the settings, you can review the changes before they are applied.
• Name: The name of the Oracle VDI Center. The name can contain alphanumeric characters as well
as spaces.
• Administrator Password: The password used to secure the embedded Oracle VDI MySQL Server
database and the Sun Ray data store.
Normally you do not need to know this password and an automatically-generated password is used.
To use the automatically-generated password, press the Return key. Otherwise you can provide
a password, which you have to enter twice to confirm. The password must contain at least five
characters.
• VDI Administrator (super-user): The user name of the initial Oracle VDI administrator.
You use the credentials of this user to log in to the Oracle VDI graphical administration tool, and to
use the command-line tools for configuring Oracle VDI. You can add further administrators later.
• DNS name of this host: The fully-qualified DNS name of the host, for example
vdi1.example.com. There must be a valid DNS entry for the host, otherwise the configuration fails.
• Maximum number of sessions on this host: This is the maximum number of user sessions that
can run on each Oracle VDI host in the Oracle VDI Center.
20
Adding a Host to an Oracle VDI Center
• User ID range start: Oracle VDI creates a local user for each user session on the Oracle VDI host.
This option enables you to specify the starting number of the user ID.
• Database: Choose whether to use the embedded Oracle VDI MySQL Server database, or connect to
a remote MySQL database. For more information about using remote databases, see Section 2.2.9,
“Requirements for Using a Remote MySQL Database”.
• As part of the software installation, immediately after installing or updating Oracle VDI software on a
host.
Steps
This step is not necessary if you configure the software at the same time as installing the software.
See Section 2.2.6, “User Requirements” for details of how to run commands as root.
When you installed Oracle VDI, if the installation script detected the preserved configuration from an
existing installation, or you installed the software with the vda-install -p command, the host is
automatically configured using the preserved configuration. Otherwise, a list of configuration types is
displayed.
1 New Oracle VDI Center
2 Join Oracle VDI Center
Select (1/2):
2. To add the host to an existing Oracle VDI Center, type 2 and press the Return key.
You are prompted to enter the DNS name of the primary host in the Oracle VDI Center.
Enter the primary Oracle VDI Host:
3. Enter the fully-qualified DNS name of the primary host in the Oracle VDI Center, for example
vdi1.example.com, and press the Return key.
The MD5 fingerprint of the primary host's SSL certificate is displayed and you are prompted to enter the
credentials for becoming the root user on the primary host.
• On Oracle Linux and Oracle Solaris hosts where root is not configured as a role:
Retrieving certificate from vdi1.example.com...
21
Removing a Host from an Oracle VDI Center
Enter the name of a user who can assume the root role on vdi1.example.com [jdoe]:
4. Check that the MD5 fingerprint matches the fingerprint of the primary host.
This is an important security step that ensures you are adding the host to a genuine Oracle VDI Center.
To check the fingerprint, run the vda-center agent-status command as root on the primary host.
# /opt/SUNWvda/sbin/vda-center agent-status
Agent is up for 0 day(s), 0:6.
MD5 fingerprint is 59:D9:6C:D1:52:00:51:76:71:89:CE:B8:2B:97:9B:D0.
5. Enter the credentials for becoming the root user on the primary host.
• On Oracle Linux and Oracle Solaris hosts where root is not configured as a role, enter root's
password and press the Return key.
• On Oracle Solaris hosts where root is configured as a role, enter the credentials for assuming the
root role and press the Return key.
Enter the name of a user who can assume the root role on vdi1.example.com [jdoe]:
You are prompted to enter the DNS name of the host you are adding to the Oracle VDI Center.
Enter the DNS name of this host [vdi2.example.com]:
6. To accept the detected DNS name of the secondary, press the Return key. Otherwise, enter the fully-
qualified DNS name of the secondary and press the Return key.
There must be a valid DNS entry for the host, otherwise the configuration fails.
To force the removal of a host from an Oracle VDI Center because the host is no longer responding, see
Section 8.11.7, “Removing an Unresponsive Host from an Oracle VDI Center”.
Steps
1. Check the configuration of the Oracle VDI Center and reconfigure it if needed.
If the Oracle VDI Center contains multiple hosts, run the following command as root to identify the
master database host, the replication database host, and the Sun Ray primary server:
# /opt/SUNWvda/sbin/vda-center getprops \
22
Reinstalling Oracle VDI
-p db.master.host,db.replication.host,srs.primary.host
If the host you want to remove is shown in the output of this command, reconfigure the Oracle VDI
Center as follows:
Configure another host as the master database host. See Section 8.11.3, “Changing the Master
Database Host” for details.
Configure another host to run the replication database so that high availability is maintained. See
Section 8.11.4, “Changing the Replication Database Host” for details.
If the host is not the master database host (db.master.host), configure another host as the Sun
Ray primary server. See Section 8.11.8, “Changing the Sun Ray Primary Server” for details.
To unconfigure the host without removing the Oracle VDI software, run the following command as root:
# /opt/SUNWvda/sbin/vda-config -u
To uninstall the Oracle VDI software and unconfigure the host, run the following command as root:
# /opt/SUNWvda/sbin/vda-install -u
Ensure you have a backup of the Oracle VDI database before you reinstall. This enables you to restore
the current system. See Section 8.7, “Backing Up and Restoring the Oracle VDI Database”.
If you customized the /etc/opt/SUNWvda/my.cnf file, ensure you back up this file as it is replaced
when you reinstall Oracle VDI. If you customized any of the other database configuration files (*.cnf) in
the /etc/opt/SUNWvda directory, back them up. Add the customizations from the backup to the new
files.
If you customized either the /etc/pam.conf file (Oracle Solaris platforms) or the /etc/pam.d/
utadmingui file (Oracle Linux platforms), ensure you back up this file as this file is replaced when you
reinstall Oracle VDI. Add the customizations from the backup to the new file.
To reinstall Oracle VDI, you must first uninstall it, see Section 2.3.6, “Uninstalling Oracle VDI”. After you
reinstall the software, restore the data from the backups.
23
Updating Oracle VDI to Release 3.5
If you are removing an entire Oracle VDI Center, uninstall Oracle VDI on the secondary hosts first and then
uninstall Oracle VDI on the primary host.
Steps
1. Check the configuration of the Oracle VDI Center and reconfigure it if needed.
If the Oracle VDI Center contains multiple hosts, run the following command as root to identify the
master database host, the replication database host, and the Sun Ray primary server:
# /opt/SUNWvda/sbin/vda-center getprops \
-p db.master.host,db.replication.host,srs.primary.host
If the host you want to remove is shown in the output of this command, reconfigure the Oracle VDI
Center as follows:
Configure another host as the master database host. See Section 8.11.3, “Changing the Master
Database Host” for details.
Configure another host to run the replication database so that high availability is maintained. See
Section 8.11.4, “Changing the Replication Database Host” for details.
If the host is not the master database host (db.master.host), configure another host as the Sun
Ray primary server. See Section 8.11.8, “Changing the Sun Ray Primary Server” for details.
# /opt/SUNWvda/sbin/vda-install -u
• 3.4.1
• 3.4
To update from any other release of Oracle VDI, contact Oracle Support.
When you update, you might also need to upgrade the operating system on your hosts to meet the
installation requirements for this release of Oracle VDI. The update instructions indicate the point at which
you should perform the operating system upgrade. Ensure that you have adequate backups of your hosts
so that you can recover in the event of a failure. When you upgrade a host, do not change the host's DNS
name or IP address as part of the upgrade. If you need to change these details, you must perform a fresh
installation of Oracle VDI after removing the existing version.
24
Updating an Oracle VDI Center
If your Oracle VDI hosts are also used as Oracle VM VirtualBox virtualization hosts, you must also take the
VirtualBox requirements into account, see Section 4.1.2, “System Requirements for Oracle VM VirtualBox”
and Section 4.1.4, “Updating Oracle VM VirtualBox” for details.
• Ensure that no users are logged in to the Oracle VDI Center. The update stops all Oracle VDI services
on all hosts.
• Check that the hosts meet the requirements for updating Oracle VDI, see Section 2.4.1, “Oracle VDI
Update Requirements”.
• Check that the hosts meet the requirements for installing Oracle VDI, see Section 2.2, “Oracle VDI
System Requirements”.
• If you are using a remote MySQL database, ensure that you have the administrator password of the
database.
See Section 8.7.1, “Backing Up the Oracle VDI Database” for details.
You do not need to perform this step if you created the database backup on an NFS share on a
different host.
You might need this file if a failure occurs during or after the update.
25
Updating an Oracle VDI Center
It is best to copy the database backup to a host that is not a member of the Oracle VDI Center.
3. Back up the Oracle VDI configuration and stop Oracle VDI services on all hosts in the Oracle
VDI Center.
Caution
Once you begin this step, do not use Oracle VDI Manager or the vda command
until the update process has been finished on all hosts in the Oracle VDI Center.
Start with the primary host, followed by the secondary hosts, in the Oracle VDI Center.
a. Download the Oracle VDI software archive to a temporary location on the host.
c. Unzip the Oracle VDI software archive and change working directory to the extracted directory.
The zip file containing the preserved Oracle VDI configuration is unique to each host. Make sure
you can identify each host's zip file.
You might need this file if a failure occurs during or after the update.
It is best to copy the zip file to a host that is not a member of the Oracle VDI Center.
4. (Optional) Upgrade the operating system on the hosts in the Oracle VDI Center.
You might need to upgrade the operating system on your hosts in order to meet the installation
requirements for this release of Oracle VDI.
You cannot upgrade the operating system from Oracle Linux 5 to Oracle Linux 6, or from Oracle Solaris
10 to Oracle Solaris 11. You must perform a fresh installation of Oracle Linux 6 or Oracle Solaris 11.
26
Updating an Oracle VDI Center
Ensure that the hosts meet the operating system requirements for installing Oracle VDI:
Before you upgrade, ensure that you have backups of all your hosts in case you need to revert to the
previous version of Oracle VDI.
When you upgrade the operating system, do not change the host name or IP address of the host.
After you upgrade the operating system, you might need to download the Oracle VDI software archive
to a temporary location on the host and extract it.
5. Install and configure the software on all hosts in the Oracle VDI Center.
When the configuration of the primary host is complete, install and configure the software on all
the secondary hosts. Only configure one secondary host at a time. Wait for the configuration to
complete before you configure another secondary host.
Warning
If you are prompted to reboot the host to complete the installation, ensure you
do this.
a. Ensure that the zip file containing the host's preserved Oracle VDI configuration is available on the
host.
The zip file containing the preserved Oracle VDI configuration is unique to each host. You cannot
use the zip file from one host to update a different host.
c. Change working directory to the directory extracted from the Oracle VDI software archive.
If the zip file containing the preserved Oracle VDI configuration is in the default location, use the
following command:
# ./vda-install
If the zip file containing the preserved Oracle VDI configuration is not in the default location, or if the
zip file has been renamed, use the following command:
# ./vda-install -p path-to-zip-file
27
Firewall Ports and Protocols
An existing installation is detected and you are prompted to update the installation.
Oracle Virtual Desktop Infrastructure 3.5 Installation
If you are using a remote MySQL database, you are prompted for the administrator password for
the remote database.
Oracle VDI 3.5 Installation
Updating from Oracle VDI 3.4.1 to Oracle VDI 3.5
At the end of the update, you are prompted to configure Oracle VDI.
Do you want to configure Oracle VDI 3.5 now? ([y]/n)
To configure the host later, type n and press the Return key. Use the vda-config command to
configure the host. If you do this, you must configure the primary host before you configure any
secondary hosts.
If you configure the host now, the host is configured using the details from the preserved
configuration.
On secondary hosts, the MD5 fingerprint of the primary host's SSL certificate is displayed and you
are prompted to enter the credentials for becoming the root user on the primary host. To check
the MD5 fingerprint, run the vda-center agent-status command as root on the primary host.
Enter the credentials as follows:
• On Oracle Linux and Oracle Solaris hosts where root is not configured as a role, enter root's
password and press the Return key.
• On Oracle Solaris hosts where root is configured as a role, enter the credentials for assuming the
root role and press the Return key.
It is best to clear your browser's cache before logging in to Oracle VDI Manager. This prevents any
display problems after the update.
28
Firewalls Between Oracle VDI and User Directories
The following table lists the ports you might need to open to permit these connections.
Table 2.2. Firewalls ports Between Clients and Oracle VDI Hosts
Source Destination Port Protocol Purpose
Client Oracle VDI 1800 TCP HTTP connections to Oracle VDI
web server Manager.
The following table lists the ports you might need to open to permit these connections.
Table 2.3. Firewall Ports Between Oracle VDI Hosts and User Directories
Source Destination Port Protocol Purpose
Oracle VDI Windows 53 UDP DNS lookups on Active Directory.
host server
Oracle VDI Windows 88 TCP or UDP Authenticate users in Active Directory.
host server
Oracle VDI LDAP 389 TCP Authenticate users in an LDAP directory.
host directory
Oracle VDI Windows 464 TCP or UDP Enable users to change their password if
host server it has expired.
Oracle VDI LDAP 636 TCP Authenticate users using a secure
host directory connection to an LDAP directory.
server
Oracle VDI Windows 3268 TCP Authenticate users in Active Directory.
host server
• Ports 88 and 464 for Kerberos authentication to a Key Distribution Center (KDC)
29
Firewalls Between Desktop Providers and Oracle VDI Centers
• Port 3268 for the secure LDAP connection to a global catalog server
Oracle VDI performs several DNS lookups to discover LDAP information. For these lookups to work, it
is essential that your DNS is configured correctly to enable the required information to be returned from
Active Directory.
Ports 88 and 464 are the standard ports used for Kerberos authentication to a Key Distribution Center
(KDC). These ports are configurable. Connections to these ports can use either the TCP or UDP protocol
depending on the packet size and your Kerberos configuration. Port 464 is only required for password
change operations.
The following table lists the ports you might need to open to permit these connections.
Table 2.4. Firewall Ports Between Oracle VDI Hosts and Desktop Provider Hosts
30
Firewalls Between the Hosts in an Oracle VDI Center
On VirtualBox hosts, the HTTPS port is configured when you install VirtualBox. The VRDP ports are only
required if the VRDP protocol is used to connect to desktops, see Section 5.1.2, “Choosing Between VRDP
and MS-RDP”. The range of ports used is configurable, see Section 4.1.5, “Configuring the VRDP Port
Range”.
If you use App-V repositories, ports 554 and 49152-65535 are used by default for connections to the App-
V Management Servers. If RTSPS is used, only port 332 is required. Ports 332 and 554 are configurable.
See Microsoft Support Article 932017 for full details.
31
Firewalls Between the Hosts in an Oracle VDI Center
The following table lists the ports you might need to open to permit these connections.
On Oracle VDI hosts, port 3303 is also used for the connection between the vda client command and
the Oracle VDI host. This port is bound to localhost and is configurable.
Ports 11172-11174 are the default ports used for Cacao. If these ports are not available when Oracle
VDI is installed, the next available free ports are selected. Use the cacaoadm list-params -i vda
command to see which ports are used.
32
Chapter 3. Configuring Companies and User Directories
Table of Contents
3.1. About User Directory Integration ................................................................................................. 33
3.1.1. Active Directory Types .................................................................................................... 33
3.1.2. LDAP Types ................................................................................................................... 34
3.1.3. User Directory Customization .......................................................................................... 35
3.2. Supported User Directories ........................................................................................................ 35
3.3. About Companies ...................................................................................................................... 35
3.3.1. Multiple Companies and the Desktop Login Screen .......................................................... 36
3.4. Creating a Company .................................................................................................................. 36
3.5. Setting Up Kerberos Authentication ............................................................................................ 37
3.5.1. Whitelist and Blacklist Support ......................................................................................... 39
3.6. Setting Up Public Key Authentication .......................................................................................... 40
3.7. Setting Up Anonymous Authentication ........................................................................................ 42
3.8. Setting Up Simple Authentication ................................................................................................ 42
3.9. Setting Up Secure Authentication ............................................................................................... 44
3.10. About Complex Forest Configurations ....................................................................................... 45
3.11. Reconfiguring the User Directory Settings ................................................................................. 46
3.11.1. Defining the User Directory ............................................................................................ 46
3.11.2. Changing the Security Level .......................................................................................... 46
3.11.3. Changing the Credentials .............................................................................................. 47
3.11.4. Updating the Server SSL Certificates ............................................................................. 47
3.11.5. Adding Fallback Hosts ................................................................................................... 47
3.12. About Global Oracle VDI Centers ............................................................................................. 47
3.12.1. Home and Foreign Oracle VDI Centers .......................................................................... 48
3.12.2. Guest Pools .................................................................................................................. 48
3.12.3. Global Oracle VDI Centers and Desktop Login ............................................................... 48
3.12.4. Preparing a User Directory for Global Oracle VDI Centers ............................................... 50
3.13. About LDAP Filters and Attributes ............................................................................................ 51
3.13.1. Searching for Users and Groups .................................................................................... 51
3.13.2. Requesting a Desktop for a User ................................................................................... 52
3.13.3. Resolving Group Membership ........................................................................................ 52
3.13.4. LDAP Cache ................................................................................................................. 52
3.14. Removing a Company .............................................................................................................. 52
See Section 3.2, “Supported User Directories” for details of the supported versions of Active Directory.
33
LDAP Types
The users from Active Directory can be used for desktop and pool assignments and will be able to access
desktops provided by Oracle VDI. On top of this basic feature, Active Directory integration offers the
following functionalities:
1. Active Directory integration enables access to all the users from a forest and makes those users
available for desktop and pool assignments. This means that the users from the different sub-domains
of the forest will be able to access desktops from Oracle VDI.
For more details on supported forest configurations, see Section 3.10, “About Complex Forest
Configurations”.
2. Active Directory integration allows computer entries to be removed from Active Directory when cloned
desktops are deleted by the Oracle VDI.
During cloning, when a Windows desktop joins a domain, this creates a new computer entry in Active
Directory. Configuring Oracle VDI with Kerberos authentication enables Oracle VDI to remove the
computer entries from Active Directory, when deleting unused desktops. This avoids having computer
entries piling up in Active Directory while the matching desktops have long been destroyed.
3. Active Directory integration allows users to update their password (Section 6.2.3, “User Password
Change and Expiry”) in Active Directory either before this password has expired (optional action) or
after the password has expired (mandatory action).
You can choose from the following supported Active Directory types:
• Kerberos Authentication - The typical choice when integrating with Microsoft Active Directory.
• Public Key Authentication - To be used to integrate with Microsoft Active Directory when the domain
controller requires LDAP signing, see: http://support.microsoft.com/kb/935834.
See Section 3.6, “Setting Up Public Key Authentication” for more information.
See Section 3.2, “Supported User Directories” for details of the supported LDAP directories.
LDAP integration allows users to update their password (Section 6.2.3, “User Password Change and
Expiry”) in the directory server only before this password has expired. If the user password expires, the
user will be required to update it using a customer-provided process external to Oracle VDI.
LDAP Integration offers three security types for authentication: anonymous, simple, and secure:
• Anonymous Authentication - Useful for a quick integration with an LDAP server but not recommended for
production environments. Anonymous Authentication may only be chosen if the LDAP server supports
anonymous authentication. Active Directory does not support Anonymous Authentication.
• Simple Authentication - The recommended choice for production platforms integrating with LDAP
directories other than Active Directory. If integrating with Active Directory, use Kerberos Authentication,
see Section 3.5, “Setting Up Kerberos Authentication”. A default restriction in Active Directory prevents
password updates from an LDAP Simple Authentication.
34
User Directory Customization
• Secure Authentication - Useful to secure connections over SSL, when the directory supports it.
When a user gets a desktop from Oracle VDI (via the Desktop Selector), Oracle VDI passes the user
credentials to the desktop so the user does not have to re-enter their credentials at the desktop login. One
way Oracle VDI enables users to authenticate is through their email address, however, an email address is
not a valid user name on the desktop side.
• OpenLDAP 2.4.23
35
Multiple Companies and the Desktop Login Screen
To take advantage of the Company feature, you can create a company for each user directory.
Virtualization resources (hosts and storage) are shared by all companies. Pools, desktops, users, groups,
and tokens are separated for each company.
Templates are automatically separated for each company that use Oracle VM VirtualBox or Microsoft
Hyper-V desktop providers. For VMware vCenter desktop providers, all templates are visible to all pools.
For security reasons, be sure that templates are only be used among pools of the same company.
For more information about how to create a Company, refer to Section 3.4, “Creating a Company”. For
more information about user directory integration, refer to Section 3.1, “About User Directory Integration”.
• userid@companyname type syntax for user directories that do not support domains.
• Email address. This requires that you must set the E-Mail Domain Name property for the company.
Multiple domain names can be configured.
Desktops can be configured for automated logons. With automated logons, Oracle VDI passes user
credentials to the desktop so users do not have to enter their credentials again to log in to their desktops. If
users authenticate using their email address, automated logons do not work because an email address is
not a valid desktop user name.
Oracle VDI also provides a Corporation setting. If you have a large number of users spread across multiple
user directories (LDAP servers or Active Directory domains) and they are all part of the same corporation,
the privacy of company data is not required. For example, a company might have separate user directories
for each geographical location. When the Corporation setting is enabled, the Domain list is shown in the
Desktop Login screen and it contains all the available domains from all the available companies. In Oracle
VDI Manager, you enable the Corporation from the Settings and then the Company page.
2. In the Companies table, click New to activate the New Company wizard.
3. Choose between Active Directory and LDAP user directory types. You can also choose 'none' if you
only require token assignments.
• If Active Directory type is chosen, some extra configuration on Oracle VDI hosts is required before
setting up Kerberos or Public Key certificates on Oracle VDI.
• LDAP type is more straightforward and may work with your Active Directory server depending on its
configuration. LDAP integration offers three types of authentication: anonymous, simple, and secure.
36
Setting Up Kerberos Authentication
To get the full functionality offered by Kerberos Authentication, it is necessary to provide the credentials
of a user that has 'write' access to Active Directory. This user is used to read users and delete computer
entries from the directory.
Kerberos Authentication requires some specific configuration in Active Directory and on your Oracle VDI
hosts before configuring the user directory in Oracle VDI Manager.
Steps
2. Ensure that each Active Directory forest has a global catalog server.
If the Domain Controller is running on Microsoft Windows Server 2008 R2, the Forest Functional
Level must be set to Windows Server 2008 or Windows Server 2008 R2 (instead of the value used by
default, Windows Server 2003). Refer to Microsoft documentation for more information about the Forest
Functional Level.
4. Synchronize the time between the Oracle VDI hosts and Active Directory server.
Use Network Time Protocol (NTP) software or the rdate command to ensure the clocks on all hosts
are synchronized.
5. Edit the system default Kerberos configuration file on the Oracle VDI hosts.
Caution
At a minimum, the Kerberos configuration file must contain the following sections:
• [libdefaults] - this sets defaults for Kerberos authentication. You must set the
default_realm.
• [realms] - this sets the KDCs for each Kerberos realm. A realm can have more than one kdc, the
port can omitted if the default port 88 is used.
37
Setting Up Kerberos Authentication
To allow end-users to update their password (Section 6.2.3, “User Password Change and Expiry”),
the details of the server that handles the password change for each Kerberos realm must be
specified. The kpasswd_server and admin_server entries identify the Kerberos administration
server that handles the password change. If kpasswd_server is omitted, the admin_server is
used instead. The port can be omitted if the default port 464 is used.
The following is an example Kerberos configuration file for a forest with a single domain:
[libdefaults]
default_realm = MY.COMPANY.COM
[realms]
MY.COMPANY.COM = {
kdc = my.windows.host
admin_server = my.windows.host
kpasswd_protocol = SET_CHANGE
}
[domain_realm]
.my.company.com = MY.COMPANY.COM
my.company.com = MY.COMPANY.COM
6. You can check that Kerberos and its name resolution requirements are configured properly by using
getent, nslookup, and kinit
For example:
• # getent hosts my.windows.host must return the IP address and the host name
• # getent hosts IP_of_my.windows.host must return the IP address and the host name
38
Whitelist and Blacklist Support
ii. In the Domain field, enter the Active Directory domain name.
iii. In the User Name and Password boxes, enter the user principal name of a user that has
sufficient privileges to write to Active Directory.
ii. (Optional) In the E-Mail Domain Name field, enter one or more email domain names.
If you enter an email domain, users can log in using their email address.
iii. (Optional) In the Comments field, enter any notes about the company.
f. On the Review step, check the configuration of the company and click Finish.
The whitelist is a comma-separated list of Active Directory global catalog servers (not domain controllers)
that are always used for LDAP queries. The order of the servers in the whitelist is important. If Oracle VDI
cannot contact the first server in the list, it tries the next one. The hosts in the whitelist must be resolvable
in DNS. This includes IP addresses, fully-qualified (long) host names, and unqualified (short) host names.
The blacklist is a list of comma-separated Active Directory servers that are never used for LDAP queries.
The blacklist settings override the whitelist settings. The hosts in the blacklist must match the value
returned by DNS exactly (the value is case-sensitive). If the Service Location (SRV) locator resource
records returned by DNS uses IP addresses, the blacklist must contain IP addresses. If DNS uses host
names, the blacklist must contain host names.
This feature can be enabled only on the command line, using the directory.white.list and
directory.black.list properties.
39
Setting Up Public Key Authentication
1. Follow the configuration steps 1 to 5 described for Kerberos Authentication. See Section 3.5, “Setting
Up Kerberos Authentication”.
The Oracle VDI keystore for the client certificate is located at /etc/opt/SUNWvda/sslkeystore
and the password is changeit.
On the Oracle VDI host, log in as superuser (root) and use the Java keytool utility to generate the
key pair in the Oracle VDI keystore.
On the Oracle VDI host, use keytool to generate the certificate request.
keytool -certreq \
-keystore /etc/opt/SUNWvda/sslkeystore \
-storepass changeit -keypass changeit \
-alias your_alias \
-file certreq_file
The alias must be the same as the alias used when generating the key pair. Aliases are case-
insensitive.
vi. On the Advanced Certificate Request page, click Submit a Certificate Request by using
a base-64-encoded CMC or PKCS #10 file, or submit a renewal request by using a base-64-
encoded PKCS #7 file.
vii. On the Submit a Certificate Request or Renewal Request page, paste the contents of the
CSR into the Saved Request text box or browse to the CSR file.
40
Setting Up Public Key Authentication
Administrator is recommended.
x. On the Certificate Issued page, ensure Base 64 Encoded is selected and click Download
Certificate Chain.
keytool -import \
-keystore /etc/opt/SUNWvda/sslkeystore \
-storepass changeit -keypass changeit \
-trustcacerts -file certificate_file \
-alias your_alias
# /opt/SUNWvda/sbin/vda-service restart
ii. In the Domain field, enter the Active Directory domain name.
e. On the Verify Certificate step, check that the SSL certificate details are correct.
ii. (Optional) In the E-Mail Domain Name field, enter one or more email domain names.
If you enter an email domain, users can log in with their email address.
iii. (Optional) In the Comments field, enter any notes about the company.
g. On the Review step, check the configuration of the company and click Finish.
41
Setting Up Anonymous Authentication
b. In the Host field, enter the fully-qualified DNS name or IP address of the LDAP server.
c. In the Port field, enter the port number used for connections to the LDAP server.
d. (Optional) In the Base DN field, enter the distinguished name (DN) of an LDAP object to use as the
search base.
The base DN is used to restrict the part of the LDAP directory used to search for users.
b. (Optional) In the E-Mail Domain Name field, enter one or more email domain names.
If you enter an email domain, users can log in with their email address.
c. (Optional) In the Comments field, enter any notes about the company.
6. On the Review step, check the configuration of the company and click Finish.
7. (Optional) If you want users to authenticate only once when logging in using their email address, set the
default domain for the user directory.
/opt/SUNWvda/sbin/vda directory-setprops [-u CompanyName] \
-p directory.default.domain=domainname
42
Setting Up Simple Authentication
Note
It is necessary to provide the credentials of a user that has 'read' access to the user
directory. This user will be used to read user information from the directory.
b. In the Host field, enter the fully-qualified DNS name or IP address of the LDAP server.
c. In the Port field, enter the port number used for connections to the LDAP server.
d. (Optional) In the Base DN field, enter the distinguished name (DN) of an LDAP object to use as the
search base.
The base DN is used to restrict the part of the LDAP directory used to search for users.
e. In the User Name and Password boxes, enter the DN and password of a user that has sufficient
privileges to search the LDAP directory.
b. (Optional) In the E-Mail Domain Name field, enter one or more email domain names.
If you enter an email domain, users can log in with their email address.
c. (Optional) In the Comments field, enter any notes about the company.
6. On the Review step, check the configuration of the company and click Finish.
7. (Optional) If you want users to authenticate only once when logging in using their email address, set the
default domain for the user directory.
43
Setting Up Secure Authentication
Note
It is necessary to provide the credentials of a user that has 'read' access to the user
directory. This user will be used to read user information from the directory.
b. In the Host field, enter the fully-qualified DNS name or IP address of the LDAP server.
c. In the Port field, enter the port number used for secure connections to the LDAP server.
d. (Optional) In the Base DN field, enter the distinguished name (DN) of an LDAP object to use as the
search base.
The base DN is used to restrict the part of the LDAP directory used to search for users.
e. In the User Name and Password boxes, enter the DN and password of a user that has sufficient
privileges to search the LDAP directory.
5. On the Verify Certificate step, check that the SSL certificate details are correct.
b. (Optional) In the E-Mail Domain Name field, enter one or more email domain names.
If you enter an email domain, users can log in with their email address.
c. (Optional) In the Comments field, enter any notes about the company.
7. On the Review step, check the configuration of the company and click Finish.
44
About Complex Forest Configurations
8. (Optional) If you want users to authenticate only once when logging in using their email address, set the
default domain in the user directory.
/opt/SUNWvda/sbin/vda directory-setprops [-u CompanyName] \
-p directory.default.domain=domainname
• Multiple tree forests with multiple domains with or without child domains
• A root domain named example.com. The Global Catalogs are located in the root domain.
• A child domain named users.example.com where all the users are located, including the user used to
set up authentication in the Oracle VDI Manager.
[realms]
USERS.EXAMPLE.COM = {
kdc = users.host
admin_server = users.host
kpasswd_protocol = SET_CHANGE
}
EXAMPLE.COM = {
kdc = example.windows.host
admin_server = example.windows.host
kpasswd_protocol = SET_CHANGE
}
[domain_realm]
.users.example.com = USERS.EXAMPLE.COM
users.example.com = USERS.EXAMPLE.COM
.example.com = EXAMPLE.COM
example.com = EXAMPLE.COM
• Domain: example.com
• Username: [email protected]
• One tree containing the domain central.vdi.example.com (Forest Root) and a child domain
child.central.vdi.example.com
45
Reconfiguring the User Directory Settings
In order to add this tree configuration as a Company in Oracle VDI Manager, first make sure that Kerberos
has been configured correctly on the Oracle VDI hosts.
[libdefaults]
default_realm = CENTRAL.VDI.EXAMPLE.COM
[realms]
CENTRAL.VDI.EXAMPLE.COM = {
kdc = centralroot.vdi.example.com
}
CHILD.CENTRAL.VDI.EXAMPLE.COM = {
kdc = centralchild.vdi.example.com
}
EAST.VDI.EXAMPLE.COM = {
kdc = eastroot.vdi.example.com
}
[domain_realm]
.central.vdi.example.com = CENTRAL.VDI.EXAMPLE.COM
central.vdi.example.com = CENTRAL.VDI.EXAMPLE.COM
.child.central.vdi.example.com = CHILD.CENTRAL.VDI.EXAMPLE.COM
child.central.vdi.example.com = CHILD.CENTRAL.VDI.EXAMPLE.COM
.east.vdi.example.com = EAST.VDI.EXAMPLE.COM
east.vdi.example.com = EAST.VDI.EXAMPLE.COM
In the Oracle VDI Manager New Company wizard, be sure to enter the domain name of the Forest Root in
the Specify Connection step.
2. Select a company and go to the LDAP or Active Directory tab (depending on the user directory type).
4. Switch to another security level and modify the other settings if necessary, such as the port, the user
name, and the password.
5. Click Next to review your choices before completing the configuration update.
46
Changing the Credentials
It is only possible to switch to a security level within the same type of user directory, LDAP or Active
Directory. To switch between LDAP and Active Directory types, use the vda directory-setprops
command.
In the case of LDAP connection type, it is not possible change the security level if additional hosts have
been defined (see Section 3.11.5, “Adding Fallback Hosts”).
2. Select a company and go to the LDAP or Active Directory tab (depending on the user directory type).
5. Click Next to review your choices before completing the configuration update.
2. Select a company and go to the LDAP or Active Directory tab (depending on the user directory type).
Do not change any of the existing settings if you only want to update the server certificates. One
of the wizard steps shows the SSL certificates of the servers. Click Next to permanently accept the
certificates.
4. Click Next to review your choices before completing the configuration update.
The additional LDAP hosts must be the replica of the main host. The connection to the fallback hosts will
be open using the same security level, same port, same base DN and same credentials as for the main
host.
The list of LDAP hosts can be found in the LDAP tab. Hosts can be added, removed and their order can be
changed.
47
Home and Foreign Oracle VDI Centers
Global Oracle VDI Centers assume the existence of a global user directory infrastructure. Global Oracle
VDI Centers are always enabled, but you cannot take advantage of this feature unless your user directory
is properly prepared. For more information about how to prepare the user directory, refer to Section 3.12.4,
“Preparing a User Directory for Global Oracle VDI Centers”.
When considering the user experience, you should decide whether to implement manual or automatic
redirection for hotdesking and whether to make guest pools available.
Guest pools are described in Section 3.12.2, “Guest Pools”. For more information on hotdesking, see
Hotdesking in the Sun Ray Software Administration Guide. Manual and automatic redirection are described
below in Section 3.12.3.1, “Manual Redirection” and Section 3.12.3.2, “Automatic Redirection”.
You can set a pool as a Guest pool with the Oracle VDI Manager or the command line. Although they are
not mandatory, the following settings for Guest pools are recommended:
• Large Maximum Size, depending on how many guest users are expected to work at the same time in a
worst-case scenario
When the user provides a user name and password, Oracle VDI first determines whether to connect the
user to their home Oracle VDI Center or to a foreign Oracle VDI Center. It does this by searching the user
directory for the Global Oracle VDI Center data. If no such data can be found for the current user, the
current Oracle VDI Center is considered to be the user's home Oracle VDI Center.
If a user connects to a foreign Oracle VDI Center, the Desktop Selector screen contains new entries, such
as:
1. One or more Guest pool entries. If you have configured the Guest pools correctly, the user can get a
local desktop from a Guest pool in the foreign Oracle VDI Center, after which the Desktop Selector
displays that desktop instead of the Guest pools.
48
Global Oracle VDI Centers and Desktop Login
2. An entry to switch to the user's home Oracle VDI Center. This option redirects the current session to
the user's home Oracle VDI Center. The Desktop Login screen is displayed with the user name pre-
populated, and the user has to enter a password again. After successful authentication, the Desktop
Selector screen displays the user's assigned desktops and pools.
Normally, the Desktop Login screen prompts for user name, domain, and password. If authentication
succeeds, the Oracle VDI system determines the user's home Oracle VDI Center. If the Sun Ray Client is
connected to the user's home Oracle VDI Center, then nothing changes in the screen's behavior, and the
user is presented with the Desktop Selector screen. However, if the Sun Ray Client is not connected to the
user's home Oracle VDI Center, then the Desktop Selector screen displays an Oracle VDI Center entry
in addition to any other guest desktops that may be available for a visitor to that Oracle VDI Center. The
user now has the choice of being redirected to the home Oracle VDI Center or of using one of the guest
desktops available at the foreign Oracle VDI Center.
If the user selects the home Oracle VDI Center entry, the Sun Ray Client is redirected to one of the Sun
Ray servers in the user's home Oracle VDI Center, and the Desktop Login screen displays the user name
and current domain. Upon re-entering the correct password, the user is presented with the normal Desktop
Selector screen. Since the Sun Ray Client is now connected to the user's home Oracle VDI Center, the
assigned desktops in the home Oracle VDI Center are now accessible. At this point, the user cannot revert
to the new local Center.
If you want to enable redirection back to the previous home Oracle VDI Center, see Section 3.12.3.3,
“Automatic Redirection to Initial Server”.
The default redirection logic requires the user to enter a password twice, first on the initial login screen and
then after redirection. To avoid this inconvenience, you can configure the Desktop Login screen to perform
multi-step authentication. Setting the client.autoredirection.homeserver=Enabled property
instructs the screen to ask only for user name and domain information (see Section 6.2.6, “Global Settings
for the Oracle VDI Kiosk Session”). This information is sufficient to determine the user's home Oracle VDI
Center.
Users already connected to their home Oracle VDI Center get a password prompt in a second step. For
users not already connected, the Sun Ray Client is automatically redirected to any server in the user's
home Oracle VDI Center. After redirection, the password prompt is presented (user name and domain are
preset). After successful authentication, the user gets the Desktop Selector screen.
Automatic redirection does not offer the capability to stay at the foreign Oracle VDI Center and to use or
select a guest desktop. Instead, the user must work with desktops hosted in the user's home Oracle VDI
Center.
After a Sun Ray Client has been redirected to a different server, it usually remains there when the user
disconnects. This can cause some confusion for the next user, who might be surprised to be offered an
Oracle VDI Center link and a list of guest desktops instead of the expected list of assigned desktops.
Under automatic redirection, however, the client is automatically redirected to the current user's home
Oracle VDI Center during the login sequence.
You can use the client.autoredirect.firstserver setting to configure the Oracle VDI kiosk
session to redirect the Sun Ray Client to return to its initial server automatically when the user logs off,
49
Preparing a User Directory for Global Oracle VDI Centers
disconnects, or quits the session. It is enabled by default (see Section 6.2.6, “Global Settings for the Oracle
VDI Kiosk Session”).
If you want to use different attribute names and object types than the defaults, you may do so. You will
then need to customize the LDAP filters and attributes used for Global Oracle VDI Centers to reflect the
attributes and objects used in your schema.
See Section C.1, “Editing LDAP Filters and Attributes” for the necessary steps and the default LDAP filters
and attributes for Global Oracle VDI Centers.
Oracle VDI is configured to use the following schema for storing Oracle VDI Center data. This schema
uses classes and attributes that already exist in LDAP v3 directories.
• Oracle VDI Center: an Oracle VDI Center is an Organization Unit (ou) object. It may be located in any
place in the user directory. The name used to represent an Oracle VDI Center in the Desktop Selector
screen is taken from the displayName attribute if this attribute is specified. Otherwise, the value of the
ou attribute is used. An Oracle VDI Center ou contains (directly or through a hierarchy) several Oracle
VDI Host objects, which are the Oracle VDI hosts composing the Oracle VDI Center.
• Oracle VDI Host: an Oracle VDI Host is a computer object (on Active Directory) or a device
object (on other LDAP directories). The host name/IP address of the Oracle VDI Host is taken from
the dNSHostName attribute (on Active Directory) or the ipHostNumber attribute (on other LDAP
directories). If none of there attributes are defined, the value of the cn attribute of the host object is used.
• Associating an Oracle VDI Center with a User: the Oracle VDI Center to which a user belongs is defined
on the user object, in the seeAlso attribute. This value of this attribute needs to be the full DN of the
Oracle VDI Center object for that user.
Figure 3.1 shows an example global Oracle VDI Center in Active Directory.
50
About LDAP Filters and Attributes
This section explains how the LDAP filters and attributes are used by Oracle VDI to perform the different
searches in the user directory necessary for each task.
See Section C.1, “Editing LDAP Filters and Attributes” for details about how to edit those filters.
51
Requesting a Desktop for a User
• The $SEARCH_STRING placeholder is replaced by *criteria* where criteria is the string typed in
the Oracle VDI Manager search field. If the criteria string already contains a wild-card "*", then the
$SEARCH_STRING placeholder is simply replaced by criteria.
• The $SEARCH_STRING placeholder is replaced by *criteria* where criteria is the string typed in
the Oracle VDI Manager search field. If the criteria string already contains a wild-card "*", then the
$SEARCH_STRING placeholder is simply replaced by criteria.
Wildcards are added by default as the default value for ldap.search.wildcard is enabled.
Oracle VDI also resolves Primary Group membership which is specific to Active Directory. The attributes
used for resolving primary group membership are defined in ldap.group.short.attributes and
ldap.user.member.attributes.
It is not possible, at the moment, to change the LDAP cache timeout, nor to flush the cache.
52
Chapter 4. Configuring Desktop Providers and Virtualization
Platforms
Table of Contents
4.1. Oracle VM VirtualBox ................................................................................................................. 54
4.1.1. About Oracle VM VirtualBox ............................................................................................ 54
4.1.2. System Requirements for Oracle VM VirtualBox ............................................................... 54
4.1.3. Installing Oracle VM VirtualBox ........................................................................................ 58
4.1.4. Updating Oracle VM VirtualBox ....................................................................................... 59
4.1.5. Configuring the VRDP Port Range ................................................................................... 61
4.1.6. Configuring the VirtualBox Host Memory Overhead ........................................................... 62
4.2. Microsoft Hyper-V and Remote Desktop Services ........................................................................ 62
4.2.1. Microsoft Hyper-V ........................................................................................................... 62
4.2.2. System Requirements for Microsoft Hyper-V .................................................................... 62
4.2.3. Microsoft Remote Desktop Services ................................................................................. 63
4.2.4. System Requirements for Microsoft Remote Desktop Services .......................................... 63
4.2.5. Microsoft RDS Farm (NLB Cluster) Management .............................................................. 63
4.2.6. Limitations of Microsoft Remote Desktop Providers and Pools ........................................... 64
4.2.7. Preparing a Windows Server ........................................................................................... 65
4.3. VMware vCenter ........................................................................................................................ 67
4.3.1. System Requirements for VMware vCenter ...................................................................... 67
4.3.2. Setting Up a VMware ESX Server ................................................................................... 67
4.3.3. Setting Up a VMware vCenter Server .............................................................................. 67
4.3.4. Testing the Platform Setup .............................................................................................. 68
4.4. Sun Ray Kiosk Desktop Providers .............................................................................................. 69
4.5. Generic Desktop Providers ......................................................................................................... 70
4.6. Storage ..................................................................................................................................... 71
4.6.1. Introduction to Storage .................................................................................................... 71
4.6.2. Local Storage ................................................................................................................. 72
4.6.3. Network File System Storage .......................................................................................... 72
4.6.4. iSCSI Storage ................................................................................................................. 73
4.6.5. Sun ZFS Storage ............................................................................................................ 74
4.7. Preparing Sun ZFS and iSCSI Storage ....................................................................................... 77
4.7.1. Setting Up a Sun ZFS Storage Appliance ........................................................................ 77
4.7.2. Storage Clustering for Sun ZFS Storage Appliances ......................................................... 77
4.7.3. Replicating and Replacing a Sun ZFS Storage Appliance .................................................. 78
4.7.4. Setting Up an Oracle Solaris ZFS Storage ....................................................................... 79
4.7.5. Replicating and Replacing an Oracle Solaris ZFS Storage ................................................ 80
4.7.6. Setting Up an iSCSI Target on Sun ZFS Systems ............................................................ 81
4.8. Creating Desktop Providers ........................................................................................................ 83
4.8.1. Creating an Oracle VM VirtualBox Desktop Provider ......................................................... 83
4.8.2. Creating a Microsoft Hyper-V Desktop Provider ................................................................ 87
4.8.3. Creating a Microsoft Remote Desktop Provider ................................................................. 88
4.8.4. Creating a VMware vCenter Desktop Provider .................................................................. 90
4.8.5. Creating a Sun Ray Kiosk Desktop Provider .................................................................... 91
4.8.6. Creating a Generic Desktop Provider ............................................................................... 92
53
Oracle VM VirtualBox
• Shared Memory: Shared Memory (also known as memory ballooning) is a feature that enables
more desktops to run on VirtualBox hosts. By specifying an amount of memory to be shared between
desktops, the VirtualBox host's memory can be automatically redistributed between desktops as
required. The Shared Memory feature can be activated on a per-pool basis on the Pool category,
Settings tab by specifying a value greater than 0% (up to 75%).
The memory sharing percentage is the amount of memory that can be used for other desktops if a
desktop does not require the full amount of memory for itself. For instance, if the desktop memory size
is 1 GB and memory sharing is set to 40%, the desktop will initially have around 600 MB of real memory.
The other 400 MB will be made available to the desktop on demand.
Oracle VDI constantly monitors desktops with memory sharing enabled to ensure they do not run out
of memory. If a desktop's free memory drops below 64 MB more usable memory will be provided. If a
desktop has excessive amounts of free memory, some memory will be gradually taken away until the
memory sharing percentage is reached. The changes to desktop memory will not be apparent to the
guest OS.
• Memory Paging: The Memory Paging feature can be activated on a per-pool basis on the Pool
category, Settings tab.
Memory Paging (also known as de-duplication of memory) is a feature that enables more desktops to
run on VirtualBox hosts. If several desktops have identical content in memory, pages will be used to
consume real memory on the hypervisor only once. The desktops will reference the page and do not
need physical memory for identical pages any more.
To obtain the best performance and new features, use the bundled VirtualBox 4.2.10 release.
The following are the supported installation platforms for the bundled VirtualBox 4.2.10 release:
54
System Requirements for Oracle VM VirtualBox
Oracle products certified on Oracle Linux are also certified and supported on Red Hat Enterprise Linux
due to implicit compatibility between both distributions. Oracle does not run any additional testing on Red
Hat Enterprise Linux products. However, due to Bug ID 13974640, you must use Oracle's Unbreakable
Enterprise Kernel if you use Oracle Linux as the platform for your VirtualBox hosts. The Red Hat kernel is
not supported.
Oracle VM VirtualBox requires storage for the virtual disks used by Oracle VDI. The installation platform
you select affects the choices you have for storage, see Section 4.6.1, “Introduction to Storage” for details.
Due to the differences in the availability of the storage types and the way they are used, the virtualization
hosts for an Oracle VM VirtualBox desktop provider must use the same operating system, either Oracle
Linux or Oracle Solaris. You can use a mixture of Oracle Linux 5 and Oracle Linux 6 hosts, or Oracle
Solaris 10 and Oracle Solaris 11 hosts, in a desktop provider.
If you use iSCSI or ZFS storage, all VirtualBox hosts on Oracle Linux platforms must run the same kernel
and kernel version. This is a requirement of the Oracle Cluster File System version 2 (OCFS2) file system
used for these storage types.
All VirtualBox hosts must have the virtualization extensions from AMD (AMD-V) and Intel (VT-x) enabled.
Some basic hardware sizing guidelines can be found at Chapter 7, Performance and Tuning. For more
detailed assistance with sizing, contact an Oracle Sales or Support representative.
If the firewall is enabled on VirtualBox hosts, see Section 2.5.3, “Firewalls Between Desktop Providers and
Oracle VDI Centers” for details of the ports that might need to be opened.
Automatic software update tools can be configured to update a host to a new release of Oracle Linux when
it becomes available. Updates performed in this way can result in the host being updated to a release of
Oracle Linux that is not supported. You must ensure that your VirtualBox hosts are configured to receive
updates only for the supported releases of Oracle Linux.
On Oracle Linux 6 platforms, VirtualBox is included in the available ULN channels or yum repositories.
This can result in VirtualBox being automatically updated to a release that is not supported. To disable
automatic updates to VirtualBox, add the following exclude statement to the [main] section of the /
etc/yum.conf file on the host:
exclude=VirtualBox*
The required channel or repository configuration is the same as for Oracle VDI hosts, apart from the
Oracle Linux 6 GDM Multiseat ([ol6_gdm_multiseat]) requirement.
55
System Requirements for Oracle VM VirtualBox
To resolve package dependencies and to receive updates only for the supported releases of Oracle
Linux, see the following:
• Section 2.2.3.1, “Required Channel Subscriptions for Oracle Unbreakable Linux Network (ULN)”
• Section 2.2.3.2, “Required Repository Configuration for the Oracle Public Yum Server”
2. Update the host with the latest package versions by using the yum update command.
If the host does not have Internet access, you can configure yum to resolve package dependencies using a
local source, see Section 2.2.3.3, “Resolving Package Dependencies Without Internet Access”.
If the VirtualBox host is also used as an Oracle VDI host, you might experience poor performance with
desktops in pools that use the VRDP protocol if the maximum transmission unit (MTU) of the loopback
network interface is set too high. You can check the MTU, and decrease it if needed, as follows:
1. Use the ifconfig command to check the current MTU of the loopback interface.
For example:
# /sbin/ifconfig lo
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16346 Metric:1
RX packets:134095573 errors:0 dropped:0 overruns:0 frame:0
TX packets:134095573 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:82894163173 (77.2 GiB) TX bytes:82894163173 (77.2 GiB)
2. If the MTU is 8192 bytes or more, change the MTU of the loopback interface to 8154 bytes.
The MTU must be less than 8192 bytes. A value of 8154 bytes has been tested and is known to resolve
the performance issue.
Use the ifconfig command to verify that the MTU of the loopback interface has been changed.
The latest Oracle Solaris 11 Support Repository Update must be installed on the host.
VirtualBox requires specific packages to be installed. The VirtualBox installation script checks for these
packages before installing the software. If any required packages are missing, the installation script uses
the pkg command to check whether the packages are available. If the missing required packages are
available, you are prompted to continue and the packages are downloaded and installed. If the required
packages are not available, the installation fails and a list of required packages that must be installed is
displayed. You must resolve these dependencies before you can install VirtualBox.
56
System Requirements for Oracle VM VirtualBox
1. Ensure that the Oracle Solaris Image Packaging System (IPS) is configured to receive updates from
the Oracle Solaris 11 Support Repository.
For more details, see the Oracle Technology Network article How to Update Oracle Solaris 11 Systems
From Oracle Support Repositories.
2. Install the latest Oracle Solaris 11 Support Repository Update (SRU), using the pkg update
command.
For more details, see the Oracle Technology Network article More Tips for Updating Your Oracle
Solaris 11 System from the Oracle Support Repository.
If the VirtualBox host is also used as an Oracle VDI host, you must ensure that the host has at least 8
gigabytes (GB) swap space. For information about configuring swap space on Oracle Solaris 11 platforms,
see http://docs.oracle.com/cd/E26502_01/html/E29006/fsswap-14677.html.
The latest Recommended Patchset must be installed before you install VirtualBox. You can download the
patchset from My Oracle Support.
If the VirtualBox host is also used as an Oracle VDI host, you must ensure that the host has at least 8
gigabytes (GB) swap space. For information about configuring swap space on Oracle Solaris 10 platforms,
see http://docs.oracle.com/cd/E26505_01/html/E37385/fsswap-14677.html.
4.1.2.5. ZFS ARC Cache Requirements for VirtualBox Hosts on Oracle Solaris Platforms
The VirtualBox installation script warns you if the ZFS ARC cache is not limited. If the zfs_arc_min
parameter is not set, the ZFS ARC cache does not shrink below approximately 12% of the available
memory. You should also set the zfs_arc_max parameter to be the same value as zfs_arc_min. The
recommended setting for a dedicated VirtualBox host is 512 megabytes (MB).
If you intend to use local storage (see Section 4.6.2, “Local Storage”) on the VirtualBox host and the
local storage is a ZFS file system, you might need to increase the zfs_arc_min setting because the
recommended 512 MB setting maximizes the available memory for running virtual machines but reduces
ZFS performance by limiting the ARC cache.
To set the zfs_arc_min and zfs_arc_max values, log in as root and edit the /etc/system file. You
set the parameter values in bytes. For example, to set the values to 512 MB, add the following:
set zfs:zfs_arc_min = 536870912
set zfs:zfs_arc_max = 536870912
On Oracle Linux and Oracle Solaris platforms where root is a user, the root user is used by default. It is
best to use the root user, as this ensures that the VirtualBox functionality for suspending and resuming
57
Installing Oracle VM VirtualBox
virtual machines works in all situations. On Oracle Linux platforms, you must use the root user if you want
to use iSCSI storage or Sun ZFS storage.
On Oracle Solaris platforms where root is a role, you must provide the user name of a different user.
The VirtualBox user must have a home directory and the home directory must not be shared between
several hosts that run VirtualBox.
Before you begin, check that the host meets the installation requirements, see Section 4.1.2, “System
Requirements for Oracle VM VirtualBox”.
If you are updating VirtualBox, see Section 4.1.4, “Updating Oracle VM VirtualBox”.
The Oracle VDI software archive only includes the Extension Pack. When you run the vb-install script,
the script automatically downloads the Base Pack using the wget program. If this fails, for example due to
network connectivity problems, the script exits and you must manually download the Base Pack. You can
download the Base Pack and the Extension Pack from the VirtualBox download page.
The following table lists the options that can be used with vb-install script to automate the installation
on several servers with a script.
Option Description
-f Forces existing virtual machines to be deleted.
-n user Specifies the user name of the VirtualBox user. The default is
root.
-o port Specifies the SSL port to use to connect to VirtualBox. The
default is port 443 if the user is root, otherwise port 18083.
-p Requires input from standard input (stdin) to enter the
password in a secure way.
-u Uninstalls the currently installed release of VirtualBox.
Steps
3. Unzip the Oracle VDI software archive and change working directory to the extracted directory.
58
Updating Oracle VM VirtualBox
# cd vda_3.5_linux
4. Unzip the VirtualBox archive and change working directory to the extracted directory.
# unzip vbox_4.2.zip
# cd vbox_4.2
5. Install VirtualBox.
# ./vb-install
The installation script downloads the VirtualBox Base Pack, and then installs both the Base Pack and
the Extension Pack. You complete the installation by providing a user name, a password, and a port
number to use for SSL connections.
If the Base Pack download fails, you must manually download it from the VirtualBox download page.
Make sure you download the release that is bundled and supported with this release of Oracle VDI.
Copy the Base Pack to the same folder as the vb-install script, and then run the script again.
When you update, the existing version of VirtualBox must first be uninstalled. When you install the new
release, the installation script prompts you to uninstall existing release. Alternatively, you can uninstall the
existing release manually with the vb-install -u command.
When you uninstall VirtualBox, you are prompted to shut down any virtual machines that are running.
You must shut down all running virtual machines before uninstalling. You are also prompted to unregister
and delete the virtual machines. If you choose to unregister and delete, you cannot register the virtual
machines again after the update.
After you update VirtualBox, remember to update the guest additions in all templates and desktops.
You might need to upgrade the operating system on your hosts in order to meet the VirtualBox installation
requirements for this release. If you need to upgrade the operating system, consider the following:
• You cannot upgrade the operating system from Oracle Linux 5 to Oracle Linux 6, or from Oracle Solaris
10 to Oracle Solaris 11. You must perform a fresh installation of Oracle Linux 6 or Oracle Solaris 11.
This might have an impact if you are using local storage or network file system storage.
• If you use iSCSI or ZFS storage, all VirtualBox hosts on Oracle Linux platforms must run the same
kernel and kernel version. This is a requirement of the Oracle Cluster File System version 2 (OCFS2) file
system used for these storage types. If you use these storage types, you must upgrade all the hosts for
a desktop provider in parallel.
• Do not change the host name or IP address of a VirtualBox host as part of the operating system
upgrade.
59
Updating Oracle VM VirtualBox
If you need to change these details, remove the host from the desktop provider and then perform a fresh
installation of VirtualBox.
The following is the recommended procedure for updating an Oracle VM VirtualBox Desktop Provider:
Updating an Oracle VM VirtualBox Desktop Provider
1. Ensure that all desktops hosted by the desktop provider are shut down.
This is a precautionary step to ensure you can recover in the event of failure.
The action required depends on the storage type and the operating system of the VirtualBox hosts, as
shown in the following table.
See Section 8.9.1, “Oracle VM VirtualBox and Microsoft Hyper-V Host Maintenance” for details.
4. Upgrade the operating system, or install the new operating system, on the VirtualBox hosts.
When you upgrade the operating system, do not change the host name or IP address of the hosts.
Ensure that the hosts meet the operating system requirements for installing Oracle VDI:
• Section 4.1.2.2, “System Requirements for VirtualBox Hosts on Oracle Linux Platforms”
• Section 4.1.2.3, “System Requirements for VirtualBox Hosts on Oracle Solaris 11 Platforms”
• Section 4.1.2.4, “System Requirements for VirtualBox Hosts on Oracle Solaris 10 Platforms”
If you performed a fresh installation of Oracle Linux 6 or Oracle Solaris 11, you do not need to do this
because you perform a fresh installation of VirtualBox in the next step.
60
Configuring the VRDP Port Range
The action required depends on the storage type and the operating system of the VirtualBox hosts, as
shown in the following table.
If the storage is a local ZFS pool on the host and it was not
destroyed by the operating system upgrade, verify that the
contents of the directory have not changed. If they have
changed, restore from the backup.
This is needed to ensure that the credentials of the VirtualBox user, or that the SSL or SSH certificates,
are up-to-date. See Section 8.8.1, “Reconfiguring an Oracle VM VirtualBox Host” for details.
9. In Oracle VDI, enable the VirtualBox hosts to bring them out of maintenance mode.
10. Reload the iSCSI or Sun ZFS storage configuration for the desktop provider.
Required only for Oracle Linux desktop providers that use iSCSI or Sun ZFS storage. See
Section 8.8.2, “Reloading iSCSI or Sun ZFS Storage Configuration on Oracle VM VirtualBox Hosts” for
details.
61
Configuring the VirtualBox Host Memory Overhead
• Use the vda settings-setprops command to configure the VRDP port range, as follows:
# /opt/SUNWvda/sbin/vda settings-setprops -p vbox.rdp.port.range="StartPort-EndPort"
For example:
# /opt/SUNWvda/sbin/vda settings-setprops -p vbox.rdp.port.range="50000-60000"
The host memory overhead is configurable. If you change the default setting, this affects all VirtualBox
hosts. If you have hosts with differing amounts of memory, you should ensure that the host memory
overhead you configure is sufficient for all hosts.
• Use the vda settings-setprops command to configure the host memory overhead, as follows:
# /opt/SUNWvda/sbin/vda settings-setprops -p host.mem.overhead=percentage
Oracle VDI remotely manages the virtualization hosts for a Microsoft Hyper-V desktop provider. To enable
communication between Oracle VDI and the Windows Server hosting Microsoft Hyper-V, the Windows
Server needs to be prepared. See Section 4.2.7, “Preparing a Windows Server” for more details.
Oracle VDI does not include Microsoft software. You must purchase this separately. Oracle Support
contracts do not cover third-party software-related issues.
To install the Hyper-V role, see the Microsoft Hyper-V Getting Started Guide.
To install the standalone product, see Install Hyper-V Server 2008 R2.
62
Microsoft Remote Desktop Services
If you want to display session and load information about a Windows server in Oracle VDI Manager and on
the command line, you must prepare Windows Remote Management (WinRM) on your Windows servers
over HTTPS to communicate with Oracle VDI. See Section 4.2.7, “Preparing a Windows Server” for more
details.
Oracle VDI relies on some Microsoft tools being implemented along with Remote Desktop Services
to provide advanced features such as farm or cluster of RDS hosts with load balancing and session
reconnection.
Oracle VDI does not include Microsoft software or licenses for Microsoft Remote Desktop Services. You
must purchase these separately. Oracle Support contracts do not cover third-party software-related issues.
• Microsoft Windows Server 2003 R2 SP2 Enterprise Edition (32-bit and 64-bit)
If you want to view session and load information in Oracle VDI, configure the Microsoft Remote Desktop
provider as follows:
• Prepare each RDS host, as described in Section 4.2.7, “Preparing a Windows Server”.
• In the New Provider Wizard, add all the RDS hosts in the farm using the Specify New Host option.
With this configuration, Oracle VDI detects the information about the farm by querying the first RDS host of
the provider. The detected farm name is returned to the remote client when users try to access a session.
The session can be started on any host participating in the farm.
63
Limitations of Microsoft Remote Desktop Providers and Pools
If you do not want to view session and load information in Oracle VDI, configure the Microsoft Remote
Desktop provider as follows:
1. In the New Provider Wizard, select the Specify Remote Desktop Server Farm option.
2. Enter the DNS name or IP address of the RDS farm or NLB cluster.
With this configuration, the configured farm name is returned to the remote client when users try to access
a session.
The cluster is a Microsoft Network Load Balancing (NLB) cluster, which provides load balancing among
servers
Microsoft Session Directory can be used to enable users to reconnect to existing sessions.
• Microsoft Remote Desktop Connection Broker (formerly Terminal Services Session Broker) is used to
enable load balancing and enable users to reconnect to existing sessions.
As described in Microsoft documentation, preliminary load balancing may be provided using DNS round
robin or Microsoft Network Load Balancing (NLB) or a hardware load balancer.
• Network Load Balancing Step-by-Step Guide: Configuring Network Load Balancing with Terminal
Services
• A desktop provider can contain multiple Windows servers if they are members of the same Network
Load Balancing (NLB) cluster or Remote Desktop Session Host farm. In this situation, the NLB cluster or
Remote Desktop Connection Broker is responsible for load balancing sessions across the hosts and not
Oracle VDI.
64
Preparing a Windows Server
• A desktop provider can contain one or more stand-alone Windows servers. If Windows Remote
Management (WinRM) is not configured on the first Windows server that is added to the desktop
provider, the provider can only contain one Windows server. If WinRM is configured, a provider can
contain multiple Windows servers and Oracle VDI load balances the sessions across the hosts.
• Each Microsoft Remote Desktop provider can have only one pool.
• The pool does not use cloning because the Windows server or farm is responsible for opening new RDS
sessions when users connect.
• The desktop assignment type of the pool is always flexible. Users can be reconnected to their existing
RDS sessions, if the RDS hosts are configured for session reconnection. The reconnection is not
handled by Oracle VDI.
• The list of desktops displayed for a pool are the list of all RDS sessions from all RDS hosts associated
with the provider. All RDS sessions, whether they come from Oracle VDI or not, are displayed.
• Groups or users can be assigned to RDS pools but you cannot assign a user manually to an RDS
desktop.
Preparing the Windows server for communication with Oracle VDI is a two-step process. First, you must
generate the self-signed certificate using the Microsoft Internet Information Services (IIS) 6.0 Resource Kit
Tools (Step 1, below). Then configure winrm to listen for HTTPS requests (Step 3, below).
Note
These steps are necessary for RDS (or Terminal Services) hosts so that critical
information about the server (including CPU usage, memory usage, and number of
user sessions) can be displayed in Oracle VDI Manager and on the command line.
If you do not want to view session or load information in Oracle VDI, the following
steps are not necessary, see Section 4.2.5, “Microsoft RDS Farm (NLB Cluster)
Management” for more details. The delivery of desktop sessions from RDS pools is
still provided by a regular RDP connection. For information about how to configure
the RDP settings per desktop pool, see Section 5.1.4, “Configuring Pool RDP
Options”.
Caution
Use the selfssl.exe tool which is part of the IIS 6.0 Resource Kit and can be downloaded from the
Microsoft Support web site.
65
Preparing a Windows Server
The parameter /V: dictates the number of days the certificate will be valid. There is no maximum
value.
c. Run the certutil command, and make note of the Cert Hash of the new certificate:
certutil -store MY
Note
If the Windows server and the Oracle VDI servers are not in time sync, you
might not be able to connect Oracle VDI to the server because the certificate is
not valid for the delta between both servers.
Note
Windows Server 2008 and Hyper-V Server 2008 come with WinRM pre-
installed.
a. Download the WS-MAN v1.1. installation file from the Microsoft Download Center.
b. Install WS-Man.
The winrm tool is used to configure remote management settings on the server. You must specify the
certificate hash to be used, and the authentication settings to enable Oracle VDI to send requests.
• Replace certificate-hash with the cert hash value, with no spaces, noted from the self-
signed certificate created with selfssl.
b. Open that port so that the Windows Server can receive requests from Oracle VDI:
netsh firewall add portopening TCP 443 "Oracle VDI Remote Management"
66
VMware vCenter
Note
If you use a port other than 443 for Oracle VDI communication with Microsoft
Hyper-V or RDS, you must remember to specify this port when adding the host in
the Oracle VDI Manager.
Storage Requirements
VMware vCenter desktop providers require storage for storing the virtual disks used for desktops. The
storage is managed by the VMware infrastructure and not by Oracle VDI. However, Oracle VDI is able to
query vCenter for the available storage, and can select the data store to use when creating virtual disks.
Any storage qualified by VMware can be used, see the VMware Compatibility Guide for details.
Steps
1. Power on the host machine with the VMware ESX Server CD in the CD drive.
If available, you can also use remote management applications such as the Integrated Lights Out
Manager (ILOM) to drive the installation.
2. During installation, you can safely rely on the suggested default settings.
Refer to the VMware Documentation for more details about installing VMware ESX Server.
3. After installation, install the VMware Virtual Infrastructure Client so that you can access the VMware
ESX server.
Refer to the VMware Documentation for more details about installing the VMware Virtual Infrastructure
Client.
Steps
Once VMware vCenter is installed, complete the following configuration steps:
67
Testing the Platform Setup
In VMware vCenter select the data center where the host will be added. In the menu bar go to
Inventory, Datacenter, then Add Host, and follow the instructions.
3. Extract the Sysprep tools from the CAB into the following directory:
C:\Documents and Settings\All Users\Application Data\VMWare\VMWare VirtualCenter\sysprep\xp
For more information about installing the Microsoft Sysprep Tools, see the VMware Documentation.
4. Verify that the server is configured for access to the web services API.
Oracle VDI uses the web services API provided by the VMware Infrastructure SDK to communicate
through HTTPS with VMware vCenter.
a. Verify that the VMware vCenter Webaccess component is installed and configured.
b. Verify that Port 443 (HTTPS) is enabled in any firewall that may be active on the system.
Steps
1. Open the Virtual Infrastructure Client.
2. Right-click on the desired template and select Deploy Virtual Machine from this Template.
a. The wizard will ask you to specify a name for the new virtual machine.
Select the desired host/cluster and datastore with sufficient free space.
b. On the Guest Customization step, select the Customize Using an Existing Customization
Specification option, then choose the customization specification you just created from the list.
3. After the cloning has finished, select the new virtual machine and power it on.
After some time you should see its IP address and host name appear in the Virtual Infrastructure Client.
Make sure that it has a unique IP address and that the host name corresponds to the virtual machine
name.
68
Sun Ray Kiosk Desktop Providers
4. On the VMware vCenter server, open a Remote Desktop Connection by clicking Start, All Programs,
Accessories, Communications, then Remote Desktop Connection.
a. In the Remote Desktop Connection window, enter the IP address of the newly cloned virtual
machine, and click Connect.
b. If everything is configured correctly, a full-screen remote desktop session to your virtual machine
should be displayed.
Sun Ray Kiosk desktop providers enable you to provide access to types of sessions that are not available
with Oracle VDI itself, for example to connect to a remote desktop using a different broker such as the
Sun Ray VMware View connector, or to provide access to a web-based application in a locked-down web
browser.
Each Sun Ray Kiosk desktop provider corresponds to one kiosk session type that is available in the Oracle
VDI Center. Each pool connected to a Sun Ray Kiosk Session provider can have its own specific settings
for the kiosk session, see Section 5.1.7, “Configuring Kiosk Settings (Sun Ray Kiosk Provider)”.
For more information about configuring Sun Ray kiosk sessions, see Kiosk Mode in the Sun Ray Software
Administration Guide.
• The user name of the logged in Oracle VDI user is available in the VDA_USER environment variable.
• The password of the Oracle VDI user can be read from standard input by the kiosk session process
only if the VDA_SSO_AWARE environment variable is set to true. This environment variable must be set
in the kiosk session descriptor. By default, passwords are not read from standard input.
• The domain of the logged in Oracle VDI user is available in the VDA_DOMAIN environment variable.
• The X11 display to use for the kiosk session is available in the VDA_DISPLAY environment variable.
If this is not set, a full screen display on the current display is assumed.
• The screen location in which the kiosk session is displayed, in X11 geometry format, is available in the
VDA_GEOMETRY environment variable.
If this is set, the session runs in a window on the display specified by VDA_DISPLAY. If no geometry is
set, the session runs full-screen on the specified display.
The following is a simple example of how this information might be used in a kiosk session script.
69
Restrictions on Kiosk Session Types
theUser="$VDA_USER"
thePassword=
theDomain="$VDA_DOMAIN"
theDisplay="$VDA_DISPLAY"
theGeometry="$VDA_GEOMETRY"
read thePassword
• The Sun Java Desktop System 3 and the Common Desktop Environment kiosk types (available on
Oracle Solaris platforms only) cannot be used with Oracle VDI, even though they can be selected for use
with a Sun Ray Kiosk desktop provider.
• Kiosk session types that do not use the VDA_DISPLAY or VDA_GEOMETRY environment variables to
detect the Oracle VDI session might not function correctly if users can access multiple desktops.
• Kiosk pre-session or post-session scripts that must be run by root are not supported.
Kiosk session types that have the KIOSK_SESSION_PRE or KIOSK_SESSION_POST keys set cannot be
used with Oracle VDI.
• When the kiosk session exits, temporary files and folders in the kiosk user's home directory are not
cleaned up. Do not use kiosk session types that create temporary files and folders, as these might affect
other kiosk sessions of the same or different types.
• Processes started as background processes by the kiosk session continue to run until the Oracle VDI
session ends.
• Kiosk commands and functions that operate on the kiosk session, operate on the containing Oracle VDI
session, as follows:
• The kioskrestart(1) command cannot be used to end a kiosk session. This command ends the
entire Oracle VDI session.
• If the kiosk session starts any process as a critical process, the entire Oracle VDI session ends when
the critical process exits. The kiosk sessions themselves are not run as critical processes.
• Kiosk application lists do not work correctly with a kiosk session run by the Sun Ray Kiosk desktop
provider. Do not use "desktop-style" session types that support configurable application lists.
The Generic desktop provider can act as a desktop provider to any virtual or physical machine with an
RDP connection. This enables you import and manage individual Windows PCs with Oracle VDI Manager.
70
Storage
See Section 5.4.4, “Importing Individual Windows PCs” for detailed instructions.
Refer to the Section 5.4.4, “Importing Individual Windows PCs” for information about importing individual
Windows PCs.
4.6. Storage
4.6.1. Introduction to Storage
Storage is closely related to virtualization because the virtualization platforms require a location for creating
and storing the virtual disks used for desktops.
Whether you have limited hardware or dedicated storage appliances, Oracle VDI is designed to enable you
to use a variety of storage types to meet your requirements. Oracle VDI supports four types of storage:
• Local Storage
• iSCSI Storage
The storage types that can be used for a desktop provider type depend on the virtualization platform and
the operating system, as shown in the following table.
VMware vCenter desktop providers also require storage but the storage is managed by the VMware
infrastructure and not Oracle VDI. However, Oracle VDI is able to query vCenter for the available storage,
and can select the data store to use when creating virtual disks.
For all other desktop providers, storage is managed independently of Oracle VDI.
All the supported storage types require preparation before they can be used. The level of preparation
required depends on how directly Oracle VDI manages the storage.
For high availability, a desktop provider can be configured to use more than one storage. To achieve the
best performance and to balance the load, Oracle VDI selects a storage to clone and host virtual disks
based on the available free space and current workload. Once a virtual disk is created, it remains on the
storage until it is deleted. With some storage platforms, such as Sun ZFS Storage Appliances, you can
also create storage clusters to provide redundancy for the hardware components of a storage server.
An Administrator can enable maintenance mode for a storage, Section 8.9.1, “Oracle VM VirtualBox and
Microsoft Hyper-V Host Maintenance”. In maintenance mode, the storage is disabled and all running
desktops are either shut down or suspended. Once this mode is enabled, maintenance can take place on
the storage. This mode is also useful for replicating and replacing a storage server, for example to replace
hardware.
71
Local Storage
Local storage can be inexpensive to set up and performs reasonably, but it is not suitable for high
availability deployments. Because the storage is not shared between virtualization hosts, personal
desktops cannot be load-balanced between hypervisors and there is also no redundancy in the event of
failure.
Local storage is different from all the other storage types because it is not a central storage that is
accessed by all virtualization hosts. Instead each virtualization host accesses its own local disk to store the
virtual disks. With local storage, the virtualization hosts and the storage hosts are the same. When local
storage is used, Oracle VDI automatically creates a local storage for each virtualization host that is added
to the desktop provider so that the free space and number of desktops can be monitored on each host.
You can only have one local storage for a Oracle VM VirtualBox desktop provider and you cannot mix local
storage with any other storage type.
Storage Preparation
To use local storage with Oracle VDI, you must configure a directory at the same location on each
virtualization host. The directory must reside in a local file system and it must not be provided by a shared
storage location. For performance reasons, it is better to use a server with at least two disks, so that the
storage can be separated from the operating system. When you add the storage for a desktop provider,
you simply provide the path to the directory.
A network file system storage can be a Network File System (NFS) share. In a production environment, it
is best to use a file system that is designed for clustering such as the Oracle Cluster File System version 2
(OCFS2).
Compared to local storage, network file system storage provides shared access for the virtualization hosts.
High availability and redundancy can be achieved through the use of multiple shares and multiple network
paths. However the performance for virtual disk I/O can be slower than a local disk. There is also the
management overhead in setting up, monitoring, and maintaining this type of storage.
For Oracle VM VirtualBox desktop providers on Oracle Solaris platforms, you cannot mix network file
system storage with the Sun ZFS storage type.
Storage Preparation
To use network file system storage with Oracle VDI, you must configure the network file system on a
storage host and mount it at the same mount point on all the virtualization hosts for a desktop provider.
When you add the storage for a desktop provider, you simply provide the path to mount point of the
storage.
72
iSCSI Storage
It is best to permit root access to the network file system from the virtualization hosts, as this enables
virtual disks to be cloned with secure file permissions.
iSCSI storage is only available for Oracle VM VirtualBox desktop providers on Oracle Linux platforms.
With iSCSI storage, existing IP networks are used to connect a virtualization host to a LUN on a
storage area network (SAN) device so that the LUN appears to the host as a locally attached disk. The
virtualization host acts as the iSCSI initiator (the client) and the storage is the iSCSI target.
The following are requirements for using an iSCSI storage with Oracle VDI:
• The storage must be compatible with the Oracle Linux iSCSI stack.
• The storage must be able to publish an iSCSI target and a Logical Unit Number (LUN).
Storage Preparation
To use an iSCSI storage with Oracle VDI, you must configure an iSCSI target and LUN on the storage
host. Section 4.7.6, “Setting Up an iSCSI Target on Sun ZFS Systems” provides some example
instructions for preparing an iSCSI target.
Oracle VDI formats the LUN using the Oracle Cluster File System version 2 (OCFS2) file system. You must
ensure that the hosts for Oracle VM VirtualBox desktop provider run the same Oracle Linux kernel and
kernel version, as this is an OCFS2 requirement.
The LUN should have a minimum capacity of 50 gigabytes (GB) and a maximum capacity of 16 terabytes
(TB), see Section 10.4.8, “A Sun ZFS or iSCSI Storage is Shown With a Reduced Capacity” for details.
For more information about OCFS2, see Oracle Cluster File System Version 2 in the Oracle Linux
Administrator's Solutions Guide for Release 6.
When you add the storage for a desktop provider, you provide the following details:
73
Sun ZFS Storage
When a user requests a desktop, Oracle VDI registers a virtual machine with a virtualization host and this
includes the path to the virtual disk in the mounted OCFS2 file system as shown in Figure 4.1.
Figure 4.1. iSCSI Storage and VirtualBox
Note
Oracle Solaris 11 and Oracle Solaris on SPARC platforms are not supported.
• For performance reasons, do not disable the write cache if you do not have write solid-state drives
(SSDs), also known as Logzilla. If the write cache is enabled and you have write SSDs, the write SSDs
are not used. See Section 7.4.2, “About ZFS Storage Caches” for more information on write caching.
For Oracle VM VirtualBox desktop providers on Oracle Solaris platforms, you cannot mix Sun ZFS storage
with any other storage type.
74
Sun ZFS Storage
• How to Deploy a Sun ZFS Storage Appliance in an Oracle Virtual Desktop Infrastructure (article on
Oracle Technology Network)
Storage Preparation
To use a ZFS storage, Oracle VDI requires SSH root access to the storage host and a ZFS pool on that
host. The following provides some example instructions:
For Oracle VM VirtualBox desktop providers on Oracle Linux platforms, Oracle VDI formats the ZFS
volume using the Oracle Cluster File System version 2 (OCFS2) file system. You must ensure that your
VirtualBox hosts run the same Oracle Linux kernel and kernel version, as this is an OCFS2 requirement.
Due to OCFS2, a storage should also have a minimum capacity of 50 gigabytes (GB) and a maximum
capacity of 16 terabytes (TB), see Section 10.4.8, “A Sun ZFS or iSCSI Storage is Shown With a Reduced
Capacity” for details. For more information about OCFS2, see Oracle Cluster File System Version 2 in the
Oracle Linux Administrator's Solutions Guide for Release 6.
With Sun ZFS Storage Appliances, you can create storage clusters to provide redundancy for the hardware
components of a storage host. Section 4.7.2, “Storage Clustering for Sun ZFS Storage Appliances”
provides information about configuring clusters for use with Oracle VDI.
After configuring the storage, it is best practice to prepare the storage host for backup and recovery in the
event of a failure. The following provides some example instructions:
When you add the storage for a desktop provider, you provide the following details:
• The user name and password of a user with root access to the host.
How the Storage is Used With VirtualBox (Oracle Solaris) and Hyper-V Desktop Providers
Each virtual disk is created as a thin-provisioned (sparse) ZFS volume in the ZFS pool and each ZFS
volume is configured as an iSCSI target on the storage host. Oracle VDI uses either the Sun ZFS Storage
Software command line (Sun ZFS Storage Appliances) or ZFS commands (Oracle Solaris hosts) to
perform this configuration.
When a user requests a desktop, Oracle VDI registers a virtual machine with a virtualization host and
this includes the iSCSI target address of the ZFS volume. When the desktop is started, iSCSI is used to
connect the desktop to its virtual disk, as shown in Figure 4.2.
75
Sun ZFS Storage
Figure 4.2. Sun ZFS Storage and VirtualBox on Oracle Solaris Platforms
A single thin-provisioned (sparse) ZFS volume is configured in the ZFS pool and the ZFS volume is
configured as an iSCSI target on the storage host. Oracle VDI uses either the Sun ZFS Storage Software
command line (Sun ZFS Storage Appliances) or ZFS commands (Oracle Solaris hosts) to perform this
configuration. On the virtualization hosts, Oracle VDI uses iSCSI to connect to the ZFS volume on the
storage host. The volume is formatted using the OCSF2 file system and mounted at /vdi on all the
virtualization hosts. The virtual disks are then created in the shared file system using the VirtualBox
command line.
When a user requests a desktop, Oracle VDI registers a virtual machine with a virtualization host and this
includes the path to the virtual disk in the mounted OCFS2 file system as shown in Figure 4.3.
76
Preparing Sun ZFS and iSCSI Storage
Figure 4.3. Sun ZFS Storage and VirtualBox on Oracle Linux Platforms
Follow the instructions in the Sun ZFS Storage Appliance Installation Guide.
Update the Sun ZFS Storage Appliance software to get important performance enhancements. See
Section 4.6.5, “Sun ZFS Storage” for the supported software releases.
3. Create a project.
You do not need to create a separate ZFS pool for use with Oracle VDI because only the default pool is
supported. Instead you use a project to separate the data.
Project names must be unique. If you are using a storage cluster, using a project name that exists on
both heads causes Oracle VDI to fail in the event of failover.
77
Replicating and Replacing a Sun ZFS Storage Appliance
A storage cluster introduces redundancy for the server components of a storage including CPU, memory,
main board, network cards, but does not increase the redundancy of the disks or their controllers. That is
provided by the JBODS and the RAID levels used.
The two storage servers in the cluster (called "heads") are connected over a special card, the Clustron,
which allows the heads to exchange state and configuration information and to detect a failed head.
A resource is a core concept of clustering, and is typically either a network interface or a storage pool. To
ensure availability, the resource is taken over by a head if the other head fails.
The main configuration steps when setting up a cluster are to define the resources, which is performed
the same way as in a single setup (Configuration, Storage or Configuration, Network), and to assign a
head as the resource owner (Configuration, Cluster).
A cluster is called "active-passive" if only one head owns all resources. A cluster is called "active-active"
if both heads own resources. While the performance of an active-passive cluster does not degrade if one
head fails, both heads of an active-active cluster are actively processing requests during normal operation
resulting in a better utilization of the available hardware.
Identical hardware available on both storages can only be used to create one resource owned by one
head. For example, if you configure a 192.168.100.100 interface using the nge0 device and assign head1
as its owner, head2 will use its nge0 device to take over the 192.168.100.100 interface in case head1 fails.
To be able to do so the nge0 device must be unused on head2.
Another constraint about clustered interfaces is that they must be statically configured. You cannot use
DHCP.
A typical setup for two storages with four network devices each and array:
Head1 Head2
nge0 owner -
nge1 owner -
nge2 - owner
nge3 - owner
Array 1 owner -
Array 2 - owner
For more information about clustering, see Cluster in the Sun ZFS Storage 7000 System Administration
Guide
Preparation
Configure the Sun ZFS Storage Appliance for replication and replicate it. Replication is a built-in feature,
and can be configured from the Sun ZFS Storage Appliance browser user interface (BUI). The following
steps are valid for 2010.Q1 software and later.
78
Setting Up an Oracle Solaris ZFS Storage
1. Add the target storage for the replication to the Remote Replication service. Go to Configuration,
then Services.
2. Add a replication action to the project. Go to Shares, Projects, project, then Replication. The
Include Snapshots option must be selected.
The ZFS structures are now replicated to the target storage as replication package.
Disaster Recovery
If a storage server fails, use the procedure below to replace and re-enable the storage server.
c. Go to the Storage tab, select the storage server, and click Maintenance.
d. Choose a time for the server to begin entering maintenance, or click Now to select the current time.
2. In the Sun ZFS Storage Appliance BUI, convert the replication package to a local project.
d. Select the storage server to be replaced and click Replace to activate the Replace Storage wizard.
Enter information about the new storage (replication target).
e. Select the new storage and click Edit to activate the Edit Storage wizard.
Steps
1. Install the Oracle Solaris operating system.
The Oracle Solaris installer gives you the choice of using UFS or ZFS for the root file system. If the host
has only one disk, choose ZFS. If host has multiple disks and the other disks are exclusively used for
the Oracle VDI ZFS pools, either of the two choices is fine.
79
Replicating and Replacing an Oracle Solaris ZFS Storage
b. Restart the SSHD service to implement the changes you made to the sshd_config file.
# svcadm restart ssh
If ZFS was selected during installation, the Oracle Solaris OS installer created a pool named rpool.
This pool contains the root file systems and can also be used by Oracle VDI. Create a dedicated pool to
separate the Oracle VDI data from the Oracle Solaris file systems.
# zpool create pool name disk1 disk2 disk3 ...
Run the following command as root on the Oracle Solaris OS storage server.
# svcadm enable svc:/system/iscsitgt:default
Preparation
Replicate the Oracle Solaris storage on another host.
4. Delete all ZFS snapshots on the original and new storage servers.
Disaster Recovery
If a storage server fails, use this procedure to replace the storage server.
80
Setting Up an iSCSI Target on Sun ZFS Systems
e. Choose a time for the server to begin entering maintenance, or click Now to select the current time.
b. Select the storage server to be replaced and click Replace to activate the Replace Storage wizard.
d. Select the new storage and click Edit to activate the Edit Storage wizard.
a. Click iSCSI Targets and then click the Add button (+).
e. Click OK.
81
Setting Up an iSCSI Target on Sun ZFS Systems
Make a note of the iSCSI Qualified Name (IQN) of the iSCSI target, you need the IQN when you
configure the storage for a desktop provider.
a. Drag and drop the new iSCSI target to the iSCSI Target Groups list.
You can create a new group for the target or add it to an existing group.
5. In the navigation area, click Shares, and then click Shares if this page is not already selected.
The volume must be big enough to contain all the virtual disks for all desktop providers that use the
storage.
f. From the Target Group list, select the iSCSI target group to which the iSCSI volume belongs.
a. Double-click the name of the LUN or click the Pencil icon to the right of the LUN name.
You need the LUN number when you configure the storage for a desktop provider.
For example:
82
Creating Desktop Providers
For example:
# zfs set shareiscsi=on vdipool/vdi-disks
4. Use the iscsitadm list target command to obtain the details of the iSCSI target.
# iscsitadm list target
Target: vdipool/vdi-disks
iSCSI Name: iqn.1986-03.com.sun:02:f3510986-6ed5-ca3e-bc25-a25e2056e5a7
Connections: 0
Make a note of the details. When you configure the storage in Oracle VDI, use the iSCSI Name for the
Target and use 0 as the LU Number.
Desktop providers can also be configured to run a specified number of synchronous desktop cloning and
recycling jobs during and outside of specified peak hours. See Section 5.5.10.2, “Setting Peak Times for
Desktop Providers” for details.
Oracle VM VirtualBox desktop providers require storage as well virtualization hosts. See Section 4.6.1,
“Introduction to Storage” for details of the supported storage types and the preparation required for use
with Oracle VDI.
Oracle VDI Manager Steps
a. In the Host field, enter the fully-qualified DNS name or IP address of the VirtualBox host.
b. In the SSL Port field, enter the port number to use for SSL communication with the VirtualBox host.
83
Creating an Oracle VM VirtualBox Desktop Provider
This is the port that was specified when VirtualBox was installed. The default SSL port is either port
443 or 18083, depending on whether the root user is used to run VirtualBox on the host.
c. In the SSH Port field, enter the port number used for SSH connections to the VirtualBox host.
d. In the User Name and Password fields, enter the credentials of the user that runs VirtualBox on
the host.
The credentials must be for the user that was specified when VirtualBox was installed on the host,
typically root.
e. On the Verify Certificate step, check that the SSH and SSL certificate details are correct.
This is an important security step that ensures you are adding a genuine VirtualBox host to the
desktop provider.
6. To add more VirtualBox hosts, select Specify New Host and enter the host details as shown in step 5.
Otherwise, select Select Existing Hosts.
The following are the restrictions on how the supported storage types can be used:
• The iSCSI storage type can only be used with Oracle Linux virtualization hosts.
• With Oracle Solaris virtualization hosts, you cannot mix Sun ZFS storage with any other storage type.
• You cannot mix local storage with any other storage type.
b. In the Storage field, enter the fully-qualified DNS name or IP address of the storage.
c. In the SSH Port field, enter the port number used for SSH connections to the storage.
d. In the User Name and Password fields, enter the credentials of a user with root access to the
storage.
e. On the Verify Certificate step, check that the SSH certificate details are correct.
This is an important security step that ensures you are adding a genuine storage host to the
desktop provider.
f. On the Select ZFS Pool step, from the ZFS Pool list, click the name of a ZFS pool.
iSCSI Storage
b. In the Storage field, enter the fully-qualified DNS name or IP address of the storage.
84
Creating an Oracle VM VirtualBox Desktop Provider
c. In the Target field, enter the iSCSI Qualified Name (IQN) of the iSCSI volume.
d. In the LU Number field, enter the logical unit number of the iSCSI volume.
c. In the Path field, enter the mount point of the storage on the virtualization hosts.
Local Storage
b. In the Path field, enter the path to the storage on the virtualization hosts.
Once you add the storage, the Specify Hosts step is displayed again.
8. To add more storage, select Specify New Storage and enter the storage details as shown in step 7.
Otherwise, select Select Existing Hosts.
9. On the Define Desktop Provider step, enter the desktop provider details.
b. (Optional) In the Comments field, enter any notes about the desktop provider.
10. On the Review step, check the configuration of the desktop provider and click Finish.
If you add local storage and the desktop provider contains multiple virtualization hosts, Oracle VDI
automatically creates a local storage for each virtualization host so that the free space and number of
desktops can be monitored.
Caution
When you first add a storage for a desktop provider that has Oracle Linux
virtualization hosts, a critical alert might be displayed in Oracle VDI Manager
and the alert might take some time to clear. This is because Oracle VDI formats
the configured storage using Oracle Cluster File System version 2 (OCFS2) and
this might take a while, depending on the size of the volume.
You must add at least one VirtualBox host to the desktop provider before you can add storage.
85
Creating an Oracle VM VirtualBox Desktop Provider
The following are the restrictions on how the supported storage types can be used:
• The iSCSI storage type can only be used with Oracle Linux virtualization hosts.
• With Oracle Solaris virtualization hosts, you cannot mix Sun ZFS storage with any other storage type.
• You cannot mix local storage with any other storage type.
/opt/SUNWvda/sbin/vda provider-add-storage-zfs -p \
host=host,username=username,zfspool=zfspool provider
iSCSI storage:
/opt/SUNWvda/sbin/vda provider-add-storage-iscsi -p \
host=host,target=target,lu-number=lu-number provider
/opt/SUNWvda/sbin/vda provider-add-storage-networkfs -p \
host=host,path=path provider
Local storage:
/opt/SUNWvda/sbin/vda provider-add-storage-local -p \
path=path provider
If you add local storage and the desktop provider contains multiple virtualization hosts, Oracle VDI
automatically creates a local storage for each virtualization host so that the free space and number of
desktops can be monitored on each host.
Caution
When you first add a storage for a desktop provider that has Oracle Linux
virtualization hosts, the status of the provider might be displayed as critical and
it might take some time for the critical status to clear. This is because Oracle
VDI formats the configured storage using Oracle Cluster File System version 2
(OCFS2) and this might take a while, depending on the size of the volume.
The following example creates an Oracle VM VirtualBox desktop provider with two hosts and one iSCSI
storage.
/opt/SUNWvda/sbin/vda provider-add-host -p \
host=vb1.example.com,username=root "VB provider"
/opt/SUNWvda/sbin/vda provider-add-host -p \
host=vb2.example.com,port=443,username=root "VB provider"
/opt/SUNWvda/sbin/vda provider-add-storage-iscsi -p \
host=192.168.0.1,target=iqn.1986-03.com.sun:02:a5e94e8d-03b8-e50e-9b67,lu-number=12 \
"VB provider"
86
Creating a Microsoft Hyper-V Desktop Provider
a. In the Host field, enter the fully-qualified DNS name or IP address of the Hyper-V host.
b. In the SSL Port field, enter the port number to use for SSL communication with the Hyper-V host.
This is the port configured on the host for Windows Remote Management (WinRM). The default
SSL port is port 443.
c. In the User Name and Password boxes, enter the credentials of a user with administrative
privileges on the Hyper-V host.
d. On the Verify Certificate step, check that the SSL certificate details are correct.
This is an important security step that ensures you are adding a genuine Hyper-V host to the
desktop provider.
6. To add more Microsoft Hyper-V hosts, select Specify New Host and enter the host details as shown in
step 5. Otherwise, select Select Existing Hosts.
a. In the Storage field, enter the fully-qualified DNS name or IP address of the storage.
b. In the SSH Port field, enter the port number used for SSH connections to the storage.
c. In the User Name and Password boxes, enter the credentials of a user with root access to the
storage.
d. On the Verify Certificate step, check that the SSH certificate details are correct.
This is an important security step that ensures you are adding a genuine storage host to the
desktop provider.
e. On the Select ZFS Pool step, from the ZFS Pool list, click the name of a ZFS pool.
Once you add the storage, the Specify Hosts step is displayed again.
8. To add more storage , select Specify New Storage and enter the storage details as shown in step 7.
Otherwise, select Select Existing Hosts.
9. On the Define Desktop Provider step, enter the desktop provider details.
87
Creating a Microsoft Remote Desktop Provider
b. (Optional) In the Comments field, enter any notes about the desktop provider.
10. On the Review step, check the configuration of the desktop provider and click Finish.
/opt/SUNWvda/sbin/vda provider-add-host -p \
host=host,username=username provider
/opt/SUNWvda/sbin/vda provider-add-storage-zfs -p \
host=host,username=username,zfspool=zfspool provider
The following example creates a Microsoft Hyper-V desktop provider with two hosts and one storage.
/opt/SUNWvda/sbin/vda provider-add-host -p \
host=my.first.hyv.com,port=443,username=root "HyV provider"
/opt/SUNWvda/sbin/vda provider-add-host -p \
host=my.second.hyv.com,port=443,username=root "HyV provider"
/opt/SUNWvda/sbin/vda provider-add-storage -p \
host=my.zfs.com,username=root,zfspool=vda_zfspool "HyV provider"
Follow these steps to configure a desktop provider that contains either of the following:
• Individual RDS hosts with WinRM configured and there is no RDS farm.
• A farm of RDS hosts and WinRM is configured on each RDS host in the farm.
1. In Oracle VDI Manager, select Desktop Providers from the navigation tree.
88
Creating a Microsoft Remote Desktop Provider
3. On the Select Desktop Provider Type step, select Microsoft Remote Desktop.
a. In the Host field, enter the fully-qualified DNS name or IP address of the RDS host.
b. In the SSL Port field, enter the port number to use for SSL communication with the RDS host.
c. In the User Name and Password boxes, enter the credentials of an Administrator on the RDS host.
d. On the Verify Certificate step, check that the MD5 fingerprint matches the fingerprint of the SSL
certificate for the RDS host.
This is an important security step that ensures you are adding a genuine RDS host to the desktop
provider.
6. To add more RDS hosts, select Specify New Host and repeat step 5. Otherwise, select Select
Existing Hosts.
7. On the Define Desktop Provider step, enter the desktop provider details.
b. (Optional) In the Comments field, enter any notes about the desktop provider.
8. On the Review step, check the configuration of the desktop provider and click Finish.
9. Specify the host name or IP address, SSL port, and administrator credentials for each RDS host.
The username property is the user name of an Administrator on the RDS host. You are prompted
for the password. If a non-standard port is used for SSL communication with the RDS host, you must
specify the port number using the port=port property.
The following example creates a Microsoft Remote Desktop provider named "RDS Sessions and adds
a single RDS host.
/opt/SUNWvda/sbin/vda provider-ts-create -p name="RDS Sessions"
/opt/SUNWvda/sbin/vda provider-add-host -p \
89
Creating a VMware vCenter Desktop Provider
• A single RDS host without WinRM configured and there is no RDS farm.
• A farm of RDS hosts and WinRM is not configured on each RDS host in the farm.
1. In Oracle VDI Manager, select Desktop Providers from the navigation tree.
3. On the Select Desktop Provider Type step, select Microsoft Remote Desktop.
4. On the Specify Hosts step, select Specify Remote Desktop Server Farm.
5. On the Specify Remote Desktop Server Farm step, enter the fully-qualified DNS name or IP address of
the RDS farm in the Farm Name field.
6. On the Define Desktop Provider step, enter the desktop provider details.
b. (Optional) In the Comments field, enter any notes about the desktop provider.
7. On the Review step, check the configuration of the desktop provider and click Finish.
3. The following example creates a desktop provider named "RDS farm" for the farm
rdsfarm.example.com.
/opt/SUNWvda/sbin/vda provider-ts-create -p name="RDS farm"
2. In the Desktop Providers table, and click New to activate the New Desktop Provider wizard.
The wizard enables you to add multiple hosts and multiple storages in a loop.
90
Creating a Sun Ray Kiosk Desktop Provider
Once you click Finish, the new desktop provider appears appear in the Oracle VDI Manager.
The New Desktop Provider wizard requires different information depending on the virtualization
platform in use. For example, most desktop providers require a host IP address and administrator
credentials. Oracle VDI or Microsoft Hyper-V desktop providers require a host and a storage.
You can view the VMware vCenter resource details, including data centers, VMware clusters, and
datastores.
1. In Oracle VDI Manager, select Desktop Providers from the navigation tree.
3. On the Select Desktop Provider Type step, select Sun Ray Kiosk.
4. On the Select Kiosk Session Type step, select a Sun Ray kiosk session type in the Session Type list.
5. On the Define Desktop Provider step, enter the desktop provider details.
b. (Optional) In the Comments field, enter any notes about the desktop provider.
6. On the Review step, check the configuration of the desktop provider and click Finish.
The following example creates a Sun Ray Kiosk desktop provider named "VMWare View Provider" that
uses the VMWare View Manager Session kiosk session.
91
Creating a Generic Desktop Provider
1. In Oracle VDI Manager, select Desktop Providers from the navigation tree.
4. On the Define Desktop Provider step, enter the desktop provider details.
b. (Optional) In the Comments field, enter any notes about the desktop provider.
5. On the Review step, check the configuration of the desktop provider and click Finish.
92
Chapter 5. Configuring Pools and Desktops
Table of Contents
5.1. About Pools ............................................................................................................................... 94
5.1.1. Creating Desktop Pools ................................................................................................... 94
5.1.2. Choosing Between VRDP and MS-RDP ........................................................................... 95
5.1.3. Configuring Pool Networks .............................................................................................. 99
5.1.4. Configuring Pool RDP Options ....................................................................................... 100
5.1.5. Enabling USB Redirection ............................................................................................. 104
5.1.6. Configuring Smart Card Removal ................................................................................... 106
5.1.7. Configuring Kiosk Settings (Sun Ray Kiosk Provider) ...................................................... 106
5.1.8. Using the NetBIOS Name to Log In to Windows Desktops ............................................... 107
5.1.9. Location Awareness ...................................................................................................... 107
5.2. About Desktops and Templates ................................................................................................ 108
5.2.1. Supported Desktop Operating Systems .......................................................................... 109
5.2.2. About Templates and Revisions ..................................................................................... 110
5.2.3. About Desktop and Virtual Machine States ..................................................................... 111
5.3. Creating Desktop Images ......................................................................................................... 114
5.3.1. Creating Virtual Machines (Oracle VM VirtualBox) ........................................................... 114
5.3.2. Creating Virtual Machines (VMware vCenter) .................................................................. 116
5.3.3. Creating Virtual Machines (Microsoft Hyper-V) ................................................................ 118
5.4. Importing Desktops .................................................................................................................. 120
5.4.1. Importing Desktops (Oracle VM VirtualBox) .................................................................... 120
5.4.2. Importing Desktops (VMware vCenter) ........................................................................... 121
5.4.3. Importing Desktops (Microsoft Hyper-V) ......................................................................... 122
5.4.4. Importing Individual Windows PCs ................................................................................. 122
5.4.5. About Template Management ........................................................................................ 123
5.5. Cloning Desktops ..................................................................................................................... 124
5.5.1. Cloning Desktops (Oracle VM VirtualBox) ....................................................................... 124
5.5.2. Cloning Desktops (VMware vCenter) .............................................................................. 125
5.5.3. Enabling VMware Linked Cloning ................................................................................... 126
5.5.4. Cloning Desktops (Microsoft Hyper-V) ............................................................................ 127
5.5.5. About Clone Customization ............................................................................................ 128
5.5.6. Debugging Fast Preparation Problems ........................................................................... 128
5.5.7. Enabling Oracle VDI Fast Preparation for Windows Templates (Oracle VM VirtualBox and
Microsoft Hyper-V) .................................................................................................................. 129
5.5.8. Enabling System Preparation for Windows Templates (Oracle VM VirtualBox and
Microsoft Hyper-V) .................................................................................................................. 130
5.5.9. About Personal Hard Drives and Windows User Profiles ................................................. 132
5.5.10. Clone and Recycle Job Management ........................................................................... 134
5.6. Application Virtualization with Microsoft App-V ........................................................................... 135
5.6.1. App-V Repository Lifecycle ............................................................................................ 135
5.6.2. Creating an App-V Repository ....................................................................................... 136
5.7. Assigning Users to Desktops .................................................................................................... 138
5.7.1. Assigning Users to Pools or Desktops ............................................................................ 138
5.7.2. Creating Custom Groups and Custom Group Filters ........................................................ 139
5.7.3. Assigning Tokens to Users ............................................................................................ 140
5.7.4. Assigning Tokens to Desktops or Pools ......................................................................... 141
5.7.5. Creating Tokens in Bulk ................................................................................................ 142
5.7.6. Searching for Desktops ................................................................................................. 143
93
About Pools
Note
Only one pool can be created for each Microsoft Remote Desktop provider.
2. Select a company.
a. For Oracle VM VirtualBox and Microsoft Hyper-V desktop providers, choose one of the following
pool types:
• Dynamic pools are filled with cloned flexible desktops. If you choose the Dynamic Pool type, the
desktops in the pool are temporarily assigned to users. They are recycled each time the user
logs out. This pool type is considered dynamic because the user-desktop assignments are often
changing.
• Growing pools are filled with cloned personal desktops. If you choose the Growing Pool type, the
desktops in the pool are permanently assigned to users. Users can log in and out without losing
their desktop settings. The desktops are not recycled.
• Manual pools are initially empty. They are filled manually by importing personal desktops. The
Manual Pool type should be used if cloned desktop assignment is not an option.
Note
• Create a pool.
/opt/SUNWvda/sbin/vda pool-create -p name=pool-name,provider=provider-name
• Example - Creates a pool for a VMware vCenter desktop provider and specifies a template to fill the
pool from.
/opt/SUNWvda/sbin/vda provider-list-templates "VC provider"
NAME ID PATH
94
Choosing Between VRDP and MS-RDP
/opt/SUNWvda/sbin/vda pool-create -p \
name="VC pool",provider="VC provider",template=vm-134,preferred-size=30,\
free-size=5,max-size=35,power-state=on,assignment-type=flexible,\
recycle-policy=reuse,idle-timeout=2
VRDP enables Oracle VDI to connect to desktops at the virtual machine level. This characteristic enables
users to watch a virtual machine boot in the same way as a real computer, and desktop sessions appear to
start faster.
With MS-RDP, Oracle VDI connects at the operating system level. Users are not able to watch the virtual
machine boot, and the desktop sessions appear to start slower because you have to wait for the virtual
machine to boot and be ready to accept RDP connections.
The RDP protocol selected for a pool has the following implications:
With VRDP, virtual desktops can run Windows, Linux and Solaris. MS-RDP only supports Windows
desktops. For more information, see Section 5.2.1, “Supported Desktop Operating Systems”.
• Desktop networking
Desktops can connect to the external network using either network address translation (NAT) networking
or host networking (bridged networking).
NAT networking is the simplest way of connecting desktops to an external network. NAT networking
does not require any configuration on the host network or in the desktop, and desktops are not
accessible from other computers on the network.
Desktops that use host networking are like real computers, they require configuration on the host
network or in the desktop, and are accessible from other computers on the network.
Table 5.1 compares client device features, such as audio recording, supported by each protocol. Pay
particular attention to the notes that follow the table.
The client device and virtual machine configuration also influence which client device features can be
used for a virtual desktop. For more information, see Section 6.1, “About Desktop Access”.
The selected protocol can affect the peripherals that can be used with virtual desktops. For the latest list
of tested peripherals, see the Sun Ray Client and Oracle Virtual Desktop Client Peripherals List.
For Oracle VM VirtualBox desktops, you can use either VRDP or MS-RDP. You select the required
protocol and networking method in the network settings for the pool, see Section 5.1.3, “Configuring Pool
Networks”. By default, pools are configured to use VRDP and NAT networking. To use MS-RDP, you must
select host networking. For all other desktop providers, MS-RDP and host networking is used.
95
Choosing Between VRDP and MS-RDP
For detailed information of the features listed in the above table, and information on using MS-RDP and the
Sun Ray Windows connector, see Windows Connector in the Sun Ray Software Administration Guide.
For detailed information on VRDP, see Remote Virtual Machines in the Oracle VM VirtualBox
documentation.
96
Choosing Between VRDP and MS-RDP
“Configuring Pool RDP Options”. The performance settings control things such as the color depth, the
mouse shadow, and window and menu animations. However, if the VRDP protocol is used to connect to
desktops, these settings have no effect, because VRDP connects at the machine level rather than the
operating system level.
Audio input is disabled by default. You enable it in the RDP options for a pool, see Section 5.1.4,
“Configuring Pool RDP Options” for details.
For Windows 7, audio recording is only available in Windows 7 Ultimate and Enterprise editions. To enable
audio recording, you might have to edit a Windows registry setting, see http://support.microsoft.com/
kb/2020918 for details.
For Windows XP and Windows Server 2003, audio recording (input audio) is supported for Sun Ray
Clients. To enable support for audio recording, you must install the audio input component of the Sun Ray
Windows connector in the template or desktop. See How to Install the Windows Connector Components on
a Windows System in the Sun Ray Software Administration Guide for details.
Multi-Monitor
For Windows 7, if Microsoft RDP is selected as the desktop protocol, multi-monitor support is only available
in Windows 7 Ultimate and Enterprise editions. Windows 7 Professional does support a single desktop
spanned across multiple monitors (spanned mode). See the article Using Multiple Monitors in a Remote
Desktop Session for details.
For multi-monitor support with VRDP, Oracle VDI runs a separate instance of the Sun Ray Windows
connector for each monitor connection.
For multi-monitor support with MS-RDP, Oracle VDI runs one instance of the Sun Ray Windows connector
for each Oracle VDI session.
Oracle VDI provides additional security for VRDP connections by setting a one-time password. Without the
correct user name and one-time password, an RDP client fails to connect.
For VRDP, smart card redirection is supported for Windows desktops only. VirtualBox supports smart
cards by emulating a USB smart card reader, the SCR335 USB Smart Card Reader device. For Windows
7 and later desktops, the drivers for this device can be installed automatically using Windows Update when
the device is detected. For Windows XP desktops, the device drivers must be installed manually. To avoid
driver issues, you can install the device drivers in the template or desktop. You can download the drivers
from:
http://support.identive-infrastructure.com/download_scm/download_scm.php?lang=1
97
Choosing Between VRDP and MS-RDP
On the download page, select the SCR335 device and the required operating
system, browse for the SCR3xxx PC/SC Installer, and then download the
SCR3xxx_Win_drivers_only_installer_V<version>.zip file.
To configure support for video acceleration for Sun Ray Clients when MS-RDP is selected as the desktop
protocol, you must install the following components of the Sun Ray Windows connector in the template or
desktop:
• Multimedia redirection: This component provides enhanced performance for Windows Media Player.
• Adobe Flash acceleration: This component provides enhanced playback capabilities for Adobe Flash
content.
• Audio/video synchronization: This component provides enhanced audio and video synchronization for
multimedia content
The multimedia redirection and audio/video synchronization components are only supported on Windows
XP and Windows Server 2003 only.
For detailed information on how to install the components, see How to Install the Windows Connector
Components on a Windows System in the Sun Ray Software Administration Guide.
For detailed information about the Sun Ray Windows connector components, see Windows Connector in
the Sun Ray Software Administration Guide.
The Video Redirection feature is supported for any supported desktop that uses VRDP and accessed from
a Sun Ray Client, or a client that supports RDP version 7. On Sun Ray Clients, the M-JPEG video streams
are delivered through the SunFlash channel.
98
Configuring Pool Networks
Media formats supported by this feature are: H.264, VC-1 (WMV3), MPEG-1/2, WMA, MP3, AAC.
To enable this feature, you must install the VirtualBox Guest Additions on the Windows 7 SP1 desktop
with the /with_vboxmmr option. The required codecs for this feature are included in the Oracle Virtual
Desktop Client and Sun Ray Client, so no additional user action is required in a typical Oracle VDI
deployment.
Note
When you disconnect from a VRDP session, any Windows Media Player instances
with open files redirected to an RDP client exit.
Configuration of networks is performed at the desktop provider level and at the pool level:
Each subnet available on either an VirtualBox or Microsoft Hyper-V host is identified by a unique label.
By default this label is the subnet address, but it can be changed in the Network tab for the desktop
provider.
When a host is added to a desktop provider, Oracle VDI detects the subnets available on that host and
update the Network table accordingly.
If a subnet is not available on any of the hosts in a provider, Oracle VDI displays a warning.
You can view the list of subnets available for a specific host by selecting that host in the Host tab for
the desktop provider. If you make changes to the networking on a host, click the Refresh button in the
Network tab so that Oracle VDI can rescan the subnets available on the host.
When a pool is created, Oracle VDI checks whether any networks are available on all hosts for the
desktop provider of the pool, and it assigns one of these networks to the pool.
If no networks are available on all hosts for the provider, the administrator must explicitly specify a
network to be used by the pool through the Settings tab for the pool.
When desktops are imported or cloned in a pool, Oracle VDI creates a network device on the desktop
and configure that device to be in the networks that have been enabled for the pool.
If more than one network has been configured for the pool, Oracle VDI uses the network that has been
configured as the primary network when trying to establish an RDP connection to the desktop. The
primary network for a pool can be configured in the Settings tab.
For Oracle VM VirtualBox pools, the Pool Network Configuration feature is only available if Host
Networking is being used.
99
Configuring Pool RDP Options
The default behavior for VMware vCenter pools is to use the network configuration stored with your
VMware vCenter templates and virtual machines.
You can override this behavior for a given pool by enabling the use customized network settings in the
pool's Settings tab.
If you change Oracle VM VirtualBox pool settings from NAT networking to Host Networking and MS-RDP,
existing running desktops must be restarted or else subsequent user requests for these desktops fail.
Existing running desktops do not have a public IP address. After the pools settings have been changed,
subsequent requests for that desktop attempt to access the desktop using the private and inaccessible
NAT IP.
Oracle VDI Manager Steps
2. Select a pool.
3. Go to the Settings tab to specify which networks are configured on the desktops in the pool.
For each network selected, a network adapter is created for new desktops in that pool.
• Rename or refresh the desktop provider network list - Select the Desktop Providers category, and select
the Oracle VM VirtualBox or Microsoft Hyper-V desktop provider of interest. Select the Network tab to
see the network(s) configured on the desktop provider. After making changes to the networking on an
VirtualBox or Microsoft Hyper-V host, click the Refresh button to rescan the network list for the provider.
• View a read-only list of the networks on a specific host - Go to the Desktop Providers category, and
select a desktop provider. Then select the host in the Host tab.
• VMware vCenter networks are not accessible in the Desktop Providers category. You can create and
manage networks using VMware vCenter management tools instead.
The options used by default for the Sun Ray Windows connector (uttsc) are:
Use the following steps to configure additional RDP options for the pool.
Oracle VDI Manager Steps
100
Configuring Pool RDP Options
3. In the Sun Ray section, click Edit Sun Ray RDP Settings.
See Section 5.1.4.1, “Pool Sun Ray RDP Settings” for an explanation of the settings.
5. Click Back.
7. Click Save.
Oracle VDI enables you to configure a subset of these options for a pool. The following tables list the
supported options. For a full list of Sun Ray Windows connector settings, see the man page for the uttsc
command (man -M /opt/SUNWuttsc/man uttsc). For details of how other options can be used, see
Section 6.2.1, “About the Oracle VDI Sun Ray Kiosk Session”.
The options that can actually be used for a virtual desktop depend on the RDP protocol selected for the
pool, the desktop operating system, and the configuration of the virtual desktop itself. For more information,
see:
If the VRDP protocol is used to connect to desktops, the performance settings that control things such as
the color depth, the mouse shadow, and window and menu animations have no effect, because VRDP
connects at the machine level rather than the operating system level.
101
Configuring Pool RDP Options
Valid values for this setting include All Sun and PC USB
Keyboards, Sun Type6 Japanese Keyboard, and Sun
Korean Keyboard.
Hotdesking Use this setting to configure the disconnection and If Device Client Access License
reconnection behavior for RDP sessions when Mode is configured, RDP
hotdesking occurs. sessions are disconnected and
reconnected.
102
Configuring Pool RDP Options
103
Enabling USB Redirection
a. In order to use USB 2.0 devices, ensure that a USB 2.0 (EHCI) controller is enabled in the virtual
machine template.
b. Add additional USB drivers for virtual machine templates created in VMware vCenter or Microsoft
Hyper-V.
104
Enabling USB Redirection
See How to Add USB Drivers to a Virtual Machine in the Sun Ray Software Administration Guide for
details of how to do this.
c. Installing the USB redirection component of the Sun Ray Windows connector connector.
This step is only required if the MS-RDP protocol is used to connect to virtual machines.
See How to Install the Windows Connector Components on a Windows System in the Sun Ray
Software Administration Guide for details of how to do this.
2. Import the prepared virtual machine as a template into the Oracle VDI host.
3. (Optional) Check that the USB 2.0 (EHCI) controller is enabled in the template.
b. Click the Template tab and in the Templates table, click the name of the template.
b. Click the Settings tab and in the Sun Ray Client section, click Edit Sun Ray RDP Settings.
f. Click Save.
105
Configuring Smart Card Removal
c. Choose Computer, Properties, Hardware, and then Device manager to see whether the device is
listed under USB Serial Bus Controllers.
Recycling is applied only to desktops that have flexible assignments. Choosing the recycle option for your
Smart Card Removal Policy has no effect on personally assigned desktops.
Oracle VDI Manager Steps
3. In the Sun Ray section, indicate the action you want to be associated with removal of smart cards from
thin clients using the Action on Card Removal menu.
• No Action - Select if you want Oracle VDI to ignore smart card removals.
4. Specify the number of seconds a smart card must be removed from a thin client before any action
should be taken in the Delay Action field.
5. Click Save.
• Specify the length of time (in seconds) that a smart card must be removed before the action is
performed.
/opt/SUNWvda/sbin/vda pool-setprops -p card-removed-timeout=secs pool-name
In the following example, the desktop suspend action should be performed after a smart card has been
removed for 30 seconds is configured.
/opt/SUNWvda/sbin/vda pool-setprops -p \
card-removed=suspend,card-removed-timeout=30 MyPool
106
Using the NetBIOS Name to Log In to Windows Desktops
Kiosk session arguments are provided as text using a command line syntax. The settings can be
configured using Oracle VDI Manager or the command line.
Each kiosk session type defines what options and arguments it supports. The specified arguments override
any default arguments defined by the kiosk session type. For more information, see Kiosk Mode in the Sun
Ray Software Administration Guide and the documentation for the specific kiosk session type.
See Section 4.4, “Sun Ray Kiosk Desktop Providers” for more details about Sun Ray kiosk sessions.
Oracle VDI Manager Steps
3. In the Kiosk Settings field, type the arguments to pass to the kiosk session.
4. Click Save.
In the following example, settings are configured for a Sun Ray VMware View connector kiosk session.
/opt/SUNWvda/sbin/vda pool-setprops -p \
kiosk-settings="-s myvdmserver.domain -https -- -E theming" "VDM-Pool"
If you need users to log in to desktops using the NetBIOS name instead, this can be configured for a pool.
Oracle VDI Manager Steps
2. Click the Settings tab and then deselect Use Fully Qualified Domain Name.
3. Click Save.
1. Enable the use of the NetBIOS name for a pool using the vda pool-setprops command.
/opt/SUNWvda/sbin/vda pool-setprops -p fqdn-login=Disabled pool-name
• Obtain the unique client name after logging in or hotdesking. The client name is forwarded during
hotdesking.
107
About Desktops and Templates
• Set up actions through commands or scripts to execute in a Windows desktop or RDS session when the
associated client session disconnects and reconnects during hotdesking. Actions set up for reconnection
also occur at session startup.
Location awareness sets several environment variables, which can be used when actions are executed in
a Windows desktop. Table 5.6 lists the environment variables and the information they contain.
When a user logs in to a Windows desktop or reconnects to a desktop, the value of the
UTCINFO_CLIENTNAME variable is copied to the Windows CLIENTNAME environment variable and the
HKCU\Volatile Environment\CLIENTNAME registry key. These are set to the client ID of the Sun
Ray Client or Oracle Virtual Desktop Client, also known as the DTU ID. See Client ID Differences Between
Oracle Virtual Desktop Clients and Sun Ray Clients in the Sun Ray Software Administration Guide for more
details.
To use location awareness, an additional component must be installed on the Windows desktops or RDS
session hosts depending on the RDP protocol selected for the pool:
• For RDP, install the Client Information Agent using the Sun Ray Windows Components installer.
See How to Install the Windows Connector Components on a Windows System in the Sun Ray Software
Administration Guide for more details.
Once the additional component is installed, location awareness is enabled by default and is used
automatically when a Windows session starts.
You can use the variables in scripts or batch files to perform actions, for example to configure printers
depending on the client's location. The actions can be configured to run as Windows logon/logoff or
startup/shutdown scripts. If the Client Information Agent is installed, you can configure values in the
Windows registry that specify the actions that are performed automatically on session startup, session
disconnect, and session reconnect. See Setting Up Actions for a Windows Session in the Sun Ray
Software Administration Guide for more details.
For information on the methods available for obtaining the client name, see Obtaining a Client's Name in a
Windows Session in the Sun Ray Software Administration Guide.
108
Supported Desktop Operating Systems
• Oracle VM VirtualBox
• VMware Infrastructure
• Microsoft Hyper-V
Desktops may be created one-by-one for each user, but in most situations there are groups of users that
require the same applications. Oracle VDI allows you to prepare and use a desktop template, and clone
as many desktops as needed from the template. For more on templates, refer to the Section 5.2.2, “About
Templates and Revisions” section.
The supported desktops for Microsoft Remote Desktop provider are described in Section 4.2.4, “System
Requirements for Microsoft Remote Desktop Services”.
The features that can be used with a virtual desktop depend on the RDP protocol selected for the pool and
the method used to access Oracle VDI. For more information, see the following:
Windows 8 Support
Oracle VDI is tested on and supports Windows 8 Enterprise Edition. Other editions of Windows 8 can
be used, but in the event of an issue, you must be able to reproduce the issue in Windows 8 Enterprise
Edition.
If Microsoft RDP is selected as the desktop protocol, only Windows 8 Professional and Enterprise editions
can be used. If VirtualBox RDP is selected, all editions of Windows 8 can be used.
109
About Templates and Revisions
Windows 7 Support
Oracle VDI is tested on and supports Windows 7 SP1 Enterprise Edition. Other editions of Windows 7
can be used, but in the event of an issue, you must be able to reproduce the issue in Windows 7 SP1
Enterprise Edition.
If Microsoft RDP is selected as the desktop protocol, only Windows 7 Professional, Ultimate, or Enterprise
editions can be used. If VirtualBox RDP is selected, all editions of Windows 7 can be used.
If Microsoft RDP is selected as the desktop protocol, multiple monitor and audio recording (input audio)
are only available in Windows 7 Ultimate and Enterprise editions. Windows 7 Professional does support a
single desktop spanned across multiple monitors (spanned mode).
Each platform has slightly different requirements for selecting and managing templates. Oracle VDI
offers template management for Oracle VM VirtualBox and Microsoft Hyper-V desktop pools. VMware
Infrastructure, however, has its own template management conventions, so for this purpose, Oracle VDI
offers access to the list of available templates in VMware vCenter.
For Oracle VM VirtualBox and Microsoft Hyper-V desktop pools, Oracle VDI also offers template revisions.
Template revisions facilitate the proliferation of software updates and other changes to pools of cloned
desktops. Oracle VDI saves a revision history of your templates. You can use template revisions to add
software applications, to correct errors, and to provide fresh instances of a given desktop. You can also
test revisions before cloning on a large scale and revert to earlier revisions if needed.
Note
It is best to perform virus scanning on templates and the storage rather than on
individual desktops. Local virus scanning adversely affects desktop performance by
consuming both CPU and memory resources.
When a template is upgraded and declared as the new master revision, Oracle VDI deletes and replaces
desktops that are not assigned to a user and those desktops that are in an idle state (see Section 5.2.3.2,
“Desktop States” with a new version based on the new master template.
However, desktops that are in use at the time are not affected by the template revision mechanism until
the user logs out. When the user logs out, the desktop reverts to an idle state. At that point, the desktop is
deleted and replaced with a new version.
Nominating a new master for desktop cloning is not an immediate operation but rather a scheduled one.
You can set the date and time when existing desktops should be replaced, and you can determine whether
desktops in use are recreated at the scheduled time, or when the user logs out and the desktop returns
to an idle state. To avoid disrupting the work of connected users, be sure to schedule the master revision
change at a time when the load on the desktop pool is limited.
110
About Desktop and Virtual Machine States
Virtual machines are used to run the operating systems which render the desktops. They are controlled
by a hypervisor, such as Oracle VM VirtualBox, Microsoft Hyper-V, and VMware Infrastructure. They cycle
through traditional machine states such as powered off and running.
• Running
Running desktops are registered and started on a single hypervisor host. The host that a virtual machine
is running on can be determined using the Desktop Summary page in Oracle VDI Manager. A running
virtual machine is connected directly to the storage.
• Powered Off
Powered off virtual machines reside in two places in the Oracle VDI environment, the database and the
storage. The Oracle VDI database contains the desktop configuration information to register the desktop
on a hypervisor. The storage server contains the desktop's hard disk data.
Powered off virtual machines are typically not associated or registered on any hypervisor host. This
strategy enables Oracle VDI to select the best suited host on every start of a virtual machine. This setup
helps ensure a distribution of virtual machines across the available VirtualBox or Microsoft Hyper-V hosts
minimizing resource usage on each.
111
About Desktop and Virtual Machine States
• Suspended
• Unknown
This state typically indicates that either a VMware vCenter server cannot be contacted to retrieve the
state information, or a VirtualBox host returns null.
• Active or Disconnected
These machine states apply to Microsoft Remote Desktops only. Oracle VDI does not control the
machine state, just the connection to the desktop.
The following figure depicts a simplified version of the lifecycle of a flexibly assigned desktop.
A desktop is added to the database and then set to the Available state after being cloned from a
template. After becoming Available, the desktop is ready to be assigned to users. If the recycle policy is
set to Reuse Desktop or Reset to Snapshot, the desktop is returned to this state.
112
About Desktop and Virtual Machine States
The desktop is in this state whenever the desktop is assigned and the user is not using it, for example,
when the desktop is assigned and the user has not logged in yet or when the desktop is assigned and
the user just logged out. A desktop is recycled after it remains in that state for a configurable amount of
time.
The VMware vCenter desktop provider has two additional Idle states: when the desktop is assigned and
either the virtual machine is suspended or the guest OS goes into standby through the vCenter option
Keep VM Running on Guest OS Standby.
A desktop enters the Used state as soon as the user has logged in to the desktop. The desktop stays in
this state while the user logs in, uses the desktop, and logs out.
A desktop is Reserved when it is being worked on by Oracle VDI. This desktop state usually occurs
when the desktop is the source of a manual copy operation or the desktop is recycled. The desktop
becomes Available after leaving the Reserved state.
The desktop enters the Unresponsive state whenever Oracle VDI determines a severe problem with
the desktop. An unresponsive desktop is outside the desktop lifecycle and is either automatically
deleted (flexible desktops only) or it requires manual action by an administrator. See Section 5.2.3.3,
“Unresponsive Desktops” for more details.
Although a desktop's state is shown as Unresponsive, Oracle VDI actually differentiates between whether
the desktop is simply unresponsive, for example because the storage is unresponsive, or whether the
desktop is defective.
If the cause of the unresponsive or defective state is removed, for example because the storage becomes
responsive, the desktop is automatically returned to its normal state in the desktop lifecycle. This applies to
personal and flexible desktops.
If a flexible desktop is defective, the desktop remains in the Unresponsive state for 60 minutes and then it
is automatically deleted.
If a flexible desktop is unresponsive, the desktop remains in the Unresponsive state for the duration
specified by the unresponsive desktop timeout and then it is automatically deleted. The default
unresponsive desktop timeout is 30 minutes. The unresponsive desktop timeout is configurable, as follows:
/opt/SUNWvda/sbin/vda settings-setprops -p desktop.unresponsive.timeout=mins
The manual actions an Oracle VDI administrator can perform on a desktop in the Unresponsive state are:
• Fix the problem and activate the desktop, see Section 9.1.11, “Activating an Unresponsive Desktop”.
113
Creating Desktop Images
After creating the virtual machine and installing the desktop operating system, it is best to optimize the
desktop operating system for performance in a virtual machine. The guidelines in this section outline the
desktop image settings that maximize desktop performance in Oracle VDI. These are not requirements,
they are suggestions for better performance.
After installing Oracle VM VirtualBox, you can create your first virtual machine. It is possible to create
virtual machines on the server, or on a local installation of VirtualBox. If you choose to use a local
installation of VirtualBox to create virtual machines, be sure to use the same release as the version
supplied with Oracle VDI.
Steps
Be sure to choose the appropriate hard-disk and RAM space for the desired configuration.
• For Windows 7 and later, a minimum of 1024 MB RAM and 5723 MB hard disk are
recommended.
• For Windows XP, a minimum of 384 MB RAM and 4 GB hard disk are recommended.
For more information about virtual machine system requirements, refer to the Oracle VM VirtualBox
documentation
At this point you have an empty virtual machine, equivalent to a PC without an OS installed. The next
step is to choose the boot medium for the OS and install it.
d. Select the CD/DVD-ROM option in the left panel of the Settings dialog.
114
Creating Virtual Machines (Oracle VM VirtualBox)
At this point the new virtual machine must be started to trigger the OS installation.
h. Follow the installation prompts, or seek further installation details from the OS manufacturer.
The VirtualBox Guest Additions consist of device drivers and system applications that optimize the
operating system for better performance and usability. The Guest Additions can be installed with or
without support for additional features.
To install the Guest Additions with support for automated logons for Windows desktops (VRDP
connections only), the Guest Additions must be installed from the command line with the /
with_autologon option.
To install the Guest Additions with support for Windows media redirection for Windows 7 desktops
(VRDP connections only), the Guest Additions must be installed from the command line with the /
with_vboxmmr option.
a. With the virtual machine running and fully booted, select Devices in the virtual machine console.
b. Select Install Guest Additions. This launches the Oracle VM VirtualBox Guest Additions
installer inside the virtual machine.
a. In the virtual machine console, load the Guest Additions by selecting Devices, CD/DVD Devices,
then VBoxGuestAdditions.iso.
b. With the virtual machine running and fully booted, go to the Windows Run console.
• (Windows 7) Search for 'run' in the Start search bar, and select it from the search results.
• (Windows 8) Right-click in the bottom area of the Start screen, then click All Apps. Under
Windows System, click Run.
c. Type the following and click OK to launch the Oracle VM VirtualBox Guest Additions installer
inside the virtual machine.
115
Creating Virtual Machines (VMware vCenter)
For more detailed information about creating virtual machines, creating templates, custom specifications,
and installing the VMware Tools, see the VMware Documentation.
Steps
• Use Microsoft Windows XP SP3 as the baseline. The license must be a volume license.
• Define one disk. It should be as small as possible. The size impacts system performance and overall
storage consumption. RAM also should be as small as possible.
• For Windows 7 and later, a minimum of 1024 MB RAM and 5723 MB hard disk are recommended.
• For Windows XP, a minimum of 384 MB RAM and 4 GB hard disk are recommended.
• One network interface is needed. It should be configured for DHCP. Ensure that the virtual machine
obtains a valid IP after powering on.
Once you have created a virtual machine with Microsoft Windows installed on it, install the VMware
Tools. VMware Tools is a suite of utilities that enhances the performance of the virtual machine's guest
operating system and improves management of the virtual machine. Installing VMware Tools in the
guest operating system is vital.
From the VMware Virtual Infrastructure Client (VIC), right-click the virtual machine and choose Install
VMware Tools.
RDP is the main access method to the Microsoft Windows XP desktop. By default, this access method
is disabled and rejected through the firewall. To enable remote desktop access, launch VMware's
Virtual Infrastructure Client, with your virtual machine still powered on and logged in, then follow these
steps:
a. Open a console for the virtual machine, and click the virtual machine's Start button.
116
Creating Virtual Machines (VMware vCenter)
d. Under Remote Desktop, select the box marked Enable Remote Desktop on This Computer.
e. Make sure that the desired users have been granted remote access rights.
Before you try to connect to a virtual desktop remotely, ensure that no firewall blocks the remote
access. Make sure that port 3389 is enabled in any firewall that may be active on the system.
4. Install the Oracle VDI Tools. Oracle VDI has a tools component that notifies the Oracle VDI service
when a desktop is in use and handles RDP connections when the guest OS initiates standby. The
Oracle VDI Tools must be installed on the guest operating system for recycling to work correctly and
so that the RDP connection is correctly closed when the virtual machine goes into standby or suspend
mode. There are two versions of the Oracle VDI Tools: vda-tools-x86.msi for 32-bit platforms and
vda-tools-x64.msi for 64-bit platforms.
a. Locate the correct installer file in the directory where you unzipped Oracle VDI archive.
b. Within the virtual machine's console, double-click the installer and follow the prompts to complete
installation.
The default target location for the Oracle VDI Tools on Windows is C:\Program Files\Oracle
\Virtual Desktop Access\Tools.
c. The VM Services list should now contain a new service named Oracle VDI Tools, running and set
to start automatically.
You can clone additional virtual machines manually, or Oracle VDI clone them automatically from a
template. Any existing virtual machine can be converted into a template.
b. Right-click the desired virtual machine and power down the machine.
c. From the commands area or the pop-up menu, click Convert to Template.
It is necessary to customize the identity and network settings of Windows desktop after a clone has
been created from a template. This can be achieved using a Customization Specification.
117
Creating Virtual Machines (Microsoft Hyper-V)
b. Click Edit from the menu above the tool bar and select Customization Specifications.
c. Click the New icon in the Customization Specification Manager to start the wizard.
d. On the first wizard step, choose Windows as the target virtual machine OS, and give the
specification a name and description.
e. The following steps ask the standard Windows installation questions and should be completed to
correspond with your requirements, with the exception of the following.
• Computer Name: Make sure that the Use the Virtual Machine Name item is selected. If not, you
may end up with duplicate host names.
• Windows License: Enter your Windows serial number. The Include Server License Information
item should be left unchecked.
• Networking: Make sure the interface is configured for DHCP. If not, your cloned virtual machines
cannot have unique IP addresses and will not work with Oracle VDI.
f. After completing the wizard and saving your customization specification, close the Customization
Specification Manager.
Use your standard process for creating virtual machines. For information on how to create a virtual
machine in Microsoft Hyper-V, see Hyper-V Getting Started Guide.
• Define one disk. It should be as small as possible. The size impacts system performance and overall
storage consumption. RAM also should be as small as possible.
a. For Windows 7 and later, a minimum of 1024 MB RAM and 5723 MB hard disk are
recommended.
b. For Windows XP, a minimum of 384 MB RAM and 4 GB hard disk are recommended.
Once you have created a virtual machine with Microsoft Windows XP installed on it, install the Hyper-
V Integration Components. The Integration Components allow Microsoft Hyper-V and Oracle VDI to
interoperate with the virtual machine. Installing the Integration Components in the guest operating
system is vital.
In the Hyper-V Management Console, connect to the virtual machine from the console and select the
Insert Integration Services Setup Disk option from the Action menu.
118
Creating Virtual Machines (Microsoft Hyper-V)
RDP is the access method to the Microsoft Windows desktop. By default, this access method is
disabled and rejected through the firewall. To enable remote desktop access, connect to the virtual
machine from the Hyper-V Management Console and follow these steps:
d. Under Remote Desktop, check the box marked Enable Remote Desktop on this computer so that
this item is selected.
e. Make sure that the desired users have been granted remote access rights.
Before you try to connect to a virtual desktop remotely, ensure that no firewall blocks the remote
access:
Make sure that port 3389 is enabled in any firewall that may be active on the system.
4. Install the Oracle VDI Tools. Oracle VDI has a tools component that notifies the Oracle VDI service
when a desktop is in use and handles RDP connections when the guest OS initiates Standby. The
Oracle VDI Tools must be installed on the guest operating system for recycling to work correctly and
so that the RDP connection is correctly closed when the virtual machine goes into Standby or Suspend
mode.
a. Locate the installer file, vda-tools-x86.msi for 32bit platforms or vda-tools-x64.msi for
64bit platforms, in the directory where you unzipped the Oracle VDI archive.
b. Within the VM's console double-click the installer and follow the prompts to complete installation.
The default target location for the Oracle VDI Tools on Windows is C:\Program Files\Oracle
\Virtual Desktop Access\Tools.
c. The VM services list should now contain a new service named Oracle VDI Tools, running and set to
start automatically.
119
Importing Desktops
A virtual machine must be created in the Oracle VM VirtualBox interface or using the integrated Oracle
VDI Manager Desktop Console before it can be imported into the Oracle VDI database. Refer to the
Section 5.3.1, “Creating Virtual Machines (Oracle VM VirtualBox)” section for detailed information.
Oracle VDI Manager Steps
• If the desktop you would like to import is on the VirtualBox host, select it from the Hypervisor tab,
and click OK.
• If the desktop you would like to import is available on the Oracle VDI host in /var/tmp, define the
corresponding XML and Oracle VDI files under the Folder tab.
Note
You can move your virtual machine XML file and disk image to /var/tmp
using the following command:
If there is not enough space in /var/tmp, you can copy both files to another
location on the host and create a symbolic link:
After the desktop has been imported successfully, it is displayed in the Desktop tab of the pool's profile.
Command Line Steps
/opt/SUNWvda/sbin/vda pool-vb-import -p \
vdi-image=vm-disk-file,xml-configuration=vm-settings-file pool-name
/opt/SUNWvda/sbin/vda pool-vb-import -p \
vdi-image=win7-ent.vdi,xml-configuration=win7-ent.xml "Sales - EMEA"
120
Importing Desktops (VMware vCenter)
2. Import a desktop.
A virtual machine must be created in VMware vCenter before it can be imported into Oracle VDI. Refer to
the Section 5.3.2, “Creating Virtual Machines (VMware vCenter)” section for detailed information.
Desktops that are already imported into Oracle VDI cannot be selected for import. You also cannot import
templates.
Oracle VDI Manager Steps
An import dialog is displayed showing the available virtual machines in the VMware vCenter hierarchy.
You can select individual virtual machines or folders. If you select a folder, all the virtual machines in
the folder are imported.
After the desktops have been imported successfully, they are displayed in the Desktops tab of the of the
pool's profile (a page refresh might be necessary).
Command Line Steps
121
Importing Desktops (Microsoft Hyper-V)
A virtual machine must be created in Microsoft Hyper-V and exported, before it can be imported into the
Oracle VDI database. Refer to the Section 5.3.3, “Creating Virtual Machines (Microsoft Hyper-V)” section
for detailed information. To export the virtual machine from the Hyper-V server:
2. Select Export from the Actions menu and choose a directory on the Hyper-V server to which you want
to export the virtual machine.
After the export has completed, you have a directory containing a number of files and subdirectories.
Copy the entire directory from the Hyper-V server to a directory on your Oracle VDI host or to a shared
directory on a remote server (the shared directory must be accessible to the Oracle VDI host).
2. Click the Desktops tab, and click Import. An import dialog is displayed.
3. In the Server property, select the server you copied the Microsoft Hyper-V desktop directories to (if
you copied them to your Oracle VDI server then choose the Host 'servername' option otherwise if you
copied them to a shared directory on a remote server then choose the Other Server option and enter
the remote server name where the shared directory resides).
4. In the Path property, enter the path to the directory that contains the Microsoft Hyper-V desktop
directories.
5. Select the correct desktop name from the Desktop dropdown, and click OK.
After the desktop has been imported successfully, it is displayed in the Desktops tab of the Pools page. A
page refresh might be necessary.
Command Line Steps
122
About Template Management
Verify that the Windows PC is configured to allow remote connections by going to System Properties,
then Remote Desktop.
Oracle VDI Manager Steps
3. Go to Pools.
Any desktop can be used as template for cloning additional desktops. Testing desktop templates and
keeping track of any changes before rollout is crucial for large enterprise deployments. Oracle VDI now
includes support for managing several template revisions. You can create a new template revision at any
time, test your changes and declare the new revision as the master used for the cloning process. You can
also revert to a previous revision if you are not satisfied with your changes.
You need to have created at a minimum a virtual machine in the interface of your chosen desktop provider
(Oracle VDI, or Microsoft Hyper-V) before you can import it and use the template modification tools in
Oracle VDI Manager. Once you have created and imported the virtual machine, you can start it from
Oracle VDI Manager and carry out all the necessary preparation steps from there. For more information,
see Section 5.3.1, “Creating Virtual Machines (Oracle VM VirtualBox)” or Section 5.3.3, “Creating Virtual
Machines (Microsoft Hyper-V)”.
Oracle VDI Manager Steps
2. Select a pool.
4. Click the Import Template button to import the virtual machine you just created in the hypervisor
interface.
123
Cloning Desktops
5. Select the template you would like to modify, and click Start from the More Actions menu.
No modifications can be performed until the virtual machine is started from Oracle VDI Manager.
6. If necessary, make modifications to the template, such as installation of additional software or upgrades
of the operating system.
• Virtual machines hosted by Oracle VM VirtualBox can be modified from the template console.
• On Microsoft Hyper-V desktop providers, the modifications may take place on the desktop provider's
Hyper-V host.
7. When you are finished modifying the template, select Shut Down from the More Actions menu.
124
Cloning Desktops (VMware vCenter)
A desktop must be imported before a template can be cloned. Refer to the Section 5.4.1, “Importing
Desktops (Oracle VM VirtualBox)” section for detailed information.
Oracle VDI Manager Steps (Existing Pool)
3. In the Name Pattern field, enter the naming pattern to use for the cloned desktops.
The name pattern is used to generate the name for the virtual machine and, for Windows desktops that
use either Sysprep or FastPrep, the name of the computer that is registered in the Windows domain.
The naming pattern consists of a prefix (the default prefix is the name of the pool) followed by a
sequence of "0" characters which are placeholders for the sequential number of the cloned desktops.
Ensure that you configure enough "0" character placeholders for the expected number of desktops
in the pool, for example enter "000" if the pool contains up to 999 desktops. If the desktops will join a
Windows domain, the naming pattern must only contain numbers (0-9), letters (A-Z) and hyphens (-)
and must not exceed 15 characters in length.
Desktops are cloned from the master revision of the selected template.
5. Click Save.
1. In the New Pool wizard, on the Select Template step, from the Template list, select a template.
Cloning can take up to a minute to start, after which you see clone jobs begin to display in the Jobs
window. To access the Jobs window, click the Jobs Running link in the top left of Oracle VDI Manager.
After a clone job has been finished successfully, the new desktop is displayed in the Desktops tab of the
pool's profile. A page refresh might be necessary.
Command Line Steps
Oracle VDI includes support for VMware linked clones. For details of how to enable the use of linked
clones in Oracle VDI, see Section 5.5.3, “Enabling VMware Linked Cloning”.
A virtual machine must be imported before a template can be cloned. Refer to the Section 5.4.2, “Importing
Desktops (VMware vCenter)” section for detailed information.
125
Enabling VMware Linked Cloning
By default, all available storage may be used. For each clone, Oracle VDI selects the storage with the
most available disk space.
6. In the Name Pattern field, enter the naming pattern to use for the cloned desktops.
The name pattern is used to generate the name for the virtual machine and, for Windows desktops that
use either Sysprep or FastPrep, the name of the computer that is registered in the Windows domain.
The naming pattern consists of a prefix (the default prefix is the name of the pool) followed by a
sequence of "0" characters which are placeholders for the sequential number of the cloned desktops.
Ensure that you configure enough "0" character placeholders for the expected number of desktops
in the pool, for example enter "000" if the pool contains up to 999 desktops. If the desktops will join a
Windows domain, the naming pattern must only contain numbers (0-9), letters (A-Z) and hyphens (-)
and must not exceed 15 characters in length.
Desktops are cloned from the master revision of the selected template.
8. Select Apply System Preparation and select a customization specification from the list.
9. Click Save.
1. In the New Pool wizard on the Select Template step, from the Template list, select a template.
Cloning can take up to a minute to start, after which you see clone jobs begin to display in the Jobs
window. To access the Jobs window, click the Jobs Running link in the top left of Oracle VDI Manager.
After a clone job has been finished successfully, the new desktop is displayed in the Desktops tab of the
pool's profile. A page refresh might be necessary.
Command Line Steps
126
Cloning Desktops (Microsoft Hyper-V)
clones are also created more quickly than full clones. Detailed information on VMware linked cloning is
available on the VMware web site.
VMware linked cloning is available for use only if the following conditions are met:
2. Select a pool.
5. Click Save.
In the following example, linked cloning is enabled for a pool named MyPool.
/opt/SUNWvda/sbin/vda pool-setprops -p linked-cloning=enabled MyPool
In the following example, linked cloning is disabled for a pool named MyPool
/opt/SUNWvda/sbin/vda pool-setprops -p linked-cloning=disabled MyPool
A virtual machine must be imported before a template can be cloned. Refer to the Section 5.4.3, “Importing
Desktops (Microsoft Hyper-V)” section for detailed information.
Oracle VDI Manager Steps (Existing Pool)
Desktops are cloned from the master revision of the selected template.
4. In the Name Pattern field, enter the naming pattern to use for the cloned desktops.
The name pattern is used to generate the name for the virtual machine and, for Windows desktops that
use either Sysprep or FastPrep, the name of the computer that is registered in the Windows domain.
The naming pattern consists of a prefix (the default prefix is the name of the pool) followed by a
sequence of "0" characters which are placeholders for the sequential number of the cloned desktops.
127
About Clone Customization
Ensure that you configure enough "0" character placeholders for the expected number of desktops
in the pool, for example enter "000" if the pool contains up to 999 desktops. If the desktops will join a
Windows domain, the naming pattern must only contain numbers (0-9), letters (A-Z) and hyphens (-)
and must not exceed 15 characters in length.
6. Click Save.
1. In the New Pool wizard, on the Select Template step, from the Template list, select a template.
3. Click Finish.
Cloning can take up to a minute to start, after which you see clone jobs beginning to display in the Jobs
window. To access the Jobs window, click the Jobs Running link in the top left of Oracle VDI Manager.
After a clone job has been finished successfully, the new desktop is displayed in the Desktops tab of the
Pool page. A page refresh might be necessary.
Command Line Steps
In the following example, automatic cloning is enabled for the pool MyPool.
/opt/SUNWvda/sbin/vda pool-start MyPool
Sysprep ensures that each desktop clone is assigned its own unique security identifier (SID). The
corresponding template revision is automatically marked as Sysprepped once the preparation has
completed.
FastPrep is designed to reduce the clone time of each desktop. It leverages Sysprep and changes the
computer name of each clone, joins it to a domain, and, optionally, can execute a post-customization
script.
http://msdn.microsoft.com/en-us/library/ms681381%28v=vs.85%29.aspx
If further debugging is needed, you can disable the automatic cleanup of failed clones by running the
following command:
# /opt/SUNWvda/sbin/vda settings-setprops -p cloning.cleanup.failures=disabled
128
Enabling Oracle VDI Fast Preparation for Windows Templates (Oracle VM VirtualBox and Microsoft Hyper-V)
With this setting disabled, Oracle VDI does not delete any failed clones, and you can examine a clone to
find out why an error occurred.
If issues persist when trying to join a domain, inspect the Windows C:\Windows\Debug\netsetup.log
on the clone for debug output of the attempted join operation.
Once the issue is resolved, enable the automatic cleanup of failed clones by running the following
command:
# /opt/SUNWvda/sbin/vda settings-setprops -p cloning.cleanup.failures=enabled
Failed clones that occur while automatic cleanup is disabled remain on the provider host. You must
manually delete these clones using Oracle VDI Manager or the command line.
5.5.7. Enabling Oracle VDI Fast Preparation for Windows Templates (Oracle
VM VirtualBox and Microsoft Hyper-V)
Windows desktops require customization for successful cloning by Oracle VDI. Unlike Microsoft System
Preparation, Fast Preparation (FastPrep) does not require any special preparation of the template prior to
use.
Before You Begin
a. If a post-customization script is required, copy the script to the template before cloning.
b. Ensure that the template is not a member of a domain, it must be a member of a workgroup.
2. Go to the Cloning tab (or the Select Template screen of the New Pool wizard).
4. Select the appropriate Fast Preparation option from the drop down for your template OS.
• Windows Domain - The FQDN of the Windows domain, for example example.com
• Domain Administrator Password - The password the for the domain administrator
• Computer Container DN - The DN to place the new computer account in for example
OU=Accounting,OU=VDI Center,DC=example,DC=com. If left blank the default Computers container,
ou=Computers, is used.
129
Enabling System Preparation for Windows Templates (Oracle VM VirtualBox and Microsoft Hyper-V)
• Read-only Domain Controller - From Windows 2008 Server, domain controllers (DC) can be
configured as read-only for deployments in unsecured locations. For a computer to join a domain via
a read-only DC the account must already exist and a special read-only flag is needed.
• Desktop Administrator - An administrator account on the template that has permissions to change
the computer name, join a domain and optionally execute the custom script. For Windows 7 and
later, the 'Administrator' account must be enabled and used.
• Custom Script - An optional script that will be executed after customization has completed. This
script can be a batch file or executable and must be located in a drive or folder accessible by the
template and clones.
You are now ready to clone customized Windows desktops. Refer to the Section 5.5.1, “Cloning Desktops
(Oracle VM VirtualBox)” and Section 5.5.4, “Cloning Desktops (Microsoft Hyper-V)” sections.
Command Line Steps
/opt/SUNWvda/sbin/vda pool-create-fastprep -p \
domain=domain,domain-admin=domain-admin,admin=admin,\
windows-release=winxp|win7 -u user-dirpool-name
A pool's System Preparation file defines licensing and credentials. If a pool has a valid System Preparation
file, System Preparation is enabled, and cloning from the sysprepped template is enabled, all cloned
desktops in the pool have the customization defined by the System Preparation file.
One sysprepped revision can be used for multiple pools, and the System Preparation files can be changed
and saved at any time from within Oracle VDI Manager.
Due to a bug in Windows 7, the Windows Media Player Network Sharing Service causes the Windows
Sysprep tool to hang. If you do not need this service enabled in your Windows 7 desktops and you intend
to run System Preparation from Oracle VDI Manager, stop and disable it. If you prefer to leave this service
enabled, run Sysprep manually from within the template's Run console before importing it.
The System Preparation action in the Template tab will not work if you do not have the tools (vda-
tools-x86.msi for 32-bit platforms or vda-tools-x64.msi for 64-bit platforms) installed on your
130
Enabling System Preparation for Windows Templates (Oracle VM VirtualBox and Microsoft Hyper-V)
template. For Windows XP templates, you also need to have the Sysprep tools in a C:\Sysprep
directory.
• Windows XP
a. Log into the template and download the Windows XP Service Pack 3 Deployment Tools:
http://www.microsoft.com/downloads/details.aspx?FamilyID=673a1019-8e3e-4be0-
ac31-70dd21b5afa7&displaylang=en .
c. Unpack the contents of the Sysprep CAB into the C:\Sysprep directory.
No files need to be installed. Windows 7 and later ship with all required system preparation files pre-
installed.
This action starts a job, starts the revision, runs Sysprep.exe, and then waits for the system to
shut down.
c. Wait for the job to complete successfully via the Job Summary pop-up. If the job fails for any
reason, details of the failure can viewed in the Job Details text area by clicking on the failed job.
All pools currently using this template clone new desktops from the sysprepped revision.
a. Go to the Cloning tab (or the Select Template screen of the New Pool wizard).
The file requires a Windows administrator password, a Windows license key, and a Windows
workgroup or a Windows domain, domain administrator, and administrator password.
131
About Personal Hard Drives and Windows User Profiles
You are now ready to clone customized Windows desktops. Refer to the Section 5.5.1, “Cloning
Desktops (Oracle VM VirtualBox)” and Section 5.5.4, “Cloning Desktops (Microsoft Hyper-V)”
sections.
/opt/SUNWvda/sbin/vda template-revisions 35
/opt/SUNWvda/sbin/vda revision-sysprep 55
/opt/SUNWvda/sbin/vda pool-create-sysprep -p \
key=ABC12-DEF34-GHI56-JKL78-MNO90,domain=mydomain.mycompany.com,\
domain-admin=Administrator,windows-arch=64,windows-release=win7 MyPool
Whenever the desktop template is updated (a new revision), the desktop's primary disk containing
the operating system is replaced with a fresh clone. The user's personal hard drive is preserved and
reattached to the fresh clone.
132
About Personal Hard Drives and Windows User Profiles
Only use personal hard drives when users have a requirement to store personal information in their
desktop and that information must be retained after template and revision updates.
• The user directory for the company must be Active Directory. The user directory can be configured as
either an LDAP directory type or as Active Directory type.
• The desktop provider type must be either Oracle VM VirtualBox or Microsoft Hyper-V.
• System preparation must be enabled for the pool. You can use either Oracle VDI Fast Preparation
(FastPrep) or Microsoft Windows System Preparation (SysPrep).
Administrators can specify that user profiles are imported from the network share when users access their
personal desktop for the first time. When a user logs in, Oracle VDI searches for a user profile in a location
derived by combining the network path of the share and the user's domain Security Accounts Manager
(SAM) account name, for example \\MyDomainFileServer\Profiles\jdoe. If the user profile exists
in that location, it is copied to the personal hard drive. Once the user profile is copied, the user is logged in.
This can cause a delay with the initial login to a desktop.
Administrators can also export the user profiles from the personal hard drives so that the data can be
backed up, edited, or re-used. See Section 9.1.9, “Exporting User Profiles from Personal Hard Drives” for
details.
The import and export of user profiles is performed using the domain administrator specified in the
pool's FastPrep or SysPrep configuration. The domain administrator specified must have read and write
permissions for the network share. The firewall on the Active Directory Domain Controller must include the
following in the list of allowed programs and features:
• iSCSI Service
• Network Discovery
133
Clone and Recycle Job Management
5. In the Size field, enter the size of the personal hard drive in gigabytes.
6. (Optional) In the Network Profile Location field, enter the network path of the shared directory to use
for importing and exporting Windows user profiles.
Use the Universal Naming Convention (UNC) form for the location, \\ComputerName
\SharedFolder, for example \\MyDomainFileServer\Profiles.
8. Click OK.
9. On the Cloning tab, check that the Personal Hard Drive setting shows Enabled.
• You enable personal hard drives by editing the properties of the pool. You can do this when you create
the pool, or by editing the pool.
You cannot configure the settings for importing and exporting Windows user profiles on the command
line.
For example:
/opt/SUNWvda/sbin/vda pool-setprops \
-p personal-hd-enabled=enabled,personal-hd-size=6 pool-name
To set the cloning production priority for pools, select an existing pool in the Pool category and click on the
Cloning tab.
134
Application Virtualization with Microsoft App-V
To set peak times in Oracle VDI Manager, go to the Peak Times tab for the desktop provider. On the
command line, use the vda provider-setpeaktimes command.
Oracle VDI supports application virtualization by providing desktops with access to applications using a
shared, read-only App-V cache file. This is a more efficient use of disk space than each individual desktop
downloading and storing the application data in its own local cache.
To create and manage the App-V cache file, Oracle VDI uses a staging desktop. The staging desktop
is simply a desktop that runs the Microsoft Application Virtualization Desktop Client (App-V Client) and
has write access to the App-V cache file. The staging desktop is used to download the application data
from the App-V Management Server to the App-V cache file. A separate disk is attached to the staging
desktop and the App-V cache file is copied to this disk, which is known as an App-V repository. The App-V
repository is then applied to one or more pools.
When an App-V repository is applied to a pool, the desktops have an extra hard disk attached, which is
assigned the drive letter V:. The hard disk is a clone of the App-V repository disk. The desktops run the
App-V Client, which is configured to use the App-V cache file on drive V: but with read-only access to the
cache.
If the App-V cache file needs to be updated, for example to add or remove applications, you create a
revision to the App-V repository. When you create a revision, the staging desktop is used to refresh the
App-V cache file from the App-V Management Server. Like revisions to templates, the revision must be
made the master revision in order to be applied to pools.
See Section 5.6.1, “App-V Repository Lifecycle” for full details of the processing involved in creating and
maintaining App-V repositories.
You can only create and use App-V repositories with Oracle VM VirtualBox pools. App-V repositories can
be used with flexible and personal desktops.
a. The selected desktop template is copied and the specified system preparation is applied to create
the staging desktop.
b. The specified App-V user is logged into the staging desktop and the App-V cache file is updated
with the latest application data from the App-V Management Server.
c. A new App-V hard disk is attached to the staging desktop and the updated App-V cache file is
copied to this disk.
d. A new revision of the App-V hard disk is created and this revision is made the master revision.
135
Creating an App-V Repository
2. Apply the App-V repository to a pool, see Section 9.4.4, “Applying an App-V Repository to a Pool”.
For newly cloned desktops, the following processing takes place during cloning.
For existing desktops, the following processing takes place before the desktop is started for the first
time after an App-V repository is applied to a pool or an App-V repository has a new master revision.
This results in longer initial startup times. Subsequent startup times should be normal.
a. A new hard disk is attached to the desktop. The hard disk is a clone of the App-V disk used by the
staging desktop.
b. The desktop is started and the new disk is assigned the drive letter V: and has the disk label
VDIAPPV.
c. The registry setting that defines the location of the App-V cache file is updated for the location of the
cache file on the new disk V:.
d. The registry setting that defines whether the App-V cache file is writable is updated to make it read-
only.
3. Create a revision to the App-V repository, see Section 9.4.5, “Creating a Revision to an App-V
Repository”.
You create a new revision whenever you need to change the application data required by users. This
might be because a new version of an application is needed, to add or remove applications, or to
change the configured App-V user that is used to maintain the App-V cache file.
The revision to the App-V Repository is not used until it is made the master revision.
a. The staging desktop is started and the configured App-V user is logged in.
b. The App-V cache is updated to get the latest application data from the App-V Management Server.
4. Make the App-V repository revision the master, see Section 9.4.6, “Making an App-V Revision the
Master Revision”.
To apply a revision to a pool, you make it the master revision. Existing used desktops must be restarted
in order to access the updated App-V applications.
Once a revision is made the master, all previous revisions are made inaccessible once they are not
used by any desktops.
• Import the desktop template you want to use to create the App-V repository into a pool.
The Microsoft App-V Desktop Client must be installed in the template and the App-V publishing servers
must be configured.
When you configure the App-V Client, it is best to use the default drive Q: for the Preferred Drive Letter.
If you do select another drive letter, do not use drive V:.
136
Creating an App-V Repository
The VirtualBox guest additions must be installed in the desktop template with support for automated
logons (install using the /with_autologon option).
• Obtain the credentials of a user that is defined as an App-V user in Active Directory.
Oracle VDI needs to be configured with an App-V user in order to update the App-V cache file on the
staging desktop. The user must have access to all the available applications on the App-V Management
Server. For the best performance when you create or update an App-V repository, ensure that this user
does not have a roaming profile.
You might want to define an App-V user in Active Directory specifically for Oracle VDI.
4. On the Select Pool step, select the pool where the new App-V repository should be used.
The template and system preparation settings configured on the selected pool's Cloning tab are used
to create the staging desktop for the App-V repository.
If you select None from the pool list, or the selected pool does not yet have a template applied, the
Create Staging Desktop step is displayed when you click Next. Here you must select a template and
specify the system preparation details so that the staging desktop for the App-V repository can be
created.
Selecting a pool is the best way to ensure that the staging desktop and the desktops in the pool use the
same Windows operating system and domain.
If you do not want to use the App-V repository in the pool immediately, deselect Use App-V
Repository.
5. On the Specify App-V User step, enter the credentials of a user that is defined as an App-V user in
Active Directory in the User and Password fields.
6. On the Define App-V Repository step, enter a name and, optionally, a comment in the Name and
Comment fields.
7. On the Review step, check the configuration of the desktop provider and click Finish.
The New App-V Repository wizard is closed. Jobs are started to create the staging desktop and App-
V repository disk. When the jobs complete successfully, the App-V repository is automatically applied
to the selected pool (if a pool was selected) and is available to the desktops in the pool when they are
started the next time.
1. Obtain the ID of the template you want to work with, see Section 9.2.1, “Obtaining the ID of a
Template”.
137
Assigning Users to Desktops
/opt/SUNWvda/sbin/vda template-appv-create -p \
name=name,pool=pool-name,admin=admin,appv-username=appv-username,\
[sysprep] template-id
Option Description
name The name of the App-V repository.
admin The name of an administrator in the desktop template, typically
Administrator.
appv-username The user name of a user that is defined as an App-V user in Active
Directory.
sysprep The standard properties for specifying system preparation.
In the following example, the system preparation is defined when the App-V repository is created:
/opt/SUNWvda/sbin/vda template-appv-create -p \
name=MyAppv,pool=MyTemplates,admin=Administrator,appv-username=appv-user,\
customization-type=fastprep,windows-release=win7,domain=example.com,\
domain-admin=Administrator 4
Enter password for user appv-user on desktop:
Enter password for user Administrator on desktop:
Enter password for user Administrator on domain example.com:
Creating App-V repository from template '4'.
Job started with id 173. Use job-list or job-wait to track progress.
In the following example, the system preparation is not defined when the App-V repository is created:
/opt/SUNWvda/sbin/vda template-appv-create -p \
name=MyAppv,pool=MyPool,admin=Administrator,appv-username=appv-user 2
Enter password for user appv-user on desktop:
Enter password for user Administrator on desktop:
Creating App-V repository from template '2'.
Job started with id 160. Use job-list or job-wait to track progress.
For Microsoft Remote Desktop providers, users cannot be directly assigned to desktops. Instead, users or
groups are assigned to Remote Desktop Services pools.
Oracle VDI Manager Steps
2. Select a company.
138
Creating Custom Groups and Custom Group Filters
b. Click on the user name, and click the Assignment tab in their profile.
c. Select Add in the Assigned Desktops or Assigned Pools table, depending on your preference.
5. Select the checkbox for the desktop or pool assignment, and click OK.
You can always see which pools and desktops are associated with a user by clicking the Summary tab of
the user or group's profile.
Command Line Steps
139
Assigning Tokens to Users
1. Select the Users category, and the Custom Groups subcategory in the left sidebar.
The default filter mode is Composition. You can create a custom filter by choosing an Attribute,
Relationship, and Value.
You can also use the Advanced filter mode, which uses LDAP search syntax defined by RFC 2254
LDAP documentation.
2. Before saving, click Preview to see how the filter configuration will behave. If the filter defines the target
group of users, click Save.
2. Select a company.
• If you are assigning a new token, click New in the Tokens table. Then Enter the ID of the new token
(e.g. Payflex.500d9b8900130200).
• If you are assigning an existing token, select Add in the Tokens table. Then search for the desired
token.
Note
Token IDs can be copied directly from the Sun Ray Admin GUI (see the Tokens tab
and display Currently Used Tokens).
140
Assigning Tokens to Desktops or Pools
Assigning desktops or pools to each token individually can be cumbersome. To ease this process, Oracle
VDI provides some predefined special tokens ("AnySmartCard.000" and "AnySunRayClient.000"), which
can be used to make default pool assignments in a single company setup.
For example, if you assign a pool to the AnySmartCard.000 token, any user with a smart card (regardless
of the smart card ID) gets a desktop from this pool. Or, if you assign a pool to the AnySunRayClient.000
token, any user without a smart card gets a desktop from this pool.
Oracle VDI Manager Steps
2. Select a company.
• If you are assigning a token to a desktop, click Add on the Assigned Desktops table. Then enter the
ID of the token (e.g. Payflex.500d9b8900130200).
• If you are assigning a token to a pool, click Add on the Assigned Pool table. Then enter the ID of
the token (e.g. Payflex.500d9b8900130200).
Note
Token IDs can be copied directly from the Sun Ray Admin GUI (see the Tokens tab
and display Currently Used Tokens).
141
Creating Tokens in Bulk
The token-create subcommand can take an input file containing the tokens to create and the user
associated with the token if needed.
Options:
-f token-file, --file=token-file
A CSV file containing the properties of the tokens to
be created. Format of the file is: token-idcommentuserid
-w, --write Overwrite existing tokens, option to be used with the
token-file option
The format of the token file is CSV with the following values:
• comment: a comment about the token that can be used as a user friendly description of the token. This
value maybe empty.
• userid: the user id of a user from the user directory, to be associated with the token. This value maybe
empty.
The following example shows a valid csv file for token creation and uses the file to create the tokens and
their association to users.
cat /tokens.csv
mo12.345,"token for Mary O'Leary",moleary
js46.23,"token for user John Smith",jsmith
x34.45,"token without any associated user",
142
Searching for Desktops
/opt/SUNWvda/sbin/vda token-search
NAME USER DN
mo12.345 Mary O'Leary cn=Mary O'Leary,ou=people
js46.23 John Smith cn=John Smith,ou=people
x34.45 - -
• All desktops - The complete set of desktops from all existing pools.
• Desktops with error - All the desktops currently with errors, which can be due to a Defective State, or
when the Machine State is Stuck, Aborted, Unresponsive or Unknown.
Type a user name into the Desktop Search field and click Search to show only the currently listed
desktops with the matching assigned user.
143
144
Chapter 6. Desktop Access
Table of Contents
6.1. About Desktop Access ............................................................................................................. 145
6.2. Desktop Access Using Sun Ray Clients .................................................................................... 147
6.2.1. About the Oracle VDI Sun Ray Kiosk Session ................................................................ 147
6.2.2. Sun Ray Client User Access Scenarios .......................................................................... 148
6.2.3. User Password Change and Expiry ................................................................................ 151
6.2.4. Modifying the Oracle VDI Sun Ray Kiosk Session ........................................................... 153
6.2.5. Desktop Login and Desktop Selector Configuration Options ............................................. 154
6.2.6. Global Settings for the Oracle VDI Kiosk Session ........................................................... 155
6.2.7. Debugging the Oracle VDI Kiosk Session ....................................................................... 156
6.2.8. Disabling the Desktop Login and Desktop Selector Screens ............................................ 157
6.2.9. Disabling Client Authentication ....................................................................................... 157
6.2.10. Enabling a Desktop Screen Lock for Sun Ray Clients .................................................... 157
6.2.11. Changing the Language Used in the Desktop Login and Desktop Selector Screens ......... 158
6.2.12. Adding a Helper Function to the Desktop Login Screen ................................................. 159
6.2.13. Changing the Desktop Disconnect Behavior ................................................................. 160
6.2.14. Customizing the Appearance of the Desktop Login and Desktop Selector Screens .......... 161
6.2.15. Multiple Monitor Capability ........................................................................................... 161
6.3. Desktop Access Using RDP Clients .......................................................................................... 166
6.3.1. Accessing Desktops With an RDP Client ........................................................................ 166
6.3.2. About the Oracle VDI RDP Broker ................................................................................. 167
6.4. Desktop Access Using Oracle Secure Global Desktop ............................................................... 167
6.5. Logging Out of Desktop Sessions ............................................................................................. 168
Sun Ray Clients, whether traditional hardware clients or Oracle Virtual Desktop Clients, connect to Sun
Ray Software over the Oracle Appliance Link Protocol (ALP). Sun Ray Software runs on the Oracle VDI
host and includes the Oracle VDI kiosk session and the Sun Ray Windows connector (uttsc). The kiosk
session connects Sun Ray users to Oracle VDI, and the Sun Ray Windows connector completes the
connection to the desktops.
The RDP protocol was developed by Microsoft as a way to establish secure connections between servers
and remote clients. Oracle VDI includes a built-in RDP broker that enables RDP clients to access virtual
desktops. These RDP clients include the Oracle Secure Global Desktop RDP client (ttatsc) and
Microsoft Remote Desktop Connection (RDC).
The following table shows Oracle VDI features by client type. The choice of RDP protocol and virtual
machine configuration also influence which features can be used for a virtual desktop. For more
information, see Section 5.1.2, “Choosing Between VRDP and MS-RDP”.
145
Color Depth
For Sun Ray Clients, support for these features can vary by hardware version and the software release.
Check the documentation for your products to see what is supported. For the latest list of peripherals
tested to work with Sun Ray Software, see the Sun Ray Client and Oracle Virtual Desktop Client
Peripherals List.
For Oracle Secure Global Desktop, support for these features depends on the software release. Check the
documentation for your product to see what is supported.
For Microsoft Remote Desktop Connection, support for these features depends on the which RDP version
is used. Check the documentation for your version to see what is supported.
Color Depth
Oracle Secure Global Desktop does not support 15-bit color depths. If this color depth is specified for a
desktop, 8-bit color is used instead.
32-bit color is available on Windows 7 or Windows Server 2008 and later platforms. To display 32-bit color,
the client device must be capable of displaying 32-bit color.
Encryption Level
You can only use the Low, Client-compatible, or High encryption levels with Oracle Secure Global Desktop
and Sun Ray Clients. The Federal Information Processing Standards (FIPS) encryption level is not
supported.
146
Transport Layer Security
multiple monitors (spanned mode). See the article Using Multiple Monitors in a Remote Desktop Session
for an explanation.
USB Redirection
USB 1.0 and USB 2.0 are supported. In order to use USB 2.0, a USB 2.0 (EHCI) controller must be
configured in the desktop or template. See Section 5.1.5, “Enabling USB Redirection” for details. Sun Ray
2 Clients only support USB 1.0. If USB 2.0 is enabled, Sun Ray 2 Clients auto-negotiate down to USB 1.0.
Sun Ray 3 Clients and later support USB 2.0.
This section provides information about configuring access to Oracle VDI desktops from Sun Ray Clients.
For detailed information about Sun Ray Software and Sun Ray Clients, see the Sun Ray Product
Documentation at http://www.oracle.com/technetwork/documentation/sun-ray-193669.html.
Oracle VDI comes with a predefined kiosk session, called Oracle Virtual Desktop Infrastructure (vda). This
kiosk session uses the Sun Ray Windows connector (uttsc) to establish a Remote Desktop Protocol
(RDP) connection to a virtual machine.
The kiosk session is enabled for both smart card and non-smart card access, so users do not have to use
smart cards to log in.
When an Oracle VDI kiosk session starts, for example when a user inserts a smart card into a Sun Ray
Client, a Desktop Login screen is displayed. The user enters a user name, a password, and, optionally, a
Windows domain. The Oracle VDI service contacts the user directory to verify the credentials. Depending
on the user directory, user password expiry can also be handled from the Desktop Login screen, see
Section 6.2.3, “User Password Change and Expiry”. A connection to the desktop is only established if
authentication succeeds.
After successful authentication, the Oracle VDI service determine what desktops are assigned to the user.
If multiple desktops are available, a Desktop Selector screen is displayed so that the user can select a
desktop, after which the Sun Ray Windows connector starts and connects to the virtual machine running
the user's desktop.
If the virtual machine is not already running, a Wait screen (see Figure 6.3, “The Wait Screen”) is displayed
while the machine starts.
147
Sun Ray Client User Access Scenarios
The user credentials are forwarded to the desktop operating system to provide an automatic login so
that the user does not have to authenticate again to the desktop. The automatic login feature works for
Windows desktops using either the RDP or VRDP protocols. For non-Windows desktops, automatic logins
only work for desktops that use the VRDP protocol.
You can disable client authentication so that users can either insert a smart card or provide just a
user name in the Desktop Login screen to access their desktops, see Section 6.2.9, “Disabling Client
Authentication”. You can also disable the Desktop Login and Desktop Selector screens so that users are
always connected to their default desktop without having to authenticate to Oracle VDI, see Section 6.2.8,
“Disabling the Desktop Login and Desktop Selector Screens”.
The Desktop Login and Desktop Selector screens can be affected by Global Oracle VDI Centers, see
Section 3.12.3, “Global Oracle VDI Centers and Desktop Login”.
Administrators can configure the appearance and behavior of the kiosk session, see the following for more
details:
• Section 6.2.6, “Global Settings for the Oracle VDI Kiosk Session”
Depending on the configuration of the Sun Ray kiosk session, users might have to log in before they can
access a desktop. Users assigned multiple desktops may also be able to select which desktop to access.
See Section 6.2.1, “About the Oracle VDI Sun Ray Kiosk Session”, for more details.
What users see on the Desktop Login screen can also be affected by other factors, such as the
configuration of multiple companies and Global Oracle VDI Centers. See Section 3.3.1, “Multiple
Companies and the Desktop Login Screen” and Section 3.12, “About Global Oracle VDI Centers”
Example 1
In this example, a user logs in to Oracle VDI and then selects which desktop to access.
The user inserts a smart card into a Sun Ray Client that is connected to an Oracle VDI host. The token
on the user's smart card is assigned either to a pool or directly to a desktop.
148
Sun Ray Client User Access Scenarios
The user must provide a user name, password, and, optionally, a Windows domain.
After successful authentication, the system determines which desktops and pools are assigned to
the user. If multiple desktops are assigned to the user, the Desktop Selector screen is displayed. The
Desktop Selector screen is not displayed if only one desktop is assigned.
Once the user selects a desktop, the Sun Ray Windows connector starts and displays the desktop.
Example 2
In this example, the user is not required to log in to Oracle VDI and accesses only their default desktop.
149
Sun Ray Client User Access Scenarios
The user inserts a smart card into a Sun Ray Client that is connected to an Oracle VDI host. The user's
smart card token is assigned either to a pool or directly to a desktop.
Oracle VDI determines the default desktop assigned to the user. In this example, the desktop is not
already running, so a Wait screen is displayed while the desktop is started.
In this example, the standard Windows Logon screen is displayed because the configuration of the
guest operating system requires a user name, password, and the Windows domain.
150
User Password Change and Expiry
• Active Directory
Users can change their passwords from the Desktop Login and Desktop Selector screens, provided that
client authentication is not disabled, see Section 6.2.9, “Disabling Client Authentication”.
With Kerberos authentication, users can change their passwords before and after it expires.
For LDAP directories, users can only change their password before it expires. If a user's password has
expired, you must provide your own mechanism to enable users to change their password (for example,
see Section 6.2.12, “Adding a Helper Function to the Desktop Login Screen”). Active Directory only permits
password change operations if Secure Authentication is used.
In order to change a password before it expires, users must have access to the Desktop Selector screen.
This means users must either be assigned more than one desktop, or you must configure the Oracle VDI
kiosk session to always show the Desktop Selector screen, see Section 6.2.6, “Global Settings for the
Oracle VDI Kiosk Session”.
Users change their password by selecting the Change Password option in the More Options menu at the
bottom of the Desktop Selector screen, as shown in Figure 6.5.
151
User Password Change and Expiry
When a user selects the Password Change option, the Change Password screen is displayed.
The user enters their old and new passwords in the fields and clicks OK to confirm the password change.
The password is updated in the directory server and the Desktop Selector screen displays a confirmation
message. If the user clicks Cancel on the Password Change screen, the password is not changed and the
Desktop Selector screen is displayed.
Password Expiry
When a user logs in and their password has expired, the process is as follows:
• Kerberos authentication
The system detects that the user password has expired and the Password Change screen is displayed.
After a successful password update, the user is authenticated with the new password and the normal
process after a regular successful authentication takes place.
• LDAP authentication
The system detects that the user password has expired and displays an error message.
The user must change their password outside Oracle VDI before they to be able to log in again.
152
Modifying the Oracle VDI Sun Ray Kiosk Session
Troubleshooting
A password change can fail for the following reasons:
• The new password does not comply to the password policy from the directory server, for example not
allowed to reuse old password or password complexity condition not met.
• The Kerberos configuration is not configured for password change. See Section 3.5, “Setting Up
Kerberos Authentication” for help on setting up Kerberos authentication.
• The configured authentication type does not allow password change. See the restrictions described in
Section 6.2.3, “User Password Change and Expiry”.
In case of problems, check the log files. See Section 8.5.4, “Checking the Oracle VDI Log Files”, for further
information.
Desktop Selector options affect the Desktop Login and Desktop Selector screens and the available
options are listed in Section 6.2.5, “Desktop Login and Desktop Selector Configuration Options”.
Sun Ray Windows connector options affect the quality of the RDP connection. The man page for the
uttsc command (man -M /opt/SUNWuttsc/man uttsc) has the complete listing of the supported
uttsc options.
For example:
-d example.com -j /usr/java6 -- -E wallpaper -E theming
6. Click OK.
The new settings only take effect for new kiosk sessions. To enforce the settings for existing sessions,
you must perform a cold restart of Sun Ray services. This terminates all existing sessions and creates
new kiosk sessions as necessary.
153
Desktop Login and Desktop Selector Configuration Options
See Section 6.2.4, “Modifying the Oracle VDI Sun Ray Kiosk Session” for details of how to apply the
options.
Table 6.2. Desktop Login and Desktop Selector Configuration Options
Option Description
-n Disables the Desktop Login and Desktop Selector screens.
-d domain Sets a default domain in the Domain field.
-l domain1,domain2,... Populates the Domain list with the specified domains.
Example: -l north.example.com,south.example.com
-t secs Specifies the timeout in seconds applied after a user logs in.
Example: -j /usr/java6
-a Enables the User Name field.
Normally the User Name field is read-only. Using this option enables
users to log in with a different user name.
-h Hides the User Name field.
-o Hides the Domain field.
-w Shows the Password field.
-r res1,res2,... Populates the Screen Resolution menu (under More Options) with a
list of resolutions.
Example: -r 1920x1200,2560x1600
-v log level Enables verbose logging.
The log levels are FINEST, INFO, WARNING, SEVERE, and ALL.
Previous releases of Oracle VDI supported a long format for these options, for example --no-desktop-
selector instead of -n. The long options are deprecated, do not use them.
154
Global Settings for the Oracle VDI Kiosk Session
Table 6.3. Global Settings for the Oracle VDI Kiosk Session
If enabled, when a user disconnects from their Sun Ray session (for
example by removing the smart card), the current session is locked.
When the user reconnects (for example by inserting a smart card),
the Desktop Login screen is displayed and the user must enter a
password to reconnect to their session.
See Section 6.2.10, “Enabling a Desktop Screen Lock for Sun Ray
Clients”.
client.autoredirect.firstserver Controls whether a Sun Ray Client is automatically redirected to the
first Sun Ray server contacted when a user disconnect from their
session.
See Section 3.12.3, “Global Oracle VDI Centers and Desktop Login”.
client.autoredirect.homeserver Controls whether a Sun Ray Client is automatically redirected to the
user's home Oracle VDI Center.
If enabled, the Desktop Login screen is changed and the user logs
in in two steps. In the first step, the user provides a user name and
domain, and in the second step, their password. Between the two
steps, the Client might be redirected to the user's home Oracle VDI
Center.
See Section 3.12.3, “Global Oracle VDI Centers and Desktop Login”.
client.desktop.reset Controls the Reset button in the Desktop Selector screen. The button
enables users to reboot their desktops.
155
Debugging the Oracle VDI Kiosk Session
You enable verbose logging with the -v option for the Oracle VDI kiosk session, see Section 6.2.5,
“Desktop Login and Desktop Selector Configuration Options” and Section 6.2.4, “Modifying the Oracle VDI
Sun Ray Kiosk Session”.
Additional log messages are output to standard error (stderr). The log messages can be viewed in the
following locations:
156
Disabling the Desktop Login and Desktop Selector Screens
You disable the Desktop Login and Desktop Selector screens with the -n option for the Oracle VDI
kiosk session, see Section 6.2.5, “Desktop Login and Desktop Selector Configuration Options” and
Section 6.2.4, “Modifying the Oracle VDI Sun Ray Kiosk Session”. If you do this, you must also disable
client authentication (see Section 6.2.9, “Disabling Client Authentication”) because users cannot enter a
user name or password.
If you disable the Desktop Login and Desktop Selector screens, it is best security practice to configure
desktops to present their own login screen, so that users authenticate to the desktop operating system.
You can disable client authentication so that users can either insert a smart card or provide a user name in
the Desktop Login screen to access their desktops. Desktops are assigned using the smart card token or
the user name, and the user is not required to enter a password.
If you disable client authentication, it is best security practice to configure desktops to present their own
login screen, so that users authenticate to the desktop operating system.
Disabling client authentication also enables you to make use of more advanced desktop authentication
techniques that are not supported by the Oracle VDI service.
Steps
There are security implications for hotdesking with a smart card. For example, a lost smart card could be
used by another user to access to a desktop session without the need to enter a password.
The solution is to enable a desktop screen lock. When you enable the desktop screen lock, users are
forced to provide a password whenever they insert a smart card, even when currently logged into a
desktop session. The Domain field and the User field on the Desktop Login screen are already provided.
157
Changing the Language Used in the Desktop Login and Desktop Selector Screens
Steps
6.2.11. Changing the Language Used in the Desktop Login and Desktop
Selector Screens
Oracle VDI supports the following languages in the Desktop Login and Desktop Selector Screens:
• Dutch
• English
• French
• German
• Italian
• Spanish
• Japanese
• Korean
• Simplified Chinese
• Traditional Chinese
Users can change the language used by selecting the Language option from the More Options menu in
the Desktop Login screen, as shown in Figure 6.7.
Figure 6.7. Language Selection in the More Options Menu
You can configure the default language used for the Desktop Login and Desktop Selector Screens by
configuring a locale for the kiosk session, as follows:
158
Adding a Helper Function to the Desktop Login Screen
Steps
1. Log in to the Sun Ray Administration Tool, Section 8.2, “Logging in to the Sun Ray Administration
Tool”.
The locale you enter must be a locale that is installed on all hosts in the Oracle VDI Center. Use the
locale -a command to check the locales installed on a host.
7. Click OK.
The new settings only take effect for new kiosk sessions. To enforce the settings for existing sessions,
you must perform a cold restart of Sun Ray services. This terminates all existing sessions and creates
new kiosk sessions as necessary.
When the user selects the item from the More Options menu, the configured kiosk session is displayed.
When the user logs out of, or disconnects from, the kiosk session, they are returned to the Desktop Login
screen.
159
Changing the Desktop Disconnect Behavior
Before you enable the additional item in the More Options, the kiosk session must be configured on all
hosts in the Oracle VDI Center. See Kiosk Mode in the Sun Ray Software Administration Guide for details
of how to configure kiosk sessions.
Steps
• To check the current configuration of the kiosk session in the More Options menu:
/opt/SUNWvda/sbin/vda settings-getprops -p \
client.kiosk.type,client.kiosk.label,client.kiosk.settings
Option Description
name The name of a directory in the /etc/opt/SUNWkio/sessions directory.
label The label that displays in the More Options menu.
args Any optional kiosk session arguments and settings that should be used when
starting the kiosk session.
In the following example, the label "Help Desk" is added to the More Options menu and uttsc kiosk
session is used to connect to the specified Windows server:
/opt/SUNWvda/sbin/vda settings-setprops -p \
client.kiosk.type=uttsc,client.kiosk.label='"Help Desk"',\
client.kiosk.settings=win1.example.com
• To remove a kiosk session from the More Options menu (the default):
/opt/SUNWvda/sbin/vda settings-resetprops -p \
client.kiosk.type,client.kiosk.label,client.kiosk.settings
If you change this setting, users are returned to the Desktop Selector screen only if they use either the X
button on the Sun Ray Windows connector toolbar at the top of the screen, or the Disconnect button in
the Windows Start menu. If users disconnect in any other way, they are logged out. The Desktop Selector
screen is displayed only if a user is assigned multiple desktops. If a user is assigned only one desktop, the
Desktop Selector screen is not displayed.
Steps
160
Customizing the Appearance of the Desktop Login and Desktop Selector Screens
You can add a company logo to the upper left corner of the screen, and to replace the background
(the middle of the screen) of the Desktop Login and Desktop Selector screens with a custom image.
However, you cannot change the text position, or the color of buttons and input elements. If you replace
the background image, the image dimensions must be 759 x 456 pixels in order to preserve the position of
the elements on the screen.
Copy your custom images to the /etc/opt/SUNWkio/sessions/vda directory on every host in the
Oracle VDI Center. Ensure that the file permissions for the images are readable by everyone.
Once you have copied the images, the images are only displayed for new kiosk sessions. Users must
either quit their existing sessions, or you can perform a cold restart of Sun Ray services to force new kiosk
sessions.
A more complex alternative is to replace the default Oracle VDI kiosk session with an adapted version. The
Oracle VDI web service API offers all the functionality needed to communicate with the Oracle VDI service
for retrieving a list of assigned desktops and starting desktops. You can create your own Desktop Login
and Desktop Selector screens using this web service API, but this requires more programming effort.
161
Multiple Monitor Capability
Ray Software Administration Guide. Oracle VDI extends this capability to the display of virtual Windows
XP, Windows 7 or Windows 8 desktops.
The Desktop Selector enables the user to select and connect to multiple desktops, provided that user has
a Sun Ray Client with two monitors and has been assigned two or more virtual desktops.
Desktops are displayed in the order they are listed on the Desktop Selector, that is, the first desktop listed
is displayed on the first monitor. To change the order in which the desktops are displayed, the user must
return to the Desktop Selector by logging out or by closing the Sun Ray Windows connector session. The
previously displayed desktops are then marked with monitor icons. When one of the desktops marked
with a monitor icon is selected, arrows allowing each desktop to be promoted or demoted in position are
displayed. When the desktops have been re-ordered, the user can reselect which ones to view and click
Connect.
The Multi-Monitor feature enables configuration of multiple monitors for an Oracle VDI desktop session. It
is supported for Windows XP, Windows 7 and Windows 8 desktops that use either VRDP or MS-RDP. The
feature is limited to a maximum of eight monitors for VRDP.
Note
162
Multiple Monitor Capability
Figure 6.11. A Virtual Windows Desktop Display Across Multiple Monitors Connected to One Sun
Ray Client
Hotdesking enables users to access their sessions when they move from one Sun Ray Client to another.
For more details, see Hotdesking in the Sun Ray Software Administration Guide. However, because some
Sun Ray Clients support only one monitor while others can support either one or two (see Section 6.2.15.4,
“Sun Ray Multihead Groups and Xinerama”), users may have to modify some settings in order to get or
keep their desired display characteristics.
For example, moving from one Sun Ray Client to another may leave some open windows on non-existent
monitors. In that case, the user must go to Control Panel, launch the Display Properties application, and
modify the number of available monitors. This moves all windows from the invisible monitors to the existing
monitors, allowing the user to see all windows again.
You can configure several Sun Ray Clients as a multihead group to create a large array of monitors and
display a single desktop across several monitors or multiple desktops on separate monitors. Sun Ray 2FS
and Sun Ray 3 Plus Clients can support two monitors each. For more details, see Multihead Groups in the
Sun Ray Software Administration Guide.
For multihead groups and VRDP, Oracle VDI runs an instance of the Sun Ray Windows connector for each
monitor connection. For this configuration, disable the Xinerama X Window System extension.
For multihead groups and MS-RDP, Oracle VDI runs an instance of the Sun Ray Windows connector for
each Oracle VDI session. For this configuration, enable the Xinerama X Window System extension.
For details on Xinerama usage, see How to Enable and Disable Xinerama in the Sun Ray Software
Administration Guide.
Note
The term head in this context refers to a Sun Ray Client, not a monitor.
163
Multiple Monitor Capability
If you are using Sysprep, do not perform this step, because the monitor configuration is removed during
cloning. If you use FastPrep, the monitor configuration is preserved.
164
Multiple Monitor Capability
a. In the template or desktop, go to the Start menu and select Control Panel.
b. Select Appearance and Personalization, then Personalization, and then Display Settings.
c. In the Sun Ray Client section, select the required number of monitors in the Monitors list.
The virtual machine is configured with one graphics card for each monitor.
3. Modify the virtual machine video memory setting for the template or the desktop.
Multiple monitors require more video memory. The amount of video memory depends on the screen
resolution and the color depth configured in the desktop or template. The following calculations provide
a good estimate of the amount of memory you should allocate. However, they should not be used as
a replacement for your own testing. The calculations also assume that you are not using special video
effects such as 3D.
The video memory required for each monitor can be calculated using the following formula:
For example, for a monitor with a resolution of 1920 x 1200, the memory required is:
The total video memory (in bytes) is the sum of the video memory required for each monitor + 1048576
(1 megabyte).
For example, for two 1920 * 1200 monitors, the total video memory required is:
To access the video memory setting for a desktop or template in a pool, do either of the following:
• Go to the Templates tab, click the master revision in the Templates table, and then click Virtual
Machine.
• Go to the Desktop tab, click a desktop in the Desktops table, and then click Virtual Machine.
You must restart all running desktops so that the graphics card changes in the virtual machine are
detected. If you do not do this, users might experience connection problems when they connect to their
desktops. Existing desktops that have been powered off detect the graphics card changes when they
are next powered on.
165
Desktop Access Using RDP Clients
Select all the desktops except those with a Machine State of powered off.
c. Click Restart.
The display properties in existing desktops must be configured individually to extend the desktop to
multiple monitors.
Supported Clients
The following RDP clients have been tested with Oracle VDI:
• The Oracle Secure Global Desktop Remote Desktop Client (also known as ttatsc)
Other clients may also work, but have not been tested.
Alternatively, users can specify a particular desktop or pool by entering the user name, the pool name, and
optionally a desktop ID, in the RDP client using the following syntax:
username::pool=poolname[,desktop=desktopId]
It is usually sufficient to specify just the user name and pool name. However, users with multiple desktops
assigned from the same pool must specify both the pool name and the desktop ID.
To view a listing of desktop IDs, see Section 9.1.1, “Obtaining the ID of a Desktop”.
In the following example, the Sun Ray Windows connector is used to connect to any machine from a pool:
166
About the Oracle VDI RDP Broker
The following image shows a similar example using Microsoft Remote Desktop Connection.
In the following example, the Sun Ray Windows connector is used to connect to a specific desktop:
/opt/SUNWuttsc/bin/uttsc -u jdoe::pool=win-xp,desktop=33 -d example.com vdi-example.com
The following image shows a similar example using Microsoft Remote Desktop Connection.
If users frequently switch between desktops, it is best to save the connection settings for each desktop in
the RDP client.
1. The RDP client contacts the Oracle VDI RDP broker and passes it any relevant information, such as
user name and password.
2. The RDP broker then contacts the Oracle VDI service on behalf of the client and asks it to start the
desired desktop.
3. If client authentication is enabled (the default), the Oracle VDI service verifies the user name and
password (see Section 6.2.9, “Disabling Client Authentication”).
4. If authentication succeeds, the Oracle VDI service starts the corresponding desktop and returns the IP
address and, optionally, RDP port of the virtual machine running the desktop.
5. The RDP broker uses this information to construct an RDP Server Redirection Packet.
• For Windows RDP, the packet contains the VM host/IP address as the server to redirect to. This is
the model that VMware Infrastructure 3 uses.
• For VirtualBox RDP, the packet contains a routing token. The routing token consists of an encoded
IP address and RDP port information, which are needed because VRDP does not use the standard
Windows RDP port. For details of the routing token encoding, see the "Routing Token Format"
section of Session Directory and Load Balancing Using Terminal Server on the Microsoft website.
6. The RDP broker sends the redirection packet to the RDP client, and the client is redirected accordingly.
167
Logging Out of Desktop Sessions
The Oracle VDI Broker is part of the SGD Dynamic Launch feature. The broker uses the web services
application programming interface (API) of the Oracle VDI Client command line tool to authenticate the
user, to obtain a list of desktops for the user, and to start and end the desktop. The SGD RDP client
(ttatsc) is then used to display the desktop. For detailed information on configuring and using the broker,
see Integrating SGD with Oracle VDI in the SGD Administration Guide for your SGD release.
Note
The Oracle VDI Broker replaces the Legacy Oracle VDI Broker that was available
in SGD release 4.6. It is best to use the Oracle VDI Broker because it uses a public
API and does not require SGD and Oracle VDI to be installed on the same host.
Use a Windows application object if you are unable to use the broker. With this access method, the SGD
RDP client (ttatsc) is used to access a desktop in the same way as a regular RDP client, as described in
Section 6.3.1, “Accessing Desktops With an RDP Client”. For detailed information on configuring Windows
application objects, see Windows Applications in the SGD Administration Guide for your SGD release.
The Windows Start menu shows slightly different logout options depending on whether VRDP or MS-RDP
is used, as shown in the following figure.
The user can also log out by clicking the Log Off button in the Start menu.
The VRDP Start menu has a Turn Off Computer button, which shuts down the desktop. This option
requires a full boot sequence the next time the user logs in.
The RDP Start menu has a Disconnect button instead. This option logs the user out of Windows and the
Oracle VDI desktop session, but it does not shut down the virtual machine. This option does not require a
full boot sequence the next time the user logs in.
168
Chapter 7. Performance and Tuning
Table of Contents
7.1. Introduction to Oracle VDI Performance and Tuning .................................................................. 169
7.2. Oracle VDI Hosts ..................................................................................................................... 171
7.2.1. Sizing Guidelines for Oracle VDI Servers ....................................................................... 171
7.2.2. Controlling the Number of Sessions on an Oracle VDI Host ............................................. 171
7.3. Virtualization Hosts .................................................................................................................. 171
7.3.1. Sizing Guidelines for Oracle VM VirtualBox Servers ........................................................ 171
7.4. Storage Performance and Tuning ............................................................................................. 172
7.4.1. Sizing Guidelines for Sun ZFS Storage Servers .............................................................. 172
7.4.2. About ZFS Storage Caches ........................................................................................... 174
7.4.3. Managing the ZIL on Oracle Solaris Platforms ................................................................ 175
7.4.4. Oracle VDI Global Settings for Storage .......................................................................... 176
7.4.5. About Block Alignment .................................................................................................. 178
7.5. Networking ............................................................................................................................... 181
7.5.1. Configuring a Dedicated iSCSI Network ......................................................................... 182
7.5.2. Configuring Link Aggregation ......................................................................................... 182
7.5.3. Configuring a VLAN ...................................................................................................... 185
7.6. Virtual Machines ...................................................................................................................... 186
7.6.1. Configuring Desktop Resources Per Pool (Oracle VDI Provider) ...................................... 186
7.6.2. Optimizing Windows 8 Desktop Images .......................................................................... 187
7.6.3. Optimizing Windows 7 Desktop Images .......................................................................... 190
7.6.4. Optimizing Windows XP Desktop Images ....................................................................... 193
7.6.5. Optimizing Desktop Images for Other Operating Systems ................................................ 197
169
Introduction to Oracle VDI Performance and Tuning
Figure 7.1. Typical Hardware Environment for the Oracle VM VirtualBox Virtualization Platform
A production deployment consists of one primary Oracle VDI host and at least one secondary Oracle VDI
host to provide redundancy. The Oracle VDI servers host the embedded MySQL Server database for the
Oracle VDI data, route information between clients and desktops, and provide the broker functionality
which delivers the desktops to the clients. Alternatively, remote databases are also supported. The Oracle
VM VirtualBox servers run the virtual machines, which provide the desktops. The storage servers provide
the virtual disks, which are interpreted as physical disks by the operating systems running within the virtual
machines. The iSCSI protocol is used to transfer the disk data between the VirtualBox servers and the
storage. That iSCSI data creates a major part of the total network traffic of an Oracle VDI system.
Other consumers of network bandwidth are the clients of Oracle VDI: Sun Ray Clients, Oracle Secure
Global Desktop, and RDC clients. The clients connect to the VirtualBox servers through the Oracle VDI
servers. In the case of a Sun Ray Client, which uses the ALP protocol to transfer the desktop graphics,
the Oracle VDI servers convert the RDP protocol received by the VirtualBox servers to the ALP protocol.
So, there is one data stream for each client connection between the client, the Oracle VDI server, and the
VirtualBox server. RDP clients such as the Sun Ray Windows connector (uttsc), connect to the Oracle
VDI server which, in turn, uses the RDP Redirect feature to instruct the clients to connect to the VirtualBox
servers directly as there is no need to translate the RDP protocol. In this case, there is a data stream
between the client and the VirtualBox server.
This chapter provides sizing, performance, and tuning guidelines for Oracle VDI deployments. The sizing
information is derived from a sizing test with 1000 desktops running a script to simulate an office workload
of a "heavy worker", as defined in the VMware VDI Server Sizing and Scaling Guide.
The sizing guidelines are provided as a general starting point for sizing and should not be used as a
replacement for your own testing. The workload is different for every installation and relatively small
170
Oracle VDI Hosts
changes in the usage patterns can have noticeable effects on the requirements. For assistance with sizing,
contact Oracle Sales or Support.
The secondary Oracle VDI server requirements for the number of cores and memory size varies with the
number of running desktops supported, as well as the required network bandwidth. The bandwidth also
varies with the content displayed. The numbers given below are typical for office work. Displaying videos or
web pages with Flash content can increase the required bandwidth.
Example: Two secondary Oracle VDI servers with 8 CPUs and 4 cores per CPU can serve 2 x 8 x 4 x 20
= 1280 running desktops
Example: Two secondary Oracle VDI servers with 64 GB of memory can serve (2 x 64 x 1024 MB - 2 x
2048 MB) / 32 MB = 3968 running desktops
Example: Two secondary Oracle VDI servers with one 1 Gb Ethernet interface can serve 2 x 1024 / 0.15
Mb/s = 13653 running desktops
The number of sessions has no effect on the distribution of the sessions in an Oracle VDI Center because
the Sun Ray Software load balancer is not aware of this session limit. A session might be assigned to
a host where the session limit is exceeded and the session fails. The session limit you configure should
always be larger than expected maximum session count, in case of a partial outage.
To change the number of sessions on a configured Oracle VDI host, run the following command as root:
# /opt/SUNWkio/bin/kioskuseradm extend -c count
171
Storage Performance and Tuning
CINT values for a vast number of CPUs can be looked up from the database of the Standard Performance
Evaluation Corporation (SPEC) at http://www.spec.org/cpu2006/results/rint2006.html or by running the
provided test suite.
The numbers for this section have been updated based on a new test run. We were able to run 100 VMs
on a X4170 with two E5520 CPUs having 4 cores each. The SPEC CINT2006 Rate (peak) for servers with
two E5520 CPUs is ~200 which results in a cint / VM value of 2.
Example: A server roughly equivalent to a X4170 with two E5520 CPUs can support up to 2 x 4 x 12.5 =
100 running desktops
• Memory size [MB] = number of running desktops x memory size of a desktop x 1.2 + 1024 MB
Example: A server with 64 GB of memory can support 64 x 1024 MB - 1024 MB / (512 MB x 1.2) = 105
running desktops of 512 MB in size
Note
At least 20% of the available CPU power, memory size and network bandwidth
should be available as security margin.
The storage servers provide the virtual disks that are accessed by Oracle VM VirtualBox through iSCSI.
Because iSCSI is a CPU-intensive protocol the number of cores of the storage server are a decisive
factor for its performance. Other important factors are the memory size (cache), the number of disks, and
the available network bandwidth.
The network bandwidth is very volatile and determined by the relation of desktops starting up (peak
network bandwidth) and desktops that have cached the applications in use (average network bandwidth).
Starting a virtual machine (XP desktop) creates a network load of 150 MB which needs to be satisfied in
around 30 seconds. If many desktops are started at the same time, the requested network bandwidth may
exceed 1 Gb/s if the CPUs of the storage can handle the load created by the iSCSI traffic. This scenario is
typical for shift-work companies. In such a case, set the Pool, Cloning, or Machine State option to Running,
which always keeps the desktops running and therefore decouples the OS boot from the login of a user.
Another option is to trunk several interfaces to provide more than 1 Gb/s bandwidth through one IP. You
can also use Jumbo Frames to speed up iSCSI connections. Jumbo Frames need to be configured for all
participants of the network: storage servers, VirtualBox servers, and switches. Note that Jumbo Frames
are not standardized so there is a risk of incompatibilities.
Oracle VDI, in combination with VirtualBox, uses the Sparse Volume feature of ZFS, which enables it to
allocate more disk space for volumes than is physically available as long as the actual data written does
not exceed the capacity of the storage. This feature, in combination with the fact that cloned desktops
reuse unchanged data of their templates, results in a very effective usage of the available disk space.
Therefore, the calculation for disk space below is a worst-case scenario assuming that all volumes are
completely used by data which differs from the template.
172
Sizing Guidelines for Sun ZFS Storage Servers
• Number of disks = number of users * user IOPS * (read ratio * read penalty + write ratio * write
penalty) / disk IOPS
See Calculating the Number of Disks for an explanation of this formula and an example.
Example: A x7210 storage with 2 CPUs and 4 cores per CPU can serve up to 2 * 4 * 200 = 1600 virtual
disks
• Memory size - The more the better. The free memory can be used as a disk cache, which reduces the
access time.
• Average Network bandwidth [Mb/s] = number of virtual disks in use * 0.032 Mb/s
Example: An x7210 storage with one Gigabit Ethernet interface can serve up to 1000 / 0.032 = 31250
virtual disks
Example: An x7210 storage with one Gigabit Ethernet interface can serve up to 1000 / 40 = 25 virtual
disks
• Disk space [GB] = number of desktops * size of the virtual disk [GB]
Note
For details about how to improve desktop performance, see the sections on
optimizing desktop images Section 5.3, “Creating Desktop Images”.
• Disk IOPS: The capability of the disks in terms of physical input/output operations per second (IOPS).
The following table shows the typical disk IOPS for various disk speeds (in revolutions per minute or
RPM) or disk types.
• User IOPS: The input/output operations per second generated by users when they use applications in
their desktops.
The user IOPS value depends largely on the applications used and how they are used. The following
table shows some sample IOPS based on long-time averages for different user types and Windows
platforms.
173
About ZFS Storage Caches
• Disk read:write IOPS ratio: This depends on the cache available to both the operating system of the
desktop and, most importantly, the storage.
For Sun ZFS storage, the more Adaptive Replacement Cache (ARC) and Second Level Adaptive
Replacement Cache (L2ARC) that is available, the fewer read IOPS are performed, and this enables
more write IOPS. You can optimize the storage head movements if you decrease the read IOPS. Write
IOPS are cached and written in bursts to optimize the head movements, but read requests can disrupt
this optimization. Typical read:write ratios range from 40:60 to 20:80, or even less.
• Read and Write Penalty: The selected RAID configuration of the storage has a read and write penalty, as
shown in the following table.
The number of disks are needed for 1000 Windows XP task workers using 10,000 RPM disks with a 20:80
read:write ratio in a RAID10 array is:
Background
The Zettabyte File System (ZFS) is the underlying file system on the supported Sun ZFS storage platforms.
The Adaptive Replacement Cache (ARC) is the ZFS read cache in the main memory (DRAM).
The Second Level Adaptive Replacement Cache (L2ARC) is used to store read cache data outside of
the main memory. Sun ZFS Storage Appliances use read-optimized SSDs (known as Readzillas) for the
L2ARC. SSDs are slower than DRAM but still much faster then hard disks. The L2ARC allows for a very
large cache which improves the read performance.
The ZFS Intent Log (ZIL) satisfies the POSIX requirements for synchronous writes and crash recovery.
It is not used for asynchronous writes. The ZFS system calls are logged by the ZIL and contain sufficient
174
Managing the ZIL on Oracle Solaris Platforms
information to play them back in the event of a system crash. Sun ZFS Storage Appliances use write-
optimized SSDs (known as Writezillas or Logzillas) for the ZIL. If Logzillas are not available the hard disks
are used.
The write cache is used to store data in volatile (not battery-backed) DRAM for faster writes. There are no
system calls logged in the ZIL if the write cache is enabled on a Sun ZFS Storage Appliance.
Performance Considerations
Size the read cache to store as much data in it to improve performance. Maximize the ARC first (DRAM),
then add L2ARC (Readzillas).
Oracle VDI enables the write cache by default for every iSCSI volume used by Oracle VDI. This
configuration is very fast and does not make use of Logzillas, as the ZIL is not used. Without ZIL, data
might be at risk if a Sun ZFS Storage Appliance reboots or experiences a power loss while desktops are
active. However, it does not cause corruption in ZFS itself.
Disable the write cache in Oracle VDI to minimize the risk of data loss. Without Logzillas the ZIL is backed
by the available hard disks and performance suffers noticeably. Use Logzillas to speed up the ZIL. In case
you have two or four Logzillas use the 'striped' profile to further improve performance.
To switch off the in-memory write cache, select a storage in Oracle VDI Manager, click Edit to open the
Edit Storage wizard and unselect the Cache check box. The change will be applied to newly created
desktops for Oracle VM VirtualBoxs and to newly started desktops for Microsoft Hyper-V virtualization
platforms.
If you disable the ZIL temporarily, the ZIL is re-enabled when the system is rebooted. If you disable the
ZIL permanently, it remains disabled after the system is rebooted. When you change the ZIL setting,
the setting is only applied to a ZFS pool when it is mounted. If the ZIL is disabled, the ZFS pool must be
created, or mounted, or imported, after the setting is changed.
If you disable the ZIL setting permanently, the ZIL is disabled for all ZFS pools following a reboot. This can
cause undesirable behavior if the system's root volume is a ZFS volume because there is no synchronous
disk I/O. In this situation, it is best practice to use a storage host with at least two disks. Format the first
disk using the UFS file system, and use that disk for the operating system. Format the other disks using
ZFS, and use those disks as the ZFS storage. In this way, ZIL can be disabled without affecting the
performance of the operating system.
To disable the ZIL temporarily, run the following command as superuser (root):
# echo zil_disable/W0t1 | mdb -kw
To disable the ZIL permanently, edit the /etc/system as superuser (root) and add the following line.
175
Oracle VDI Global Settings for Storage
set zfs:zil_disable=1
Managing the ZIL - Oracle Solaris 10 8/11 (Update 10) and Later
Starting with Oracle Solaris 10 8/11 (Update 10), the steps for disabling the ZIL changed. The ZIL is
configured as a ZFS property on a dataset. This means different ZFS datasets can have different ZIL
settings and so you can disable the ZIL for a storage pool without affecting the ZFS volume of the
operating system.
The change takes effect immediately and the ZIL remains disabled on reboot.
176
Oracle VDI Global Settings for Storage
177
About Block Alignment
The storage.max.commands setting is the setting that is most often changed. By default, Sun ZFS
Storage Appliances can only execute four commands in parallel, and the remaining commands are
queued. To achieve better performance, Oracle VDI VDI intentionally overcommits the storage queue.
If your storage becomes slow, for example because of a heavy load, it can take too long for queued
commands to be executed, and if the commands take longer than the duration specified in the duration
settings, the storage might be marked incorrectly as unresponsive. If this happens regularly, you can
decrease the value of the storage.max.commands setting, but this might result in a decrease in
performance when the storage is not so busy.
The interval settings rarely need to be changed because the commands are performed only by the primary
host in an Oracle VDI Center. Decreasing the value of these settings results in more up-to-date information
about the storage disk space and a quicker detection of unresponsive storage hosts, but also increases the
load on the storage hosts. It is best to keep these settings at their defaults.
The duration settings include a good safety margin. Only change the duration settings if the storage is not
able to execute the commands in the allotted time.
By default, Windows XP does not correctly align partitions and the blocks are misaligned. Usually Windows
7 and later versions do align partitions correctly and the blocks are aligned.
178
About Block Alignment
To find the starting sector, divide the StartingOffset value by 512 (the block size of the hard disk):
32256 ÷ 512 = 63
An NTFS cluster is typically 4 kilobytes in size. So the first NTFS cluster starts at disk sector 63 and ends
at disk sector 70.
Storage types that use the Zettabyte File System (ZFS) file system have a default block size of 8 kilobytes.
So on the storage, the fourth ZFS block maps to disk sectors 48 to 63, and the fifth ZFS block sector maps
to disk sectors 64 to 79.
Storage types that use that use the Oracle Cluster File System version 2 (OCFS2) have a default block
size of 4 kilobytes. So on the storage, the eighth OCFS2 block maps to disk sectors 56 to 63, and the ninth
OCFS2 block sector maps to disk sectors 64 to 73.
A misalignment occurs on both storage types because more than one block on the storage must be
accessed to access the first NTFS cluster, as shown in Figure 7.2.
For a correct block alignment, the StartingOffset value must be exactly divisible by either 8192 or 4096,
depending on the block size used by the file system on the storage.
32768 ÷ 8192 = 4
32768 ÷ 4096 = 8
Example of How to Prepare a Disk for Windows XP with Correct Block Alignment
In this example, the disk utilities on a bootable live Linux system, such as Knoppix, are used to create a
disk partition with the blocks aligned correctly.
179
About Block Alignment
2. Assign the ISO image of the live Linux system to the CD/DVD-ROM drive of the virtual machine.
Use the fdisk -ul command to obtain information about the disk.
# fdisk -ul
Disk /dev/sda doesn't contain a valid partition table
Use the parted disk mklabel msdos command to create the partition table.
7. Create a new partition, specifying the start and end sectors of the partition.
Use the parted disk mkpartfs primary fat32 64s end-sectors command to create the
partition. The end-sector is the total number of sectors of the disk minus one. For example, if the
disk has 20971520 sectors, the end-sector is 20971519.
Depending on the version of parted used, you might see a warning that the partition is not properly
aligned for best performance. You can safely ignore this warning.
9. Shut down the virtual machine and unassign the ISO image.
10. Assign the Windows XP installation ISO image to the CD/DVD-ROM drive of the virtual machine.
180
Networking
13. (Optional) When prompted, change the file system from FAT32 to NTFS.
7.5. Networking
The following is a list of the types of network traffic created by Oracle VDI. The list is ordered by bandwidth
requirements, with highest bandwidth requirement listed first:
1. iSCSI traffic between VirtualBox and Microsoft Hyper-V virtualization hosts and storage hosts
3. ALP traffic between Sun Ray Clients and Oracle VDI hosts
4. RDP traffic between the RDP clients and Oracle VDI hosts or virtualization hosts
5. Database replication traffic between the master and slave database hosts in an Oracle VDI Center, or
between the primary Oracle VDI host and the external database, if an external database is used
6. SSH and HTTPS traffic between Oracle VDI hosts and storage hosts, or between Oracle VDI hosts and
virtualization hosts
By default the SSH traffic used for storage management and the iSCSI traffic used for virtual disks
use the same network interface. For reasons such as security considerations, routing requirements, or
traffic shaping, you might want to configure the iSCSI traffic to use a separate network interface. See
Section 7.5.1, “Configuring a Dedicated iSCSI Network”.
It is best practice to use link aggregation (also known as trunking or link bonding) for virtualization hosts
and storage hosts. This results in a balanced use of the physical network interfaces, a better network
throughput, as well as in the ability to keep an aggregated interface active if a physical interface goes
down. To use link aggregation, you need a switch that supports the Link Aggregation Control Protocol
(LACP). See Section 7.5.2, “Configuring Link Aggregation”
VLANs provide a way to tag and isolate network traffic and can improve performance and security. See
Section 7.5.3, “Configuring a VLAN” .
Link aggregation and VLANs can be used independently or together by tagging an aggregated link with a
VLAN ID.
For Sun Ray Clients, see the following sections in the Sun Ray Software Administration Guide for details of
how to improve network performance:
• Network Troubleshooting
• Performance Tuning
181
Configuring a Dedicated iSCSI Network
The dedicated iSCSI network interface must be configured before the first virtual disk is created on the
storage host.
5. Complete the steps of the Edit Storage wizard until you reach the Select ZFS Pool step.
6. On the Select ZFS Pool step, select a different network from the iSCSI Interface list.
7. Click Finish.
For example:
# dladm show-dev
e1000g0 link: up speed: 1000 Mbps duplex: full
e1000g1 link: up speed: 1000 Mbps duplex: full
e1000g2 link: down speed: 0 Mbps duplex: half
e1000g3 link: down speed: 0 Mbps duplex: half
Interfaces e1000g0 and e1000g1 are connected to ports 0 and 1 respectively on the switch.
182
Configuring Link Aggregation
For further information about link aggregation, refer to the documentation for your Oracle Solaris release.
1. Identify the switch ports that each network interface in the aggregation uses.
Consult the dladm man page for more information on the parameters below. The policy (-P L3) must
match the policy you configured for the switch ports. The last parameter, '1', indicates the aggregation
key.
# dladm create-aggr -P L3 -l active -T short -d e1000g0 -d e1000g1 1
You can view the aggregated device with dladm show-link and dladm show-aggr.
# dladm show-link
e1000g0 type: non-vlan mtu: 1500 device: e1000g0
e1000g1 type: non-vlan mtu: 1500 device: e1000g1
e1000g2 type: non-vlan mtu: 1500 device: e1000g2
e1000g3 type: non-vlan mtu: 1500 device: e1000g3
aggr1 type: non-vlan mtu: 1500 aggregation: key 1
#
# dladm show-aggr
key: 1 (0x0001) policy: L3 address: 0:14:4f:40:d2:4a (auto)
device address speed duplex link state
e1000g0 0:14:4f:40:d2:4a 0 Mbps half down standby
e1000g1 80:9c:4c:0:80:fe 0 Mbps half down standby
4. To make the device persistent, create a hostname file with the IP address assigned to the device, and
reboot.
# echo "192.168.1.101" > /etc/hostname.aggr1
# reboot -- -r
5. After the system is rebooted, verify that the device is plumbed and available.
# ifconfig -a
6. If this is an existing Oracle VM VirtualBox host, refresh the networks in Oracle VDI Manager.
Navigate to the Oracle VM VirtualBox desktop provider's Network tab and click Refresh.
If you have more than one network or subnet, ensure that the correct network is selected in the
Settings tab for each pool.
You can list the available devices on your system using the ifconfig command.
For further information about link aggregation, refer to the documentation for your Oracle Linux release.
Interfaces eth1 and eth2 are connected to ports 1 and 2 respectively on the switch.
1. Identify the switch ports that each network interface in the aggregation uses.
183
Configuring Link Aggregation
Edit the ifcfg-eth1 configuration file so that it contains only the following lines:
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
Edit the ifcfg-eth2 configuration file so that it contains only the following lines:
DEVICE=eth2
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
In the interface configuration file, you can just comment out lines that are not needed.
This sets the balancing mode to round robin and checks the card every 100 milliseconds. For other
options, refer to /usr/share/doc/iputils-20020927/README.bonding.
7. Use the ifconfig command to check that the bond0 interface is listed.
9. If this is an existing Oracle VM VirtualBox host, refresh the networks in Oracle VDI Manager.
Navigate to the Oracle VM VirtualBox provider's Network tab and click Refresh.
If you have more than one network or subnet, ensure that the correct network is selected in the
Settings tab for each pool.
184
Configuring a VLAN
For further information, refer to the documentation for your Oracle Solaris release.
1. Configure the switch ports used by the interfaces in the machine for the corresponding VLAN IDs
(VIDs).
Each VLAN interface has a physical point of attachment (PPA) which needs to be calculated using the
following formula: driver-name + VID * 1000 + device-instance.
5. If this is an existing Oracle VM VirtualBox host, refresh the networks in Oracle VDI Manager.
Navigate to theOracle VM VirtualBox desktop provider's Network tab and click Refresh.
If you have more than one network/subnet ensure that the correct network is selected in the Settings
tab for each pool.
1. Configure the switch ports used by the interfaces in the machine for the corresponding VIDs.
185
Virtual Machines
4. Use the ifconfig command to check that the eth0.3 interface is listed.
5. If this is an existing Oracle VM VirtualBox host, refresh the networks in Oracle VDI Manager.
Navigate to the Oracle VM VirtualBox desktop provider's Network tab and click Refresh.
If you have more than one network/subnet ensure that the correct network is selected in the Settings
tab for each pool.
2. Select a pool.
See Section 7.6.1.1, “Available Desktop Resource Settings” for details of the available settings.
5. Click Save.
See Section 7.6.1.1, “Available Desktop Resource Settings” for details of the available settings.
# /opt/SUNWvda/sbin/vda pool-setprops -p prop1=value1,prop2=value2 pool-name
In the following example, the CPU usage is set to 70% for the pool named MyPool.
# /opt/SUNWvda/sbin/vda pool-setprops -p cpu-cap=70 MyPool
186
Optimizing Windows 8 Desktop Images
Before enabling Windows System Preparation for a pool that uses Microsoft Hyper-V as the desktop
provider, install the Oracle VDI Tools on the template. The System Preparation action in the Template
tab will not work if you do not have the tools (vda-tools-x86.msifor 32-bit platforms or vda-tools-
x64.msi for 64-bit platforms) installed in your template.
187
Optimizing Windows 8 Desktop Images
Or, right-click in the bottom area of the Start screen, then click All Apps. Under Windows System, click
Control Panel. In Control Panel, click Appearance and Personalization, then Personalization.
If you want to use the Oracle VM VirtualBox Auto-Logon feature, disable the screen saver. Otherwise,
set a blank screen saver with password protect on resume.
b. Either set the screen saver to [None] to disable it, or set the screen saver to Blank and select On
resume, display logon screen.
a. Select Change mouse pointers from the left sidebar of the Personalization menu.
Right-click in the bottom area of the Start screen, then click All Apps. Under Windows System, click
Control Panel. In the Control Panel, clickSystem and Security.
b. Select Advanced system settings in the left sidebar. Then select Settings under the
Performance heading on the Advanced tab.
For a less drastic option, select Let Windows choose what's best for my computer.
188
Optimizing Windows 8 Desktop Images
4. (VMware vCenter Only) Configure power management in the Virtual Infrastructure Client.
c. Go to Options, then Power Management, and select Suspend the Virtual Machine.
a. Select Defragment and optimize your drives under the Administrative Tools heading, on the
System and Security menu.
b. If under Scheduled optimization you see Scheduled defragmentation is turned on, select
Configure Schedule. Ensure the Run on a schedule box is not checked.
b. Double-click Services.
As a minimum, disable the Windows Search Service, the SuperFetch Service, and the Disk
Defragmenter Service.
a. Select Schedule tasks under the Administrative Tools heading, on the System and Security
menu.
b. In the left sidebar, open the Task Scheduler Library and navigate your virus scanner's folder.
Other Optimizations
• Choose which programs start when Windows starts.
1. Right-click in the bottom area of the Start screen, then click All Apps. Under Windows System, click
Task Manager.
3. Disable any programs that you do not want Windows to run at startup.
189
Optimizing Windows 7 Desktop Images
1. By default, the Recycle Bin is located on the Desktop. Right-click on it, then select Properties.
2. On the General tab, select Custom size, and enter the desired value.
Due to a bug in Windows 7, the Windows Media Player Network Sharing Service causes the Windows
Sysprep tool to hang. If you do not need this service enabled in your Windows 7 desktops and you
intend to run System Preparation from Oracle VDI Manager, stop and disable it. If you prefer to leave
this service enabled, run Sysprep manually from within the template before importing it.
• For details about disabling Windows services, see "Security and Services" in Section 7.6.3,
“Optimizing Windows 7 Desktop Images”.
2. (Microsoft Hyper-V Only) Install the Oracle VDI Tools on the template.
The System Preparation action in the Template tab will not work if you do not have the tools (vda-
tools-x86.msifor 32-bit platforms or vda-tools-x64.msi for 64-bit platforms) installed on your
template.
Or, select Start, Control Panel, Appearance and Personalization, then Personalization.
190
Optimizing Windows 7 Desktop Images
If you want to use the Oracle VM VirtualBox Auto-Logon feature, disable the screen saver. Otherwise,
set a blank screen saver with password protect on resume.
b. Either set the screen saver to [None] to disable it, or set the screen saver to Blank and select On
resume, display logon screen.
a. Select Change mouse pointers from the left sidebar of the Personalization menu.
a. Select Change display settings in the left sidebar, then click Advanced Settings.
b. Select the Troubleshoot tab, then Change settings, and ensure that the Hardware acceleration
is set to Full.
b. Select Advanced system settings in the left sidebar. Then select Settings under the
Performance heading on the Advanced tab.
For a less drastic option, select Let Windows choose what's best for my computer.
191
Optimizing Windows 7 Desktop Images
ii. Click Change when the computer sleeps in the left sidebar, and set the desired value.
iii. Go to Options, then Power Management, and select Suspend the Virtual Machine.
a. Select Defragment your hard drive under the Administrative Tools heading, on the System and
Security menu.
b. If under Schedule you see Scheduled defragmentation is turned on, select Configure
Schedule. Ensure the Run on a schedule box is not checked.
b. Select Services.
As a minimum, disable the Windows Search Service, the SuperFetch Service, and the Disk
Defragmenter Service.
a. Select Schedule tasks under the Administrative Tools heading, on the System and Security
menu.
b. In the left sidebar, open the Task Scheduler Library and navigate your virus scanner's folder.
192
Optimizing Windows XP Desktop Images
Other Optimizations
• Choose which programs start when Windows starts.
4. Uncheck any programs that you do not want Windows to run at startup.
1. By default, the Recycle Bin is located on the Desktop. Right-click on it, then select Properties.
2. On the General tab, select Custom size, and enter the desired value.
The alignment of the blocks on the virtual disk can have a significant impact on the performance of the
storage. See Section 7.4.5, “About Block Alignment” for details of how to correct the block alignment.
Oracle VDI Fast Preparation (FastPrep) and Windows System Preparation (Sysprep) enable cloning
of Windows desktops by Oracle VDI. Oracle VDI FastPrep can be configured within a pool without any
desktop preparation. Before enabling Windows System Preparation for a pool, the desktop must be
prepared using the steps below.
1. (Microsoft Hyper-V Only) Install the Oracle VDI Tools on the template.
The System Preparation action in the Template tab will not work if you do not have the tools (vda-
tools-x86.msi for 32-bit platforms or vda-tools-x64.msi for 64-bit platforms) installed on your
template.
a. Log in to the template and download the appropriate Windows XP Deployment Tools for your
version of Windows XP.
193
Optimizing Windows XP Desktop Images
c. Unpack the contents of the Windows XP Deployment Tools (deploy.cab) into the C:\Sysprep
directory.
Or, select Start, Control Panel, Appearance and Themes, then Change the computer's theme.
c. Select Apply.
If you want to use the Oracle VM VirtualBox Auto-Logon feature, disable the screen saver. Otherwise,
set a blank screen saver with password protect on resume.
b. Either set the screen saver to [None] to disable it, or set the screen saver to Blank and select On
resume, display logon screen.
c. Select Apply.
c. On the Troubleshooting tab, ensure that the Hardware acceleration is set to Full.
d. Select Apply.
b. Under the Theme menu, Modified Theme should be highlighted because display properties have
been changed. If it is not highlighted, it is possible your personalization changes were not saved.
194
Optimizing Windows XP Desktop Images
a. Select Adjust visual effects from the Performance and Maintenance menu.
For a less drastic option, select Let Windows choose what's best for my computer.
iii. Go to Options, then Power Management, and select Suspend the Virtual Machine.
b. Select Services.
6. Run defragmentation.
b. Select Computer Management, then Disk Defragmenter from the left sidebar.
Other Optimizations
• Turn off automatic defragmentation.
195
Optimizing Windows XP Desktop Images
4. Select BootOptimizeFunction.
5. In the right side of the registry editor, check if Enable already exists. If it does not exist, create it.
6. Select Enable, and enter 'N' to turn off automatic disk defragmentation.
4. Uncheck any programs that you do not want Windows to run at startup.
1. Select Start, Control Panel, Sounds, Speech, and Audio Devices, then Change the sound
scheme.
3. Select Apply.
1. Select Start, Control Panel, Printers and Other Hardware, then Mouse.
2. On the Pointers tab, select Windows Black (system scheme) in the Scheme menu.
3. Select Apply.
1. By default, the Recycle Bin is located on the Desktop. Right-click on it, then select Properties.
2. On the Global tab, select Use one setting for all drives.
196
Optimizing Desktop Images for Other Operating Systems
• The alignment of the blocks on the virtual disk can have a significant impact on the performance of the
storage. See Section 7.4.5, “About Block Alignment” for details of how to correct the block alignment.
• (VRDP Only) Do not use a mouse pointer theme that uses alpha blending.
197
198
Chapter 8. Monitoring and Maintaining Oracle VDI
Table of Contents
8.1. Logging in to Oracle VDI Manager ............................................................................................ 199
8.2. Logging in to the Sun Ray Administration Tool .......................................................................... 200
8.3. Oracle VDI Administrators ........................................................................................................ 200
8.3.1. About Oracle VDI Role-Based Administration ................................................................. 200
8.3.2. Creating Administrators and Assigning Roles .................................................................. 202
8.4. Monitoring Oracle VDI in Oracle Enterprise Manager ................................................................. 204
8.5. Checking Oracle VDI Services and Logs ................................................................................... 205
8.5.1. Checking the Status of the Oracle VDI Center ................................................................ 206
8.5.2. Checking the Status of the Oracle VDI Service ............................................................... 206
8.5.3. Checking the Status of the Oracle VDI Database ............................................................ 207
8.5.4. Checking the Oracle VDI Log Files ................................................................................ 207
8.5.5. Changing Logging for Oracle VDI .................................................................................. 208
8.5.6. Checking the Status of the Oracle VDI RDP Broker ........................................................ 209
8.5.7. Checking the Status of the Oracle VDI Center Agent ...................................................... 209
8.5.8. Checking the Status of Oracle VDI Manager .................................................................. 210
8.5.9. Checking the Status of Cacao and the Oracle VDI Modules ............................................. 210
8.6. Controlling the Oracle VDI Service ........................................................................................... 211
8.7. Backing Up and Restoring the Oracle VDI Database ................................................................. 211
8.7.1. Backing Up the Oracle VDI Database ............................................................................ 212
8.7.2. Restoring the Oracle VDI Database ............................................................................... 212
8.8. About Desktop Provider Alarms ................................................................................................ 213
8.8.1. Reconfiguring an Oracle VM VirtualBox Host .................................................................. 213
8.8.2. Reloading iSCSI or Sun ZFS Storage Configuration on Oracle VM VirtualBox Hosts .......... 215
8.9. Maintenance Mode ................................................................................................................... 215
8.9.1. Oracle VM VirtualBox and Microsoft Hyper-V Host Maintenance ...................................... 215
8.9.2. Storage Maintenance .................................................................................................... 216
8.10. Deleting Orphan Disks ........................................................................................................... 217
8.11. Oracle VDI Centers and Failover ............................................................................................ 218
8.11.1. Identifying Hosts With a Role in an Oracle VDI Center .................................................. 218
8.11.2. Rebooting the Master Database Host Without Causing a Failover .................................. 219
8.11.3. Changing the Master Database Host ............................................................................ 220
8.11.4. Changing the Replication Database Host ...................................................................... 221
8.11.5. Tuning Automatic Failover ........................................................................................... 221
8.11.6. Triggering a Failover Manually ..................................................................................... 222
8.11.7. Removing an Unresponsive Host from an Oracle VDI Center ......................................... 223
8.11.8. Changing the Sun Ray Primary Server ......................................................................... 223
8.11.9. Synchronizing the Sun Ray Group Signature and Data Store Password .......................... 224
199
Logging in to the Sun Ray Administration Tool
Steps
The browser displays a security warning and prompts you to accept the security certificate.
3. Log in as an administrator.
You specified the user name of the default administrator when you configured the Oracle VDI Center.
For more information on administrators, see Section 8.3, “Oracle VDI Administrators”.
1. Go to https://host-name:1661.
The browser displays a security warning and prompts you to accept the security certificate.
Note
Oracle VDI does not use the default admin user account that is normally
configured as part of the Sun Ray Software installation.
Oracle VDI uses role-based access control to restrict system access to the two main administrative areas,
Companies and Desktop Providers. There are predefined roles to which administrators can be assigned to
perform a job function.
• Administrator : This type has full read and write access to an area.
200
About Oracle VDI Role-Based Administration
• Primary Administrator
This role has full access to Oracle VDI. It can create, edit, and remove companies. The role inherits the
Company Administrator and Desktop Provider Administrator roles.
• Company Administrator
This role can create and delete pools. It provides full access to the template management. The role
inherits the Company Operator role.
• Company Operator
This role can edit pool settings and assign users to pools. It provides full access to the desktops. The
role inherits the Company Monitor role.
• Company Monitor
This role can view all details in the Users and Pools area.
This role can create, edit and delete desktop providers, and edit all settings. The role inherits the
Desktop Provider Monitor role.
This role can view all details in the Desktop Provider area.
When you configure a new Oracle VDI Center, you are prompted for the user name of the user that is to be
assigned the Primary Administrator role. Other users can then be granted administrative privileges by this
user. There must always be at least one Primary Administrator.
An administrator can be assigned more than one role but there are restrictions on the combinations. An
administrator can have only one of the following:
• The Users and Pools areas are shown to Company roles and the Primary Administrator role.
• The Desktop Provider area is shown to Desktop Provider roles and the Primary Administrator role.
Cross-area links are disabled, if the administrator does not have the required viewing rights for the target
area of the link.
201
Creating Administrators and Assigning Roles
Within an area, the appearance of Oracle VDI Manager is not changed depending on the roles assigned to
the administrator. All buttons or action items appear active. When an administrator attempts to perform the
operation that is not permitted, the operation fails and the following message is displayed:
You do not have sufficient administration rights to perform this operation.
The root user is no different to any other user and can only access Oracle VDI Manager if they are
assigned an administrator role.
In Oracle VDI Manager, a Primary Administrator cannot edit their own role assignments, or remove
their own user name from the list of administrators. These tasks must be performed by another Primary
Administrator.
The root user can always run Oracle VDI commands, even if they are not assigned any administrator roles.
Every time a non-root user runs a vda command, they are prompted for a password.
To run a vda command with an identity other than the current user, set the VDA_USERNAME environment
variable to the required user name. When you run a command in this way, you enter the password of the
VDA_USERNAME user.
If the administrator does not have the permission to run a vda subcommand, the command fails and the
following message is displayed:
You do not have sufficient administration rights to perform this operation.
On the command line, a Primary Administrator can edit their own role assignments and remove their own
user name from the list of administrators.
Role-Based Administration and the Enterprise Manager Plug-in for Oracle VDI
Role-Based administration applies to monitoring data collection by the Enterprise Manager Plug-in for
Oracle VDI. To enable monitoring of Oracle VDI targets, the Management Agent, which is an Oracle
Enterprise Manager component, establishes a secure connection to the Oracle VDI Center Agent. In this
process, the Management Agent must authenticate as an Oracle VDI administrator.
For security and auditing purposes, it is recommended that you configure a dedicated administrator
account for the plug-in. This administrator account requires the Company Monitor and Desktop Provider
Monitor roles.
For more information about administrators and roles, see Section 8.3.1, “About Oracle VDI Role-Based
Administration”.
A Primary Administrator cannot edit their own role assignment, or remove their own user name from the list
of administrators. These tasks must be performed by another Primary Administrator.
202
Creating Administrators and Assigning Roles
4. Add an administrator.
c. Click OK.
The new administrator is added to the list and is assigned the Company Monitor role by default.
b. Select the check box for the role(s) you want to assign to the administrator and click the Save
button.
Only a Primary Administrator, the root user, or a user that has assumed the root role (Oracle Solaris
platforms) can assign administration privileges.
For example:
# /opt/SUNWvda/sbin/vda admin-assign -r provider.operator jsmith
203
Monitoring Oracle VDI in Oracle Enterprise Manager
Monitoring metrics over time allows you to identify potential bottlenecks and take preventive or corrective
actions. Critical failures may also occur, and require immediate attention. For all metrics a threshold can be
defined. Crossing a threshold triggers a corresponding event. The Enterprise Manager Plug-in for Oracle
VDI includes predefined thresholds for the many of the collected metrics. These defaults can be changed
as required for every metric.
An Oracle VDI deployment consists of different types of resources, and usually several of each type.
A single Oracle VDI Center contains one or more hosts, at least one company with its desktop pools,
a number of desktop providers that may also contain several hosts, and possibly different types of
storage. Because the number of components involved increases quickly, it is difficult to monitor the
entire environment from Oracle VDI Manager. The Enterprise Manager Plug-in for Oracle VDI groups all
these separate monitoring targets together in a unified view, making the monitoring of your Oracle VDI
environment a much easier job.
When you add an Oracle VDI Center target to Oracle Enterprise Manager for monitoring, the plug-in
detects and adds all child targets associated with the Oracle VDI Center. The result is a hierarchical view
of all targets, displayed in the Target Navigation pane. The following screenshot illustrates how an Oracle
VDI target page is constructed. The Target Navigation pane is located on the left hand side and can be
hidden. The content pane is the main part of the screen and displays the target monitoring data, logically
grouped in a number of information panels. The content pane changes based on the target selected in the
navigation tree.
204
Checking Oracle VDI Services and Logs
Figure 8.1. Target Monitoring with the Enterprise Manager Plug-in for Oracle VDI
The following table identifies the page elements indicated in the image.
Item Description
1 Navigation pane
2 Content pane
3 Monitoring panels
For detailed information about the plug-in, how to install it and use it to monitor your Oracle VDI installation,
see the Enterprise Manager Plug-in User's Guide for Oracle Virtual Desktop Infrastructure.
The Oracle VDI Service and Center Agent run as modules in the Common Agent Container (Cacao). If you
encounter any issues, check the status of Cacao and the modules, as well as the status of the Oracle VDI
services.
205
Checking the Status of the Oracle VDI Center
# /opt/SUNWvda/sbin/vda-center status
For example:
# /opt/SUNWvda/sbin/vda-center status
HOST NAME HOST STATUS SERVICE SERVICE STATUS
vdi1.example.com Up VDI Database Replication Up
vdi2.example.com Up VDI Database Up
2 host(s) in center.
The following table shows the possible values for the host status with a description of what it means.
This status should only occur for a short period after starting Oracle VDI
services on a host.
Unconfigured The Oracle VDI Center Agent is running, but it is reporting that the host is
not part of an Oracle VDI Center.
Unknown The Oracle VDI Center Agent is running on the host but is reporting an
unrecognized status.
Unreachable The host was not contactable due to a network-related error.
Unresolved The name of the host could not be resolved to an IP address.
Up The Oracle VDI Center Agent is running.
• The database role of the host, if the embedded MySQL Server database is used (SERVICE column).
• The status of the Oracle VDI database service (SERVICE STATUS column).
In case of problems, check the log files for messages beginning with com.sun.vda.cluster. See
Section 8.5.4, “Checking the Oracle VDI Log Files”.
206
Checking the Status of the Oracle VDI Database
# /opt/SUNWvda/sbin/vda-service status
For example:
# /opt/SUNWvda/sbin/vda-service status
vda instance is ENABLED at system startup.
Smf monitoring process:
11761
11762
Uptime: 2 day(s), 23:22
In case of problems, check the log files, see Section 8.5.4, “Checking the Oracle VDI Log Files”.
# /opt/SUNWvda/sbin/vda-db-status
For example:
# /opt/SUNWvda/sbin/vda-db-status
Ip/Hostname Database host Role Status
----------------------------------------------------------------------
vdi1.example.com Master up
vdi2.example.com Slave up
On Oracle Solaris platforms, you can also check the status of the Oracle VDI database using the Service
Management Facility. This only checks the status of the database on the local host and is only available
if you are using the embedded MySQL Server database. The master database runs on the primary host.
The slave (replication) database service runs in the first secondary host added to the Oracle VDI Center.
On the primary host or the first secondary host, run the following command as root.
# svcs svc:/application/database/vdadb:default
For example:
# svcs svc:/application/database/vdadb:default
STATE STIME FMRI
online Sep_30 svc:/application/database/vdadb:default
In case of problems on Oracle Solaris platforms, check the log file at /var/svc/log/application-
database-vdadb:default.log. There is no equivalent log file on Oracle Linux platforms.
Log messages at SEVERE or WARNING level are also forwarded to the syslog daemon.
207
Changing Logging for Oracle VDI
Oracle VDI monitors the Cacao log files and, when it detects the cacao.2 log file, it moves it in to a
timestamped zip archive. The number and size of the log archives is configurable. By default, Oracle VDI
retains 10 log archives and the default maximum archive file size is 95 megabytes (100000000 bytes plus
the remainder of the log file which crosses that threshold).
You can change the logging level and the log archiving.
Changing the Logging Level
The logging levels are from SEVERE (shows the least detail) to FINEST (shows the most detail).
For example, to reset the logging level to the default for the Oracle VDI service:
# cacaoadm set-filter -p com.sun.vda.service=ALL -i vda
After changing the logging level, you must restart the Oracle VDI service for the change to take effect.
• Change the number of log archives that Oracle VDI retains and the log archive size.
size is the maximum size of the log archive in bytes. The default is 100000000 bytes.
208
Checking the Status of the Oracle VDI RDP Broker
A restart of the Oracle VDI service is not required for the change to take effect.
# /opt/SUNWvda-rdpb/bin/brokeradm status
For example:
# /opt/SUNWvda-rdpb/bin/brokeradm status
broker is running (PID 18204)
proxy is running (PID 18223)
On Oracle Solaris platforms, the RDP broker and proxy services also run under the Service
Management Facility. Run the following commands as root.
# svcs svc:/application/rdpb-broker:default
# svcs svc:/application/rdpb-proxy:default
For example:
• /var/svc/log/application-rdpb-broker:default.log
• /var/svc/log/application-rdpb-proxy:default.log
• /opt/SUNWvda-rdpb/var/log/brokerPID.log
• /opt/SUNWvda-rdpb/var/log/proxyPID.log
# /opt/SUNWvda/sbin/vda-center agent-status
For example:
# /opt/SUNWvda/sbin/vda-center agent-status
Agent is up for 2 day(s), 23:32.
MD5 fingerprint is 07:A0:6C:4C:1D:5F:5B:20:A0:2A:FE:EA:1F:DB:B2:24.
209
Checking the Status of Oracle VDI Manager
In case of problems, check the log files for messages beginning with com.sun.vda.cluster. See
Section 8.5.4, “Checking the Oracle VDI Log Files”.
For example:
# /opt/SUNWvda/sbin/vda-webserver status
Oracle Virtual Desktop Infrastructure Manager is running (pid 18106).
8.5.9. Checking the Status of Cacao and the Oracle VDI Modules
You use the cacaoadm command to check the status of Cacao and the individual Oracle VDI modules. On
Oracle Solaris platforms, Cacao is included with the operating system. On Oracle Linux platforms, Cacao
is installed as part of Oracle VDI. On Oracle Linux platforms, the cacaoadm command is in /opt/sun/
cacao2/bin.
When you check the status of Cacao, the command shows whether the Cacao management daemon is
enabled or disabled, its associated process numbers, and its uptime.
When you check the status of the individual modules, the commands report the following information about
the module:
• Operational State: either ENABLED (the module is able to offer service) or DISABLED (the module is
unable to offer service). The DISABLED state indicates that Cacao has detected an error for the module
and the module is not operational.
• Administrative State: either LOCKED (the module must not offer service) or UNLOCKED (the module
must offer service).
• Availability Status: the availability status is empty unless the operational state is set to DISABLED.
If this is the case, the values are either DEPENDENCY (the module cannot operate because another
resource on which it depends is unavailable), OFF_LINE (a routine operation is needed to bring the
module back into use), or FAILED (the module has an internal fault that prevents it from operating).
In case of problems, check the log files, see Section 8.5.4, “Checking the Oracle VDI Log Files”.
For example:
# cacaoadm status -i vda
vda instance is ENABLED at system startup.
Smf monitoring process:
11761
11762
Uptime: 2 day(s), 23:22
210
Controlling the Oracle VDI Service
The vda-service status command shows the same information, see Section 8.5.2, “Checking the
Status of the Oracle VDI Service”.
For example:
# cacaoadm status -i vda com.sun.vda.service
Operational State:ENABLED
Administrative State:UNLOCKED
Availability Status:[]
Module is in good health.
Checking the Status of the Oracle VDI Service Center Agent Module
• Run the following command as root.
# cacaoadm status -i vda com.sun.vda.center
For example:
# cacaoadm status -i vda com.sun.vda.center
Operational State:ENABLED
Administrative State:UNLOCKED
Availability Status:[]
Module is in good health.
• To stop the Oracle VDI Service on a host, run the following command as root:
# /opt/SUNWvda/sbin/vda-service stop
• To start the Oracle VDI Service on a host, run the following command as root:
# /opt/SUNWvda/sbin/vda-service start
• To restart the Oracle VDI Service on a host, run the following command as root:
# /opt/SUNWvda/sbin/vda-service restart
The information in this section should be used for both the embedded Oracle VDI MySQL Server database
and a remote MySQL database. To learn more about Oracle VDI database configurations, see Section 2.1,
“About Oracle VDI Centers and Hosts”.
211
Backing Up the Oracle VDI Database
• If the Oracle VDI Center contains multiple hosts, the backup only needs to be performed on one host.
• The backup only archives the content of the Oracle VDI database. The virtual machine configuration
settings and disks for both desktops and templates are not backed up.
• The backup job stops all other jobs in the Oracle VDI Center. Jobs are automatically started again after
the backup finishes.
1. In Oracle VDI Manager, select Settings, select the Oracle VDI Center and then select the Database
tab.
By default, the backup job creates a zip file on the host, /var/tmp/vdi-backup-timestamp.zip.
Use the Path and Name fields to specify a different directory or file name.
Use the Server field to create the backup on an NFS share on a different host. The NFS share must be
accessible from the host on which you create the backup job.
3. Click OK.
Use the -s option to create the backup on an NFS share on a different host. The NFS share must be
accessible from the host on which you create the backup job.
For example:
# /opt/SUNWvda/sbin/vda-backup -s storage.example.com -p /export/vdi-backups
/net/storage.example.com/export/vdi-backups/vdi-backup-timestamp.zip
• If the Oracle VDI Center contains multiple hosts, you can restore the database on any host. Only restore
the database from one host.
212
About Desktop Provider Alarms
• Desktops created after the database backup was taken are not restored and result in orphaned disks
that have no desktop.
• Desktops deleted after the database backup was taken are restored and result in orphaned desktops
that have no disk.
• All user assignments to desktops after the database backup was taken are lost.
• All jobs that are currently running in the Oracle VDI Center are canceled.
• The restore job stops Oracle VDI services in the Oracle VDI Center, however active sessions continue to
run. When a restore job finishes, you must restart the Oracle VDI service on all hosts.
Currently it is not possible to restore the Oracle VDI database using Oracle VDI Manager.
Command Line Steps
2. After the restore job finishes, restart the Oracle VDI service on all hosts.
The icons next to the Alarms heading change depending on the status of the desktop providers in the
Oracle VDI environment. For each alarm state displayed, a counter specifies how many desktop providers
are currently in that state. The valid states include:
• Major Alarm: An alarm condition occurred that is currently impairing service but not seriously. The
condition needs to be corrected before it becomes more severe. A major alarm is represented by a
yellow icon.
• Critical Alarm: An alarm condition occurred that is seriously impairing service and requires immediate
correction. The critical alarm is represented by a red icon.
Each alarm counter is also a link that displays the Desktop Providers page based on the following
conditions:
• If you click on the Major alarms link, the Desktop Providers page is displayed and lists the desktop
providers that currently have major or critical alarms.
• If you click on the Critical alarms link, the Desktop Providers page is displayed and lists the desktop
providers that currently have critical alarms.
213
Reconfiguring an Oracle VM VirtualBox Host
In these situations, the solution is to edit the configuration of the VirtualBox host.
Oracle VDI Manager Steps
1. In Oracle VDI Manager, select Desktop Providers and then select the desktop provider with the
problem.
a. In the Host field, enter the fully-qualified DNS name or IP address of the VirtualBox host.
b. In the SSL Port field, enter the port number to use for SSL communication with the VirtualBox host.
This is the port that was specified when VirtualBox was installed. The default SSL port is port 443.
c. In the SSH Port field, enter the port number used for SSH connections to the VirtualBox host.
d. In the User Name and Password fields, enter the credentials of a user with root access to the
VirtualBox host.
5. On the Verify Certificate step, check that the SSH and SSL certificate details are correct and click
Finish.
This is an important security step that ensures you are adding a genuine VirtualBox host to the desktop
provider.
The Edit Host window is closed and a message is displayed to confirm that the host has been updated.
After a few moments the status of the host changes to Enabled.
1. Edit the configuration of the provider host using the vda provider-host-setprops command.
/opt/SUNWvda/sbin/vda provider-host-setprops -h host \
-p username=username,password-prompt,certificate=update,sshcertificate=update provider
For example:
/opt/SUNWvda/sbin/vda provider-host-setprops -h vb1.example.com\
-p username=root,password-prompt,certificate=update,sshcertificate=update MyProvider
Enter password for user root on host vb1.example.com:
SSL Certificate:
MD5: 7AA02D6357FE5A2D68DB6484750F6F0E
Company: Oracle Corporation
City: Redwood Shores
State: Ca
Country: US
SSH Certificate:
Issued By: vb1.example.com
Key:
Finger print: 85:fd:e6:22:3a:13:46:6e:e0:ed:5a:0c:f6:42:ca:76
214
Reloading iSCSI or Sun ZFS Storage Configuration on Oracle VM VirtualBox Hosts
2. Check the status of the provider host using the vda provider-list-hosts command.
In these situations, the problem can often be cleared by forcing Oracle VDI to reload the storage
configuration for the desktop provider. When you do this, Oracle VDI performs all the normal steps for
adding an iSCSI or Sun ZFS storage apart from formatting the OCFS2 file system (the file system is
aready formatted). You can only perform this operation if the status of all the virtualization hosts for the
provider is Enabled.
Use the following command to reload the storage configuration for a desktop provider:
/opt/SUNWvda/sbin/vda provider-vb-reconfigure provider
Maintenance mode is available for Oracle VM VirtualBox and Microsoft Hyper-V desktop providers only.
• Migrate Desktops - Offered only if Oracle VDI thinks there are other compatible hosts. Otherwise,
"Shutdown and Restart Desktops" is offered.
• Desktops are migrated one after the other. A desktop being migrated will be temporarily unavailable for
up to a minute.
• Always offered.
Note
A compatible VirtualBox host must have identical, or very similar, CPU models.
Attempting to resume a desktop on a different CPU model will often result in a
215
Storage Maintenance
failure. Oracle VDI verifies that hosts have the correct CPU manufacturer. The
administrator is responsible for ensuring that the CPU models are compatible.
Desktop providers with a single VirtualBox or Microsoft Hyper-V host will be able to suspend all running
desktops associated with the specified host.
Desktop providers with more than one VirtualBox host allow running desktops to be migrated to other
enabled hosts. Depending on host compatibility one of two migration options will be available. If Oracle VDI
detects other compatible hosts, it will attempt to migrate each desktop by suspending it and resuming it
on another host. If no compatible hosts are detected, Oracle VDI will attempt to shutdown and restart the
desktops on other hosts. A compatible VirtualBox host must have identical, or very similar, CPU models.
Oracle VDI verifies that hosts have the correct CPU manufacturer. The administrator is responsible for
ensuring that the CPU models are compatible. Oracle VDI also checks for valid VirtualBox releases.
With Microsoft Hyper-V, the desktops cannot be migrated to another host. They are suspended and will
be restarted on the same host. In the event that the disk number associated with a desktop has changed
during the host maintenance period (this may happen if the Hyper-V host is rebooted), Oracle VDI must
power off the desktop before it can be restarted, causing any suspend data to be lost.
1. Select the Desktop Providers category, and click the desktop provider containing the host you would
like to suspend.
2. Select the Host tab, select the host to migrate and click the Maintenance button.
• To move the desktops to a different host, select the Migrate Desktops option.
• To suspend all desktops on the host, select the Suspend Desktops option.
b. Choose a time for the server to enter maintenance mode or click Now.
When placing a Microsoft Hyper-V host or a storage host in maintenance mode, all desktops must be
powered off.
In Oracle VDI, you can clear or suspend running desktops on virtualization hosts and storage servers.
Maintenance mode allows administrators to perform typical maintenance tasks on servers (rebooting,
upgrading) with minimal impact to users.
216
Deleting Orphan Disks
2. Select the desktop provider containing the storage server you would like to suspend.
3. Go to the Storage tab, select the storage server, and click the Maintenance button.
4. Choose a time for the server to enter maintenance mode, or click Now.
Note
All running desktops associated with a host or storage server can be manually shut
down or suspended on the Storage or Host Desktop tab. To access this tab, click
the Host or Storage server link.
Orphan disks are those storage volumes that are not currently mapped to any desktop or template and can
be deleted to free up space. Orphan disks that have descending clones cannot be deleted.
Note
Some orphan disks may still hold important data. Make sure the data on an orphan
disk is no longer needed before you delete it.
Note
217
Oracle VDI Centers and Failover
If you are using the embedded MySQL database, database high availability is only enabled if there is a
functioning replication database host. A failover is triggered if the master database fails. During failover,
the host that runs the replication database is automatically promoted to run the master database. When
connectivity to the original master database host is restored, it hosts the replication database.
Warning
Do not reboot the master database host as this might trigger a failover. To safely
reboot the master database host, see Section 8.11.2, “Rebooting the Master
Database Host Without Causing a Failover”.
If you are using a remote MySQL database, database failover is not available and you must make your
own provision for database high availability. This is configured outside of Oracle VDI.
Sun Ray Software high availability does not require failover. During a database failover, the Sun Ray
primary server is not reconfigured automatically.
If the master database host and the Sun Ray primary server are the same host, that host is traditionally
called the Oracle VDI primary host. After a database failover, the Sun Ray primary host can be manually
reconfigured in order to maintain the Oracle VDI primary host.
The host that runs the master database for the Oracle VDI Center.
If you are using a remote MySQL database, the master database host is not set.
Identification:
• In Oracle VDI Manager, on the Summary tab for the Oracle VDI Center (under Settings).
The host that runs the replication database for the Oracle VDI Center.
218
Rebooting the Master Database Host Without Causing a Failover
If you are using a remote MySQL database, the replication database host is not set.
Identification:
• In Oracle VDI Manager, on the Summary tab for the Oracle VDI Center (under Settings).
The host that is configured as the primary server in the Sun Ray failover group.
Identification:
If you are using the embedded MySQL database, the primary host is the host that runs the master
database host and is configured as the Sun Ray primary server. If the master database hosts and the
Sun Ray primary server are not the same, the Oracle VDI primary host is not set.
If you are using a remote MySQL database, the Oracle VDI primary host is the same as the Sun Ray
primary server by default.
Identification:
Perform the following steps to reboot the master database host without causing a failover.
Caution
The Oracle VDI service and Oracle VDI Manager are not be able to operate until
the master database host is available again. Users will be unable to access any
desktops.
219
Changing the Master Database Host
If you are using a remote MySQL database instead of the embedded MySQL Server database, you can
safely reboot the primary host because a failover does not occur with remote databases.
Steps
Use either the vda-db-status or the vda-center status command to identify the location of the
replication database. In Oracle VDI Manager, this information is shown on the Database tab for the
Oracle VDI Center (under Settings).
2. Stop the Oracle VDI service on the host that runs the replication database.
Use either the vda-db-status or the vda-center status command to check the status of the
database. In Oracle VDI Manager, this information is shown on the Database tab for the Oracle VDI
Center (under Settings). You can do this on any host in the Oracle VDI Center.
You can change the master database host at any time. When you do this, you should also consider
changing the Sun Ray primary server to maintain a single primary host in the Oracle VDI Center.
Whenever you change the Sun Ray Software primary server, it causes a short interruption to Sun Ray
services (warm restart) and all Sun Ray Clients are disconnected. This might require users to log in again
or unlock their screens.
It is not possible to change the master database host using Oracle VDI Manager.
Command Line Steps
1. Change the primary host using the vda-center setprops command as root.
To change the master database host and the Sun Ray primary server, run the following command as
root:
# /opt/SUNWvda/sbin/vda-center setprops -p vda.primary.host=<host>
To change only the master database host, run the following command as root:
# /opt/SUNWvda/sbin/vda-center setprops -p db.master.host=<host>
2. Check that the change has taken effect using the vda-center command as root.
220
Changing the Replication Database Host
# /opt/SUNWvda/sbin/vda-center status
You can only change the replication database host in Oracle VDI Manager if you log in as root. If root is not
configured to be primary administrator, you can only change the replication database host on the command
line.
Oracle VDI Manager Steps
1. In Oracle VDI Manager, select Settings and then select an Oracle VDI Center.
1. Change the replication host using the vda-center setprops command as root.
# /opt/SUNWvda/sbin/vda-center setprops -p db.replication.host=<host>
If you specify an empty <host>, you turn off database replication and high availability.
2. Check that the change has taken effect using the vda-center command as root.
# /opt/SUNWvda/sbin/vda-center status
Property Description
db.connection.timeout The connection timeout in milliseconds for database
connections.
221
Triggering a Failover Manually
Property Description
The Oracle VDI Center Agent monitors the database error
reports from the Oracle VDI Service. If database errors are
reported continuously for this period of time, the database
is considered as failed. If the embedded Oracle VDI MySQL
Server database is used, failover is triggered.
If set to true, the host that runs the master database in the
Oracle VDI Center is automatically configured as the Sun Ray
primary server when a failover is performed. This causes a
short interruption to Sun Ray services (warm restart) and all
Sun Ray Clients are disconnected. This might require users to
log in again or unlock their screens.
To trigger failover manually, you change the master database host. See Section 8.11.3, “Changing the
Master Database Host” for details.
222
Removing an Unresponsive Host from an Oracle VDI Center
1. Check the configuration of the Oracle VDI Center and reconfigure it if needed.
If the Oracle VDI Center contains multiple hosts, run the following command as root to identify the
master database host, the replication database host, and the Sun Ray primary server:
# /opt/SUNWvda/sbin/vda-center getprops \
-p db.master.host,db.replication.host,srs.primary.host
If the unresponsive host is shown in the output of this command, reconfigure the Oracle VDI Center as
follows:
Configure another host as the master database host. See Section 8.11.3, “Changing the Master
Database Host” for details.
Configure another host to run the replication database so that high availability is maintained. See
Section 8.11.4, “Changing the Replication Database Host” for details.
If the host is not the master database host (db.master.host), configure another host as the Sun
Ray primary server. See Section 8.11.8, “Changing the Sun Ray Primary Server” for details.
Run the following command as root on any of the remaining hosts in the Oracle VDI Center:
# /opt/SUNWvda/sbin/vda-center purge <host>
3. Check that the change has taken effect using the vda-center command as root.
# /opt/SUNWvda/sbin/vda-center status
Each Sun Ray server has its own local copy of the Sun Ray data store, which is used to store information
such as details about Sun Ray Clients and tokens (smart cards). The Sun Ray primary server has read and
write access to the data store, while the Sun Ray secondary servers only have read access. Any changes
to the data store are first written on the primary server and the primary then replicates the changes to the
secondaries.
If the Sun Ray primary server becomes unavailable, changes to the data store cannot be stored but the
overall Sun Ray system continues to work because most Sun Ray operations only require read access to
the data store. However, some functions, such as token registration, are not available.
223
Synchronizing the Sun Ray Group Signature and Data Store Password
You can change the Sun Ray primary server at any time. When you do this, you should also consider
changing the master database host to maintain a single primary host in the Oracle VDI Center (if you are
using the embedded MySQL database).
Whenever you change the Sun Ray Software primary server, it causes a short interruption to Sun Ray
services (warm restart) and all Sun Ray Clients are disconnected. This might require users to log in again
or unlock their screens.
It is not possible to change the primary Sun Ray server using Oracle VDI Manager.
Command Line Steps
To change the master database host and the Sun Ray primary server, run the following command as
root:
# /opt/SUNWvda/sbin/vda-center setprops -p vda.primary.host=<host>
To change only the Sun Ray primary server, run the following command as root:
# /opt/SUNWvda/sbin/vda-center setprops -p srs.primary.host=<host>
8.11.9. Synchronizing the Sun Ray Group Signature and Data Store Password
The Sun Ray servers in an Oracle VDI Center have a group signature and a data store password. The
group signature and password are created and stored in both the Oracle VDI Center and in the Sun Ray
server configuration. The Oracle VDI Center Agent uses these values whenever it adds and removes hosts
in the Oracle VDI Center.
It is possible to use the Sun Ray administration tools to change either the group signature or the data store
password, but these tools do not update the Oracle VDI Center. If the Oracle VDI Center and the Sun Ray
servers are not synchronized, you cannot add hosts to an Oracle VDI Center.
Caution
The following commands display the password and group signature in plain text.
For security reasons, ensure that no-one is overlooking you when you run the
commands.
1. (Optional) Synchronize the group signature for the Oracle VDI Center.
Verify that the group signature change has taken effect, run the following command as root on each
host in the Oracle VDI Center:
# cat /etc/opt/SUNWut/gmSignature
2. (Optional) Synchronize the data store password for the Oracle VDI Center.
224
Synchronizing the Sun Ray Group Signature and Data Store Password
Verify that the data store password change has taken effect, run the following command as root on
each host in the Oracle VDI Center:
# /opt/SUNWut/sbin/utpw -p
3. Perform a warm restart of Sun Ray services on each host in the Oracle VDI Center.
You must perform a warm restart of Sun Ray services in the Oracle VDI Center for changes to either
the data store password or the group signature to take effect. A warm restart temporarily disconnects
users and might require them to log in again or unlock their screens.
Run the following command on each host in the Oracle VDI Center as root:
# /opt/SUNWut/sbin/utstart
225
226
Chapter 9. Managing Desktops, Templates, App-V Repositories,
and Revisions
Table of Contents
9.1. Managing Desktops ................................................................................................................. 228
9.1.1. Obtaining the ID of a Desktop ....................................................................................... 228
9.1.2. Importing a Desktop ...................................................................................................... 228
9.1.3. Renaming a Desktop ..................................................................................................... 229
9.1.4. Starting a Desktop ........................................................................................................ 230
9.1.5. Restarting a Desktop ..................................................................................................... 230
9.1.6. Assigning a Desktop to a User ...................................................................................... 231
9.1.7. Duplicating a Desktop ................................................................................................... 232
9.1.8. Exporting a Desktop ...................................................................................................... 232
9.1.9. Exporting User Profiles from Personal Hard Drives ......................................................... 233
9.1.10. Converting a Desktop to a Template ............................................................................ 234
9.1.11. Activating an Unresponsive Desktop ............................................................................ 234
9.1.12. Recloning Selected Desktops ....................................................................................... 235
9.1.13. Recloning All Unused Desktops ................................................................................... 235
9.1.14. Suspending a Desktop ................................................................................................ 236
9.1.15. Shutting Down a Desktop ............................................................................................ 236
9.1.16. Powering Off a Desktop ............................................................................................... 237
9.1.17. Mounting an ISO Image in a Desktop ........................................................................... 237
9.1.18. Unmounting an ISO Image from a Desktop .................................................................. 238
9.1.19. Updating the VirtualBox Guest Additions in a Desktop ................................................... 238
9.1.20. Connecting to the Desktop Console ............................................................................. 239
9.1.21. Disconnecting a User from a Remote Desktop Services Session .................................... 239
9.1.22. Logging a User Out of a Remote Desktop Services Session .......................................... 239
9.1.23. Removing a User Assignment from a Desktop .............................................................. 240
9.1.24. Deleting a Desktop ...................................................................................................... 241
9.2. Managing Templates ................................................................................................................ 241
9.2.1. Obtaining the ID of a Template ...................................................................................... 242
9.2.2. Importing a Template .................................................................................................... 242
9.2.3. Renaming a Template ................................................................................................... 243
9.2.4. Starting a Template ....................................................................................................... 243
9.2.5. Restarting a Template ................................................................................................... 244
9.2.6. Connecting to the Template Console ............................................................................. 244
9.2.7. Applying a Template to a Pool for Cloning ...................................................................... 245
9.2.8. Copying a Template to a Desktop .................................................................................. 245
9.2.9. Exporting a Template .................................................................................................... 246
9.2.10. Updating the VirtualBox Guest Additions in a Template ................................................. 246
9.2.11. Mounting an ISO Image in a Template ......................................................................... 247
9.2.12. Unmounting an ISO Image from a Template ................................................................. 247
9.2.13. Reverting a Template to the Latest Revision ................................................................. 248
9.2.14. Shutting Down a Template ........................................................................................... 248
9.2.15. Powering Off a Template ............................................................................................. 249
9.2.16. Deleting a Template .................................................................................................... 249
9.3. Managing Template Revisions .................................................................................................. 250
9.3.1. Obtaining the ID of a Template Revision ........................................................................ 250
9.3.2. Creating a Revision ....................................................................................................... 250
9.3.3. Making a Revision the Master Revision .......................................................................... 251
227
Managing Desktops
This section lists the available actions for desktops, how you perform the action in Oracle VDI Manager,
and the equivalent command-line command.
To obtain the ID of a desktop, use either the vda user-desktops command to list the desktops for a
user, the vda token-desktops command to list the desktops for a token, or the vda pool-desktops
command to list the desktops in a pool.
In the following example, the desktops in the pool MyPool are listed:
/opt/SUNWvda/sbin/vda pool-desktops MyPool
NAME ID MACHINE_STATE STATUS USER DN
desktop-01 33 Running Idle aberginuid=bergin,ou=People
desktop-02 34 Running Available - -
There are two desktops in the pool with IDs of 33 and 34.
You can perform this action on Oracle VM VirtualBox, Microsoft Hyper-V, VMware vCenter, and Generic
desktops.
228
Renaming a Desktop
4. If the desktop to import is located on a VirtualBox host available to Oracle VDI Manager, go to the
Hypervisor tab and select the desktop in the list.
Otherwise, specify the location of the desktop configuration file and disk image by completing the fields
in the Folder tab.
5. Click OK.
You can perform this action on Oracle VM VirtualBox, VMware vCenter, Microsoft Hyper-V, and Generic
desktops.
Oracle VDI Manager Steps
2. Click the Desktop tab and select the desktop you want to work with.
1. Obtain the ID of the desktop you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
229
Starting a Desktop
For example:
/opt/SUNWvda/sbin/vda desktop-setprops -p name='"jdoe desktop"' 28
You can perform this action on Oracle VM VirtualBox, VMware vCenter, and Microsoft Hyper-V desktops.
Oracle VDI Manager Steps
2. Click the Desktop tab and select the desktops you want to work with.
1. Obtain the ID of the desktops you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
For example:
/opt/SUNWvda/sbin/vda desktop-start 38 40
Caution
You can perform this action on Oracle VM VirtualBox, VMware vCenter, and Microsoft Hyper-V desktops.
Oracle VDI Manager Steps
2. Click the Desktop tab and select the desktops you want to work with.
4. Click OK.
230
Assigning a Desktop to a User
1. Obtain the ID of the desktops you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
For example:
/opt/SUNWvda/sbin/vda desktop-restart 38 40
You can perform this action on Oracle VM VirtualBox, VMware vCenter, Microsoft Hyper-V desktops, and
Generic desktops.
Oracle VDI Manager Steps
2. Click the Desktop tab and select the desktop you want to work with.
1. Obtain the ID of the desktops you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
2. Search for the ID of the user to whom you want to assign the desktop:
/opt/SUNWvda/sbin/vda user-search walk
NAME KIND DN
awalker User uid=awalker
bwalker User uid=bwalker
ewalker User uid=ewalker
jwalker User uid=jwalker
3. Assign the desktops personally to a user using the vda user-assign command.
/opt/SUNWvda/sbin/vda user-assign -d desktop1-id desktop2-id user-id
For example:
/opt/SUNWvda/sbin/vda user-assign -d 44 jwalker
231
Duplicating a Desktop
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V desktops.
Oracle VDI Manager Steps
2. Click the Desktop tab and select the desktops you want to work with.
1. Obtain the ID of the desktops you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
For example:
/opt/SUNWvda/sbin/vda desktop-duplicate 22 24
The export consists of an .xml file containing the virtual machine properties, and a .vdi disk image file.
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V desktops.
Oracle VDI Manager Steps
2. Click the Desktop tab and select the desktop you want to work with.
4. Specify the export location for the desktop by entering a target Server and Path, and a Name for the
exported desktop.
5. Click OK.
1. Obtain the ID of the desktop you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
232
Exporting User Profiles from Personal Hard Drives
hostname=MyNfsServer.domain,path=/path-to-export-location desktop-id
For example:
/opt/SUNWvda/sbin/vda desktop-export -p \
hostname=nfs.example.com,path=/home/user/exports 24
You can perform this action on Oracle VM VirtualBox desktops. The action is supported on Windows 7 and
later desktops.
Before you export user profiles, ensure that users have logged out of the desktops as this action shuts
down the selected desktops if they are running.
When you export user profiles, Oracle VDI creates a job. The job powers on the desktops, copies the
profiles from the personal hard drives to the network profile location configured for the pool and then shuts
down the desktops.
The number of user profiles that can be exported concurrently is controlled by the peak time limits specified
for the desktop provider.
2. Click the Desktop tab and, optionally, select the desktops you want to work with.
You only need to select desktops if you want to export the profiles from particular desktops.
4. Check that you are exporting the user profiles you require and click OK.
1. (Optional) Obtain the ID of the desktops you want to work with, see Section 9.1.1, “Obtaining the ID of
a Desktop”.
You only need to do this if you want to export the profiles from particular desktops.
For example, to export the user profiles from all desktops in the pool:
/opt/SUNWvda/sbin/vda pool-profiles-export MyPool
233
Converting a Desktop to a Template
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V desktops.
Oracle VDI Manager Steps
2. Click the Desktop tab and select the desktop you want to work with.
4. Click OK.
1. Obtain the ID of the desktop you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
For example:
/opt/SUNWvda/sbin/vda desktop-template 40
You can perform this action on Oracle VM VirtualBox, VMware vCenter, and Microsoft Hyper-V desktops.
Oracle VDI Manager Steps
2. Click the Desktop tab and select the desktop you want to work with.
1. Obtain the ID of the desktop you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
For example:
/opt/SUNWvda/sbin/vda desktop-activate 40
234
Recloning Selected Desktops
2. Click the Desktop tab and select the desktops you want to work with.
4. Click OK.
1. Obtain the ID of the desktops you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
For example:
/opt/SUNWvda/sbin/vda desktop-reclone 38 47
You can use this action to make sure that all desktops are cloned from the same template and revision,
and use the latest settings from the Cloning tab, such as naming conventions or Windows system
preparation.
You can perform this action on Oracle VM VirtualBox, VMware vCenter, and Microsoft Hyper-V desktops.
Oracle VDI Manager Steps
4. Click OK.
235
Suspending a Desktop
For example:
/opt/SUNWvda/sbin/vda pool-reset MyPool
You can perform this action on Oracle VM VirtualBox, VMware vCenter, and Microsoft Hyper-V desktops.
Oracle VDI Manager Steps
2. Click the Desktop tab and select the desktops you want to work with.
1. Obtain the ID of the desktops you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
For example:
/opt/SUNWvda/sbin/vda desktop-suspend 40 56
You can perform this action on Oracle VM VirtualBox, VMware vCenter, and Microsoft Hyper-V desktops.
Oracle VDI Manager Steps
2. Click the Desktop tab and select the desktops you want to work with.
4. Click OK.
1. Obtain the ID of the desktops you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
For example:
236
Powering Off a Desktop
/opt/SUNWvda/sbin/vda desktop-stop 38 40
You can perform this action on Oracle VM VirtualBox, VMware vCenter, and Microsoft Hyper-V desktops.
Oracle VDI Manager Steps
2. Click the Desktop tab and select the desktops you want to work with.
4. Click OK.
1. Obtain the ID of the desktops you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
For example:
/opt/SUNWvda/sbin/vda desktop-stop -p 38 40
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V desktops.
Oracle VDI Manager Steps
2. Click the Desktop tab and select the desktop you want to work with.
4. Specify the ISO image location by entering the Server and Path.
5. Click Select Folder to load the available ISO images into the list.
7. Click OK.
237
Unmounting an ISO Image from a Desktop
1. Obtain the ID of the desktop you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
For example:
/opt/SUNWvda/sbin/vda desktop-mount-iso -p \
hostname=nfs.example.com,path=/home/user/iso/myDVD.iso 38
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V desktops.
Oracle VDI Manager Steps
2. Click the Desktop tab and select the desktop you want to work with.
1. Obtain the ID of the desktop you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
For example:
/opt/SUNWvda/sbin/vda desktop-unmount-iso 38
You can only update the Guest Additions in Oracle VDI Manager.
2. Click the Desktop tab and select the desktop you want to work with.
238
Connecting to the Desktop Console
You can only connect to the desktop console in Oracle VDI Manager.
2. Click the Desktop tab and select the desktop you want to work with.
4. Click Console.
5. Click Connect to display the desktop inside the tab, or click the Open in Window button to display the
desktop in a separate browser window.
You can perform this action on Microsoft Remote Desktop Services desktops.
Oracle VDI Manager Steps
1. In Oracle VDI Manager, select Pools and then select an RDS pool.
2. Click the Desktop tab and select the desktops you want to work with.
4. Click OK.
1. Obtain the ID of the desktops you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
2. Disconnect the users from their RDS sessions using the vda desktop-disconnect command.
/opt/SUNWvda/sbin/vda desktop-disconnect -p \
hostname=host,pool=pool desktop1-id desktop2-id ...
For example:
/opt/SUNWvda/sbin/vda desktop-disconnect -p hostname=RDS-1,pool=MyRDSPool 58 62 70
239
Removing a User Assignment from a Desktop
You can perform this action on Microsoft Remote Desktop Services desktops.
Oracle VDI Manager Steps
1. In Oracle VDI Manager, select Pools and then select an RDS pool.
2. Click the Desktop tab and select the desktops you want to work with.
4. Click OK.
1. Obtain the ID of the desktops you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
2. Log out users from RDS sessions using the vda desktop-logoff command.
/opt/SUNWvda/sbin/vda desktop-logoff -p hostname=host,pool=pool desktop1-id desktop2-id ...
For example:
/opt/SUNWvda/sbin/vda desktop-logoff -p hostname=RDS-1,pool=MyRDSPool 58 62 70
You can perform this action on Oracle VM VirtualBox, VMware vCenter, Microsoft Hyper-V desktops, and
Generic desktops.
Oracle VDI Manager Steps
2. Click the Desktop tab and select the desktop you want to work with.
4. Click OK.
1. Obtain the ID of the desktop you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
240
Deleting a Desktop
For example:
/opt/SUNWvda/sbin/vda user-desktops jwalker
DESKTOP DESKTOP_ID POOL Assignment DEFAULT
desktop2 44 MyPool personal false
desktop5 36 MyPool personal false
4. Remove the user assignment from the desktop using the vda user-unassign command.
/opt/SUNWvda/sbin/vda user-unassign [-d desktop-id] user-id
You can perform this action on Oracle VM VirtualBox, VMware vCenter, Microsoft Hyper-V desktops, and
Generic desktops.
Oracle VDI Manager Steps
2. Click the Desktop tab and select the desktops you want to work with.
4. Click Delete.
1. Obtain the ID of the desktops you want to work with, see Section 9.1.1, “Obtaining the ID of a Desktop”.
For example:
/opt/SUNWvda/sbin/vda desktop-delete 28 32
241
Obtaining the ID of a Template
To obtain the ID of a template, use either the vda pool-templates command to list the templates in a
pool, or the vda provider-list-templates command to list the templates for a desktop provider.
In the following example, the templates in the pool MyPool are listed:
/opt/SUNWvda/sbin/vda pool-templates MyPool
NAME ID MACHINE_STATE MASTER DESKTOPS
template1 2 Powered Off template1 Revision 2 10
template2 6 Powered Off template2 Revision 1 15
In the following example, the templates for the desktop provider MyProvider are listed:
/opt/SUNWvda/sbin/vda provider-list-templates MyProvider
NAME ID DIRECTORY
template1 2 MyCompany
template2 6 MyCompany
You can perform this action on Oracle VM VirtualBox, Microsoft Hyper-V, VMware vCenter and Generic
templates.
Oracle VDI Manager Steps
3. Click the Import Template button to open the Import Template window.
4. If the virtual machine to import as a template is located on a VirtualBox host available to Oracle VDI
Manager, go to the Hypervisor tab and select the virtual machine in the list.
Otherwise, specify the location of the virtual machine configuration file and disk image by completing
the fields in the Folder tab.
When the import is complete, the first revision of the template is available for cloning.
242
Renaming a Template
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
2. Click the Template tab and select the template you want to work with.
4. Enter the new name for the template and click OK.
1. Obtain the ID of the template you want to work with, see Section 9.2.1, “Obtaining the ID of a
Template”.
For example:
/opt/SUNWvda/sbin/vda template-setprops -p name='"Windows 7 pro"' 9
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
2. Click the Template tab and select the templates you want to work with.
1. Obtain the ID of the templates you want to work with, see Section 9.2.1, “Obtaining the ID of a
Template”.
243
Restarting a Template
For example:
/opt/SUNWvda/sbin/vda template-start 9 13
Caution
Restarting a template virtual machine can cause data loss if files are open.
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
2. Click the Template tab and select the templates you want to work with.
4. Click OK.
1. Obtain the ID of the templates you want to work with, see Section 9.2.1, “Obtaining the ID of a
Template”.
For example:
/opt/SUNWvda/sbin/vda template-restart 9 13
You can only open the template console in Oracle VDI Manager.
2. Click the Template tab and select the template you want to work with.
244
Applying a Template to a Pool for Cloning
4. Click Connect.
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
2. Click the Template tab and select the template you want to work with.
5. Click OK.
1. Obtain the ID of the template you want to work with, see Section 9.2.1, “Obtaining the ID of a
Template”.
2. Apply a template for cloning to a pool using the vda pool-setprops command.
/opt/SUNWvda/sbin/vda pool-setprops -p template=template-id MyPool
For example:
/opt/SUNWvda/sbin/vda pool-setprops -p template=9 MyPool
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
2. Click the Template tab and select the template you want to work with.
4. Click OK.
1. Obtain the ID of the template you want to work with, see Section 9.2.1, “Obtaining the ID of a
Template”.
245
Exporting a Template
2. Copy the template to a new desktop using the vda template-desktop command.
/opt/SUNWvda/sbin/vda template-desktop template-id
For example:
/opt/SUNWvda/sbin/vda template-desktop 9
The export consists of an .xml file containing the virtual machine properties, and a .vdi disk image file.
2. Click the Template tab and select the template you want to work with.
4. Specify the export location for the desktop by entering a target Server and Path, and a Name for the
exported desktop.
5. Click OK.
1. Obtain the ID of the template you want to work with, see Section 9.2.1, “Obtaining the ID of a
Template”.
For example:
/opt/SUNWvda/sbin/vda template-export -p \
hostname=nfs.example.com,path=/home/user/exports 9
To propagate the new VirtualBox Guest Additions to the cloned desktops in a pool, be sure to create a new
revision from the updated template, and make it the new cloning master.
You can only update the Guest Additions in Oracle VDI Manager.
246
Mounting an ISO Image in a Template
2. Click the Template tab and select the template you want to work with.
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
2. Click the Template tab and select the template you want to work with.
4. Specify the ISO image location by entering the Server and Path.
5. Click Select Folder to load the available ISO images into the list.
7. Click OK.
1. Obtain the ID of the template you want to work with, see Section 9.2.1, “Obtaining the ID of a
Template”.
For example:
/opt/SUNWvda/sbin/vda template-mount-iso -p \
hostname=nfs.example.com,path=/home/user/iso/myDVD.iso 38
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
247
Reverting a Template to the Latest Revision
2. Click the Template tab and select the template you want to work with.
1. Obtain the ID of the template you want to work with, see Section 9.2.1, “Obtaining the ID of a
Template”.
For example:
/opt/SUNWvda/sbin/vda template-unmount-iso 38
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
2. Click the Template tab and select the template you want to work with.
4. Click OK.
1. Obtain the ID of the template you want to work with, see Section 9.2.1, “Obtaining the ID of a
Template”.
2. Revert a template to its latest revision using the vda template-revert command.
/opt/SUNWvda/sbin/vda template-revert template-id
For example:
/opt/SUNWvda/sbin/vda template-revert 9
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
2. Click the Template tab and select the templates you want to work with.
248
Powering Off a Template
4. Click OK.
1. Obtain the ID of the templates you want to work with, see Section 9.2.1, “Obtaining the ID of a
Template”.
For example:
/opt/SUNWvda/sbin/vda template-stop 9 13
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
2. Click the Template tab and select the templates you want to work with.
4. Click OK.
1. Obtain the ID of the templates you want to work with, see Section 9.2.1, “Obtaining the ID of a
Template”.
For example:
/opt/SUNWvda/sbin/vda template-stop -p 9 13
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
249
Managing Template Revisions
2. Click the Template tab and select the templates you want to work with.
4. Click Delete.
1. Obtain the ID of the templates you want to work with, see Section 9.2.1, “Obtaining the ID of a
Template”.
For example:
/opt/SUNWvda/sbin/vda template-delete 9 13
To obtain the ID of a revision, obtain the ID of the template (see Section 9.2.1, “Obtaining the ID of a
Template”), and then use the vda template-revisions command to list the revisions to the template.
In the following example, the revisions to template1 in the pool MyPool are listed:
/opt/SUNWvda/sbin/vda pool-templates MyPool
NAME ID MACHINE_STATE MASTER DESKTOPS
template1 2 Powered Off template1 Revision 1 3
template2 6 Powered Off template2 Revision 1 -
/opt/SUNWvda/sbin/vda template-revisions 2
NAME ID CREATION MASTER DESKTOPS
template1 Revision 1 3 9/14/12 9:13 AM Yes MyPool(3)
template1 Revision 2 4 9/19/12 9:52 AM No -
template1 Revision 3 12 9/28/12 5:58 AM No -
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
250
Making a Revision the Master Revision
2. Click the Template tab and select the template you want to work with.
The new revision appears in the template list, as a child entry of the template.
1. Obtain the ID of the template you want to work with, see Section 9.2.1, “Obtaining the ID of a
Template”.
For example:
/opt/SUNWvda/sbin/vda revision-create -p template=6,name=template2 Revision 2
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
2. Click the Template tab, expand the template and select the revision you want to work with.
4. Set the date and time when the revision is to become the master.
5. (Optional) Select Log User Out to automatically log out users and reclone the desktops when the
revision becomes master.
If you do not select this option, desktops are only recloned when users log out of their desktops.
6. Click OK.
1. Obtain the ID of the revision you want to work with, see Section 9.3.1, “Obtaining the ID of a Template
Revision”.
For example:
251
Renaming a Revision
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
2. Click the Template tab, expand the template and select the revision you want to work with.
4. Enter the new name for the revision and click OK.
1. Obtain the ID of the revision you want to work with, see Section 9.3.1, “Obtaining the ID of a Template
Revision”.
For example:
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
2. Click the Template tab, expand the template and select the revision you want to work with.
4. Click OK.
1. Obtain the ID of the revision you want to work with, see Section 9.3.1, “Obtaining the ID of a Template
Revision”.
252
Copying a Revision to a New Desktop
2. Copy an existing revision to a new template using the vda template-create command.
/opt/SUNWvda/sbin/vda template-create -p revision=revision-id,name=new-template-name
For example:
/opt/SUNWvda/sbin/vda template-create -p revision=12,name='"Win 7 test"'
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
2. Click the Template tab, expand the template and select the revision you want to work with.
4. Click OK.
1. Obtain the ID of the revision you want to work with, see Section 9.3.1, “Obtaining the ID of a Template
Revision”.
2. Copy an existing revision to a new desktop using the vda revision-desktop command.
/opt/SUNWvda/sbin/vda revision-desktop revision-id
For example:
/opt/SUNWvda/sbin/vda revision-desktop 12
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
2. Click the Template tab, expand the template and select the revision you want to work with.
4. Click OK.
253
Exporting a Revision
1. Obtain the ID of the revision you want to work with, see Section 9.3.1, “Obtaining the ID of a Template
Revision”.
2. Clone an existing revision to a new desktop using the vda revision-clone command.
/opt/SUNWvda/sbin/vda revision-clone revision-id
For example:
/opt/SUNWvda/sbin/vda revision-clone 12
The export consists of an .xml file containing the virtual machine properties, and a .vdi disk image file.
2. Click the Template tab, expand the template and select the revision you want to work with.
4. Specify the export location for the desktop by entering a target Server and Path, and a Name for the
exported desktop.
5. Click OK.
1. Obtain the ID of the revision you want to work with, see Section 9.3.1, “Obtaining the ID of a Template
Revision”.
For example:
/opt/SUNWvda/sbin/vda revision-export -p \
hostname=nfs.example.com,path=/home/user/exports 12
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
254
Applying a Revision for Cloning
2. Click the Template tab, expand the template and select the revision you want to work with.
4. Click OK.
1. Obtain the ID of the revision you want to work with, see Section 9.3.1, “Obtaining the ID of a Template
Revision”.
For example:
/opt/SUNWvda/sbin/vda revision-sysprep 37
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
2. Click the Template tab, expand the template and select the revision you want to work with.
4. Select the pool or pools you want to apply the revision to.
5. Click OK.
You can perform this action on Oracle VM VirtualBox and Microsoft Hyper-V templates.
Oracle VDI Manager Steps
2. Click the Template tab, expand the template and select the revision you want to work with.
255
Managing App-V Repositories
4. Click Delete.
1. Obtain the ID of the revision you want to work with, see Section 9.3.1, “Obtaining the ID of a Template
Revision”.
For example:
/opt/SUNWvda/sbin/vda revision-delete 12
To obtain the ID of an App-V repository, use either the vda pool-appv-templates command to list the
repositories in a pool, or the vda provider-list-appv-templates command to list the repositories
for a desktop provider.
In the following example, the App-V repositories in the pool MyPool are listed:
/opt/SUNWvda/sbin/vda pool-appv-templates MyPool
NAME ID MASTER DESKTOPS
appv1 41 appv1 Revision 2 -
appv2 53 appv2 Revision 1 10
In the following example, the App-V repositories for the desktop provider MyProvider are listed:
/opt/SUNWvda/sbin/vda provider-list-appv-templates MyProvider
NAME ID DIRECTORY
appv1 41 MyCompany
appv2 53 MyCompany
To obtain the ID of a revision, obtain the ID of the App-V repository (see Section 9.4.1, “Obtaining the
ID of an App-V Repository”), and then use the vda template-appv-revisions command to list the
revisions to the repository.
In the following example, the revisions to the App-V repository appv1 are listed:
/opt/SUNWvda/sbin/vda pool-appv-templates MyPool
256
Renaming an App-V Repository
/opt/SUNWvda/sbin/vda template-appv-revisions 41
NAME ID CREATION MASTER DESKTOPS
appv1 Revision 1 43 08/01/13 16:43 No -
appv1 Revision 2 54 09/01/13 18:35 Yes MyPool(10)
4. Enter the new name for the App-V repository and click OK.
1. Obtain the ID of the App-V repository you want to work with, see Section 9.4.1, “Obtaining the ID of an
App-V Repository”.
For example:
/opt/SUNWvda/sbin/vda template-appv-setprops -p name=NewMyAppv 9
To apply the repository to existing used desktops, the desktops must be restarted.
Oracle VDI Manager Steps (One or More Pools)
3. Select the App-V repository and click the Use in Pool button.
4. Select the pools you want to apply the App-V repository to and click OK.
2. Click the Cloning tab and select a repository in the App-V Repository list.
257
Creating a Revision to an App-V Repository
3. Click Save.
1. Obtain the ID of the App-V repository you want to work with, see Section 9.4.1, “Obtaining the ID of an
App-V Repository”.
2. Apply the App-V repository to a pool using the vda pool-setprops command.
/opt/SUNWvda/sbin/vda pool-setprops -p appv-repository=repository-id pool-name
For example:
/opt/SUNWvda/sbin/vda pool-setprops -p appv-repository=53 MyPool
This action has no effect on existing desktops until the revision is made the master revision, see
Section 9.4.6, “Making an App-V Revision the Master Revision”.
Oracle VDI Manager Steps
3. Select the App-V repository you want to create a new revision from and click the Create Revision
button.
6. In the User and Password field, enter the credentials of a user that is defined as an App-V user in
Active Directory.
The user must have access to all the available applications on the App-V Management Server. Oracle
VDI uses the specified App-V user to update the App-V cache file on the staging desktop.
7. Click OK.
1. Obtain the ID of the App-V repository you want to work with, see Section 9.4.1, “Obtaining the ID of an
App-V Repository”.
For example:
/opt/SUNWvda/sbin/vda revision-appv-create -p revision-name='"MyAppv Revision 2"' 53
In the following example, the App-V user name is also specified when creating the revision to the App-V
repository:
258
Making an App-V Revision the Master Revision
/opt/SUNWvda/sbin/vda revision-appv-create -p \
revision-name='"MyAppv Revision 3"',appv-username=new-appv-user 53
When the revision becomes the master, used desktops must be restarted in order to update the App-V
cache.
Oracle VDI Manager Steps
5. Set the date and time when the revision is to become the master.
6. (Optional) Select Log User Out to automatically log out users and restart the desktops when the
revision becomes master.
If you do not select this option, desktops must be manually restarted in order to use the new master
revision.
7. Click OK.
1. Obtain the ID of the revision to the App-V repository you want to work with, see Section 9.4.2,
“Obtaining the ID of a Revision to an App-V Repository”.
2. Make the revision the master revision using the vda revision-appv-nominate-master
command.
/opt/SUNWvda/sbin/vda revision-appv-nominate-master revision-id
In the following example, the App-V revision is scheduled to become the master immediately and
desktops are automatically restarted:
/opt/SUNWvda/sbin/vda revision-appv-nominate-master -f 12
In the following example, the App-V revision is scheduled to become the master at a particular time and
desktops must be manually restarted:
/opt/SUNWvda/sbin/vda revision-appv-nominate-master -d 02/11/2013 -t 01:00 13
259
Deleting a Revision to an App-V Repository
3. Expand the App-V repository and select the revision you want to rename.
5. Enter the new name for the revision and click OK.
1. Obtain the ID of the revision to the App-V repository you want to work with, see Section 9.4.2,
“Obtaining the ID of a Revision to an App-V Repository”.
For example:
/opt/SUNWvda/sbin/vda revision-appv-setprops -p name='"Update 28 Sept"' 92
You can only delete the latest revision and you cannot delete the master revision. To delete the master
revision, see Section 9.4.9, “Deleting an App-V Repository”.
Oracle VDI Manager Steps
3. Expand the App-V repository and select the revision you want to delete.
4. Click Delete.
5. Click OK.
1. Obtain the ID of the revision to the App-V repository you want to work with, see Section 9.4.2,
“Obtaining the ID of a Revision to an App-V Repository”.
For example:
/opt/SUNWvda/sbin/vda revision-appv-delete 12
260
Deleting an App-V Repository
3. Select the App-V repository you want to delete and click the Delete button.
4. Set the date and time when you want to delete the App-V repository.
5. (Optional) Deselect Unconfigure to leave the Windows registry settings for App-V unchanged in the
desktops.
You should only do this if you intend to use a different App-V repository with the desktops. If you do
this, the desktops that use the App-V repository are not restarted.
If the App-V repository is not used by any desktops, the deletion takes place immediately and cannot
be scheduled.
6. Click OK.
1. Obtain the ID of the App-V repository you want to work with, see Section 9.4.1, “Obtaining the ID of an
App-V Repository”.
2. Delete the App-V repository and its revisions using the vda template-appv-delete command.
/opt/SUNWvda/sbin/vda template-appv-delete repository-id
In the following example, the App-V repository is scheduled for immediate removal and desktops are
automatically unconfigured and restarted:
/opt/SUNWvda/sbin/vda template-appv-delete 9
In the following example, the App-V repository is scheduled for removal at a particular time and
desktops are not automatically unconfigured and restarted:
/opt/SUNWvda/sbin/vda template-appv-delete -u false -d 02/12/2013 -t 01:00 68
261
262
Chapter 10. Troubleshooting and FAQs
Table of Contents
10.1. Oracle VDI Installation and Configuration ................................................................................ 265
10.1.1. Installation on Oracle Linux Platforms Fails Due to Missing Packages ............................ 265
10.1.2. Configuration on Oracle Linux Platforms Fails When SELinux is Enabled ........................ 265
10.1.3. Oracle VDI Configuration Is Failing to Import svc_vdadb.xml .......................................... 266
10.1.4. Can I Try Out MySQL or Set up an Evaluation Oracle VDI Remote Database? ................ 266
10.1.5. Adding a Host to an Oracle VDI Center Fails With a Sun Ray Server Software
Replication Error ..................................................................................................................... 267
10.1.6. Reconfiguring Oracle VDI Fails With "Error While Configuring Database" ........................ 267
10.1.7. Oracle VDI Configuration Fails to Create Database Tables With Remote Windows
Databases That Use UTF-8 .................................................................................................... 268
10.1.8. Reverting to a Previous Release of Oracle VDI ............................................................. 268
10.2. Failover ................................................................................................................................. 272
10.2.1. Troubleshooting a Failover ........................................................................................... 272
10.2.2. After a Failover the Primary Host is Not Configured ...................................................... 275
10.3. User Directory ........................................................................................................................ 275
10.3.1. Increasing Logging to Troubleshoot User Directory Problems ......................................... 275
10.3.2. Kerberos Authentication to Active Directory Works for a While and Then Stops ............... 276
10.3.3. Can I Use PKI Instead of Kerberos for Authentication to an Active Directory? .................. 277
10.3.4. What Type of Privileged Access to the User Directory Is Required? ................................ 277
10.3.5. Can I Disable the Automatic Cleanup of Computer Objects in Active Directory? ............... 277
10.4. Oracle VM VirtualBox Desktop Provider .................................................................................. 278
10.4.1. Are all Oracle VM VirtualBox Releases Compatible With Oracle VDI? ............................. 278
10.4.2. Oracle VM VirtualBox Install Is Failing With "Postinstall Script Did Not Complete
Successfully" Errors ................................................................................................................ 278
10.4.3. There Is an Error When I Add an Oracle VM VirtualBox Host to a Desktop Provider ......... 278
10.4.4. What Are the Requirements for High Availability for Oracle VM VirtualBox? .................... 279
10.4.5. Changing the Password of the VirtualBox User ............................................................. 279
10.4.6. Adding a Sun ZFS or iSCSI Storage Fails if the VirtualBox User is Not Root ................... 281
10.4.7. Adding a Storage Fails With an "Unable to Stop Cluster" Error ....................................... 281
10.4.8. A Sun ZFS or iSCSI Storage is Shown With a Reduced Capacity .................................. 282
10.4.9. A Storage Cannot Be Removed From a Desktop Provider ............................................. 282
10.4.10. Virtualization Hosts Crash if a Storage is Shut Down ................................................... 283
10.4.11. A Critical Alarm is Displayed When Storage is Added to a Desktop Provider .................. 283
10.4.12. Provider Host is Unresponsive After Updating Oracle VM VirtualBox ............................. 283
10.4.13. Storage is Unresponsive After Updating Oracle VM VirtualBox ..................................... 283
10.4.14. Users Experience Blurry Text in Internet Explorer ....................................................... 283
10.4.15. The Time in My Oracle VM VirtualBox Desktop Is Too Slow ........................................ 284
10.4.16. I Can See My Oracle VM VirtualBox Hosted Desktop, But It Will Not Start ..................... 284
10.4.17. Why Are My Windows 7 Audio Drivers Not Automatically Installed? .............................. 285
10.5. VMware vCenter Desktop Provider ......................................................................................... 285
10.5.1. I Cannot Log into My VMware Virtual Machine .............................................................. 285
10.5.2. Users Cannot Log Into Their VMware Provided Windows desktop .................................. 285
10.5.3. Why Does My VMware Virtual Machine Have an Invalid IP Address Or Cannot Be
Pinged? .................................................................................................................................. 285
10.5.4. I Am Unable to Get a MS RDC Connection on My VMware Virtual Machine .................... 285
10.5.5. Creating a vCenter Desktop Provider Fails With "Unable to Contact VMware
VirtualCenter - Host Not Reachable at Port 443" Errors ............................................................ 286
263
10.5.6. In My VMware Desktop Pool, New Virtual Machines Are Created Automatically, But
They Are Not Made Available ................................................................................................. 286
10.5.7. The VMware Virtual Machine Cloning Process Is Not Operating As Expected .................. 286
10.5.8. VMware Windows 8 Cloning Fails ................................................................................ 287
10.5.9. The Window Displaying the VMware-Hosted Virtual Desktop Is Freezing ........................ 287
10.5.10. I Have Created a New Pool in My VMware Desktop provider and Virtual Machines Are
Not Created Automatically ....................................................................................................... 288
10.5.11. How Do I Use VMware Virtual Machines With Multiple Network Adapters? .................... 288
10.5.12. Unused VMware Virtual Machines Are Not Being Recycled .......................................... 289
10.6. Microsoft Hyper-V and RDS Desktop Providers ....................................................................... 289
10.6.1. Sessions Are Started by Oracle VDI on RDS Hosts That Do Not Participate in the
Microsoft Remote Desktop Provider. Why Is That Happening? .................................................. 289
10.6.2. Hyper-V Desktop Cloning Fails With "Cannot Reload MSiSCSI Target List" Errors ........... 289
10.6.3. Can I Enter the Farm Information for the Microsoft Remote Desktop Provider and let
Oracle VDI Detect the Individual RDS Hosts Participating in the Farm? ..................................... 290
10.6.4. Oracle VDI Is Not Able to Communicate With the Windows Server ................................. 290
10.6.5. Connection Problems between Oracle VDI and Hyper-V ................................................ 290
10.7. Desktops and Pools ............................................................................................................... 291
10.7.1. How Do I Make a Desktop Available to a User at All Times? .......................................... 291
10.7.2. Starting a Desktop Fails With "No suitable Hosts to Start a Desktop for Desktop Provider
<Name>" Errors ...................................................................................................................... 291
10.7.3. What Is the Difference Between Personal and Flexible Desktop Assignments? ................ 291
10.7.4. Oracle VDI Fast Preparation Is Failing ......................................................................... 292
10.7.5. Can I Use Wild Cards in Token Names to Represent a Group of Thin Clients in Order to
Assign These Thin Clients to a Pool? ...................................................................................... 292
10.7.6. The Audio in My Ubuntu Desktop Is Playing Too Slowly. What Should I Do? ................... 293
10.7.7. Audio Does Not Play After Changing the Audio Configuration for Oracle VM VirtualBox
Hosted Desktops in Oracle VDI Manager ................................................................................. 293
10.7.8. USB Devices Are Not Detected ................................................................................... 293
10.7.9. Smart Cards Are Not Detected When VRDP Is Used .................................................... 294
10.7.10. What Are the Differences Between MS-RDP and VRDP? ............................................ 294
10.7.11. Cloning Fails if the Sysprep Timezone Setting Does not Match the Host Timezone ........ 294
10.7.12. Checking the VirtualBox Guest Additions Version ........................................................ 294
10.7.13. Starting A Desktop Fails With an "Error Getting State" Message ................................... 295
10.7.14. Creating an App-V Repository or Revision Takes a Long Time ..................................... 295
10.7.15. Creating or Updating an App-V Repository Fails With a "Failed to Refresh App-V
Cache" Message .................................................................................................................... 296
10.7.16. Creating or Updating an App-V Repository Fails With a "Failed to Login User"
Message ................................................................................................................................. 297
10.7.17. Creating an App-V Repository Fails Due to Low Disk Space ........................................ 297
10.7.18. Creating an App-V Repository Revision Fails With "An Internal Error Occurred"
Message ................................................................................................................................. 298
10.8. Logging In and Accessing Desktops ....................................................................................... 298
10.8.1. Users Cannot Access Their Desktops .......................................................................... 298
10.8.2. A User Can Log in But Their Desktop is Not Responding .............................................. 299
10.8.3. Error - "Currently There Is No Desktop Available Or Assigned to You" ............................ 299
10.8.4. The Sun Ray Client Is Cycling and Cannot Connect to a Virtual Machine ........................ 301
10.8.5. Users Cannot Log in to Ubuntu 8.04 Desktops Because the Network Is Not Enabled ....... 301
10.8.6. Hotdesking Redirect Does Not Work With Windows XP Professional and Microsoft
RDP ....................................................................................................................................... 301
10.8.7. The Trust Relationship Between a Windows Desktop and the Domain Controller Fails ..... 302
10.9. Administration Tools ............................................................................................................... 303
10.9.1. I Cannot Log in to Oracle VDI Manager ........................................................................ 303
10.9.2. I Cannot Log in to Oracle VDI Manager Running on Oracle Solaris 11 Using Firefox ........ 303
264
Oracle VDI Installation and Configuration
10.9.3. I Get a Blank Screen After Successfully Logging in to Oracle VDI Manager ..................... 303
10.9.4. Error - "You Have Been Logged out Because a Consistent Response Could Not Be
Guaranteed" ........................................................................................................................... 304
10.9.5. How Can I Change the Password of an Oracle VDI Host? ............................................. 304
10.9.6. How Do I Change the Password of a Remote MySQL Database? .................................. 304
10.9.7. Does the MySQL Database Store All Sun Ray Software Configuration? .......................... 304
10.9.8. The vda Command Reports That Oracle VDI Is Not Running But Other Commands Say
It Is ........................................................................................................................................ 305
10.9.9. Users Do Not Show Up in Users and Groups in Oracle VDI Manager ............................. 305
10.9.10. Is There a Way to Modify the Cacao Logging Behavior So That a Long History Can Be
Maintained? ............................................................................................................................ 305
10.9.11. Jobs Do Not Finish Even After You Cancel Them with Oracle VDI Manager .................. 305
10.9.12. Can I Adjust the Logging Level for the Oracle VDI Logs? ............................................. 305
10.9.13. How Do I Log in to the Embedded MySQL Server Database? ...................................... 305
10.10. Oracle VDI ........................................................................................................................... 306
10.10.1. Oracle VDI Hangs Intermittently When Running on x2270 Hardware ............................. 306
10.10.2. The System Is Not Reacting as Expected ................................................................... 306
10.10.3. Which Service Owns the Oracle VDI Daemon Job? ..................................................... 306
10.10.4. How Do I Configure DHCP in Oracle VDI? ................................................................. 307
The required packages might not be able to be downloaded because no repositories are configured for
yum, or if there are other problems, for example incorrect proxy configuration or network connectivity
issues.
To resolve the installation problem, ensure that yum is configured properly and is working. Then install
Oracle VDI again.
If you want to install the missing required packages manually, the packages are listed in the log file for the
failed installation in /var/log/vda-install.timestamp.log.
The message also lists a log file for the configuration failure, which might provide more information about
the problem.
For Oracle VDI configuration to succeed, SELinux must be disabled. Use either the sestatus or the
getenforce command to check the current SELinux status.
265
Oracle VDI Configuration Is Failing to Import svc_vdadb.xml
1. Disable SELinux.
Edit the /etc/selinux/config file and change the SELINUX setting to SELINUX=disabled.
After the reboot, use either the sestatus or the getenforce command to confirm that the
configuration change has been applied.
You must unconfigure before you can configure Oracle VDI again.
# /opt/SUNWvda/sbin/vda-config -u
a. When prompted with Enter Response [boot], select manifest_import instead of the
default, boot.
10.1.4. Can I Try Out MySQL or Set up an Evaluation Oracle VDI Remote
Database?
Yes! The MySQL Sandbox is a quick and easy way to setup MySQL or try out Oracle VDI remote
database setup.
266
Adding a Host to an Oracle VDI Center Fails With a Sun Ray Server Software Replication Error
mysql-sandbox-path/make_sandbox path-to-your-mysql.tar.gz
On Oracle Solaris platforms, you might have to add /usr/sfw/bin to your path in order to make
mysql_sandbox work.
10.1.5. Adding a Host to an Oracle VDI Center Fails With a Sun Ray Server
Software Replication Error
When you add a Host to an Oracle VDI Center, it might fail with the following error message:
Sun Ray Server Software Configuration
+ Configuring Sun Ray Server Software...
Error: There was an error configuring Sun Ray Server Software replication
If the log file shown in the error message contains a Signature mismatch - check configuration
message, it is possible that the Sun Ray group signature has been changed using the Sun Ray
administration tools. These tools do not update Oracle VDI. See Section 8.11.9, “Synchronizing the Sun
Ray Group Signature and Data Store Password” for details of how to synchronize the group signature.
On an Oracle VDI master database host, the log file typically contains the following:
MySQL Database Server Configuration
+ Initializing database...
...
/opt/SUNWvda/mysql/bin/mysqld: File './mysql-bin.index' not found (Errcode: 13)
110630 23:59:59 [ERROR] Aborting
On other Oracle VDI hosts, the log file typically contains the following:
MySQL Database Slave Configuration
...
+ Initializing database...
110630 23:59:59 [ERROR] Fatal error: Can't change to run as user 'vdadb' ;
Please check that the user exists!
110630 23:59:59 [ERROR] Aborting
110630 23:59:59 [Note] /opt/SUNWvda/mysql/bin/mysqld: Shutdown complete
...
Error: Error while configuring database.
The problem is caused by the presence of a /var/opt/SUNWvda/mysql directory, which has data from a
previous Oracle VDI configuration.
267
Oracle VDI Configuration Fails to Create Database Tables With Remote Windows Databases That Use UTF-8
10.1.7. Oracle VDI Configuration Fails to Create Database Tables With Remote
Windows Databases That Use UTF-8
On Windows platforms, MySQL limits key sizes to 767 bytes. Due to this limit, the Oracle VDI configuration
process fails when using a remote MySQL database on Windows platforms that have UTF-8 enabled.
1. Modify the /etc/opt/SUNWvda/vda-schema-create.sql file on your primary Oracle VDI host and
configure Oracle VDI software again.
to:
UNIQUE INDEX distinguished_name (`distinguished_name`(250) ASC, `ud_id` ASC) ,
This workaround might cause problems assigning users to pools or desktops if the distinguished name
(DN) of the user is longer than 250 characters.
2. Change the character set of the MySQL database to latin1 and configure Oracle VDI again.
This workaround causes problems logging in users who have UTF-8 characters in their user name.
If you do not have backups of your hosts, it is possible to revert to the previous version of Oracle VDI
manually by reconfiguring the hosts and restoring the Oracle VDI database.
Steps
Unless you specified a file and location when you created the database backup, the backup job creates
a zip file, /var/tmp/vdi-backup-timestamp.zip.
If you cannot locate the backup zip file, a copy is included with the preserved configuration on each
host in the Oracle VDI Center. The preserved configuration is stored in another zip file, /var/opt/
SUNWvda/preserve/vda-preserve.zip. Unzip this file and copy the db-backup.zip file.
If you do not have a backup of the database, you cannot revert to the previous version. Do no attempt
to create a backup now.
268
Reverting to a Previous Release of Oracle VDI
2. Ensure the preserved configuration zip file for each host is copied to a separate host.
3. If you need to reinstall the previous version of Oracle VDI on a host, download the Oracle VDI software
archive to a temporary location on the host.
4. Revert Oracle VDI to the previous version on each host in the Oracle VDI Center.
Once you begin this step, do not use Oracle VDI Manager or the vda command until the revert process
has been finished on all hosts in the Oracle VDI Center.
Start with the primary host in the Oracle VDI Center. Once you have reverted the primary, you can
revert the secondaries. Only revert one secondary host at a time.
The steps required to revert a host depend on the stage you reached when you updated the host to the
latest version. Select one of the following and perform the required steps to revert the host:
• Existing Oracle VDI configuration preserved but latest release not installed
See Section 8.7.2, “Restoring the Oracle VDI Database” for details.
Existing Oracle VDI Configuration Preserved But Latest Release Not Installed
1. Log in as root on the host.
If you backed up the vda-preserve.zip file to a separate host when you started the update, you can
delete the /var/opt/SUNWvda/preserve directory.
Perform this step only if you are using the Oracle VDI embedded MySQL database.
Oracle Solaris Platforms
269
Reverting to a Previous Release of Oracle VDI
When you configure a host, ensure you do not change the topology of the Oracle VDI Center. The
primary and secondary hosts must retain their original roles.
If you backed up the vda-preserve.zip file to a separate host when you started the update, you can
delete the /var/opt/SUNWvda/preserve directory.
5. If required, downgrade the operating system to the version of the operating system that is supported in
the previous release of Oracle VDI.
Unzip the Oracle VDI software archive for the previous release and change working directory to the
extracted directory.
# ./vda-install
At the end of the installation, you are prompted to configure Oracle VDI. Do not configure at this
stage. Type n and press the Return key.
• /var/opt/SUNWvda/cluster.map
• /etc/opt/SUNWvda/.truststore
• /etc/opt/SUNWvda/.keystore
270
Reverting to a Previous Release of Oracle VDI
To check if the vda instance still exists, run the following command.
# cacaoadm list-instances
When you configure a host, ensure you do not change the topology of the Oracle VDI Center. The
primary and secondary hosts must retain their original roles.
If you backed up the vda-preserve.zip file to a separate host when you started the update, you can
delete the /var/opt/SUNWvda/preserve directory.
5. If required, downgrade the operating system to the version of the operating system that is supported in
the previous release of Oracle VDI.
Unzip the Oracle VDI software archive for the previous release and change working directory to the
extracted directory.
# ./vda-install
At the end of the installation, you are prompted to configure Oracle VDI. Do not configure at this
stage. Type n and press the Return key.
• /var/opt/SUNWvda/cluster.map
271
Failover
• /etc/opt/SUNWvda/.truststore
• /etc/opt/SUNWvda/.keystore
When you configure a host, ensure you do not change the topology of the Oracle VDI Center. The
primary and secondary hosts must retain their original roles.
10.2. Failover
10.2.1. Troubleshooting a Failover
A failover is triggered when the Oracle VDI service on the database replication host fails to access the
database on the master database host. If the Oracle VDI Center contains more than two hosts, the
replication database host must also be able to contact one other host and that host must also report that it
failed to access the master database.
Warning
After a failover, first check the status of the Oracle VDI Center. Run the following command as root on
every host:
# /opt/SUNWvda/sbin/vda/vda-center status
• Do all hosts agree on the master database host and replication database host?
This is shown in the Service column in the output of the vda-center status command.
272
Troubleshooting a Failover
This is shown in the Service Status column in the output of the vda-center status command.
• Is any host shown with a host status that is anything other than Up?
This is shown in the Host Status column in the output of the vda-center status command.
See Section 8.5.1, “Checking the Status of the Oracle VDI Center” for a description of the possible host
statuses.
If there are problems with the database service or inconsistencies between the hosts, identify all the hosts
with reported roles in the Oracle VDI Center. Run the following command on every host:
# /opt/SUNWvda/sbin/vda-center getprops \
-p db.master.host,db.replication.host,srs.primary.host
See Section 8.11.1, “Identifying Hosts With a Role in an Oracle VDI Center” for more details.
Use the following information to determine the action that needs to be taken.
Normal Failover
After a normal failover, the original master database host is still the Sun Ray primary server, but it now runs
the replication database.
You might want to establish a single primary Oracle VDI host again by performing one of the following
actions:
• Move the Sun Ray primary server to the same host as the new master database host, see
Section 8.11.8, “Changing the Sun Ray Primary Server”.
• Move the master database back to the original master database host, see Section 8.11.3, “Changing the
Master Database Host”.
If the failure of the original master database host is permanent, or is taking a long time to resolve, perform
the following steps:
Verify that the host is still configured as the Sun Ray primary server, by running the following command
as root:
# /opt/SUNWvda/sbin/vda-center getprops -p srs.primary.host
If the host is the Sun Ray primary server, configure another host as the Sun Ray primary server, see
Section 8.11.8, “Changing the Sun Ray Primary Server”.
Configure another host to run the replication database so that database high availability is restored, see
Section 8.11.4, “Changing the Replication Database Host”.
3. Restart the Oracle VDI service on the original master database host.
273
Troubleshooting a Failover
4. If the problem persists, remove the host from the Oracle VDI Center.
See Section 8.11.7, “Removing an Unresponsive Host from an Oracle VDI Center”.
Restart the Oracle VDI service on each host that does not report the selected host as the master database
host, by running the following command as root:
# /opt/SUNWvda/sbin/vda-service restart
Only restart the Oracle VDI service on one host at a time, and wait until the host status is Up before
restarting the Oracle VDI service on another host.
No Database At All
In rare circumstances after a failover, the Oracle VDI Center might report there is no master or replication
database.
Whenever a failover occurs, Oracle VDI creates an emergency backup of the database in /var/opt/
SUNWvda/vdadump.zip.
You can use this backup to restore the database, see Section 8.7.2, “Restoring the Oracle VDI Database”
for details.
Only restart the Oracle VDI service on one host at a time, and wait until the host status is Up before
restarting the Oracle VDI service on another host.
274
After a Failover the Primary Host is Not Configured
If problems persist, remove the host from the Oracle VDI Center, see Section 8.11.7, “Removing an
Unresponsive Host from an Oracle VDI Center”.
When a failover occurs, the host that runs the replication database is promoted to run the master database.
However, by default the Sun Ray primary server is not changed. If the master database host and the Sun
Ray primary server are not the same, the vda.primary.host property is not set.
1. Identify the master database host and the Sun Ray primary server in an Oracle VDI Center.
2. Reconfigure the Oracle VDI Center so that the master database host and the Sun Ray primary host are
the same.
See either Section 8.11.3, “Changing the Master Database Host” or Section 8.11.8, “Changing the Sun
Ray Primary Server”.
3. (All user directory types) Enable additional logging for user directories.
# cacaoadm set-filter -i vda -p com.sun.directoryservices=ALL
# cacaoadm set-filter -i vda -p com.sun.sgd=ALL
Kerberos debug logging only applies if the user directory type is Active Directory. As Kerberos debug
logging is verbose, you should only enable Kerberos logging if you are asked to by Oracle Support, or if
you are particularly interested in Kerberos-related activity.
a. Obtain the current Java settings for the VDA Cacao instance.
275
Kerberos Authentication to Active Directory Works for a While and Then Stops
b. Make a note of the settings or copy them to a text file so that you can reset them later.
c. Edit the Java settings for the VDA Cacao instance including the original settings and the kerberos
debug setting.
# cacaoadm set-param -i vda java-flags=original-Java-settings -Dsun.security.krb5.debug=true
6. Recreate the problem and check the Cacao log file, see Section 8.5.4, “Checking the Oracle VDI Log
Files”.
Both the user directory logging and the Kerberos logging are output in the Cacao logs.
When you have obtained the information you need, reset the logging to the defaults.
3. (All user directory types) Disable additional logging for user directories.
# cacaoadm set-filter -i vda -p com.sun.directoryservices=NULL
# cacaoadm set-filter -i vda -p com.sun.sgd=NULL
Only perform this step if you enabled the additional debug logging for Kerberos.
Reset the Java settings for the VDA Cacao instance to their original settings.
# cacaoadm set-param -i vda java-flags=original-Java-settings
Make sure the domain controllers and the Oracle VDI servers are connecting to the same NTP server.
276
Can I Use PKI Instead of Kerberos for Authentication to an Active Directory?
Make sure the Kerberos configuration file (krb5.conf) contains the [libdefaults] section and
sets the default_realm as in the following example:
[libdefaults]
default_realm = MY.COMPANY.COM
[realms]
MY.COMPANY.COM = {
kdc = my.windows.host
}
[domain_realm]
.my.company.com = MY.COMPANY.COM
my.company.com = MY.COMPANY.COM
This is required. Oracle VDI needs to able to look up users and resolve the desktops assigned to the
users that log in. If Active Directory contains a single domain, this is typically the CN=Users container.
This is optional. Active Directory automatically creates a computer entry when a Windows desktop joins
the domain configured in System Preparation. Oracle VDI deletes the computer entry when a Windows
desktop is deleted. If Oracle VDI does not have write access, computer entries cannot be deleted from
Active Directory. Typically the computer container is OU=Computers.
This is optional. Oracle VDI uses this to populate the Domain field on the Desktop Login screen with
the domain or a list of subdomains. If Oracle VDI does not have read access, the Domain field on the
Desktop Login screen is empty.
For all other user directory types, read access to the configured base DN is required. Oracle VDI needs to
able to look up users and resolve the desktops assigned to the users that log in.
You can disable this behavior by configuring the domain-cleanup property for a pool, as follows:
/opt/SUNWvda/sbin/vda pool-setprops -p domain-cleanup=disabled pool
277
Oracle VM VirtualBox Desktop Provider
If you want to create virtual machine templates locally, for example on a laptop, make sure to use the
same release as you have installed on your Oracle VM VirtualBox desktop provider host. This ensures
that you install the correct version of the guest additions, and avoids incompatibility problems with the XML
configuration files for your virtual machines, which can prevent them from being imported into Oracle VDI.
10.4.2. Oracle VM VirtualBox Install Is Failing With "Postinstall Script Did Not
Complete Successfully" Errors
If you are installing Oracle VM VirtualBox, you may get the following error in the console:
## Executing postinstall script.
Configuring VirtualBox kernel modules...
VirtualBox Host kernel module unloaded.
devfsadm: driver failed to attach: vboxdrv
Warning: Driver (vboxdrv) successfully added to system but failed to attach
can't load module: No such device or address
## Aborting due to attach failure.
## Configuration failed. Aborting installation.
pkgadd: ERROR: postinstall script did not complete successfully
This error is typically seen when previous releases of VirtualBox are still installed. Try removing VirtualBox
(./vb-install -u). Then verify that the following packages have been removed:
• SUNWvbox
• SUNWvboxkern
• The DNS name of the host (if a DNS name is used) is resolved.
If you see the message "The operating system does not match because all hosts should
run the same operating system.", it means you cannot add the host to the desktop provider. Due
to the differences in the availability of the storage types and the way they are used, the virtualization hosts
278
What Are the Requirements for High Availability for Oracle VM VirtualBox?
for an Oracle VM VirtualBox desktop provider must use the same operating system. If you have a mixture
of Oracle Solaris and Oracle Linux virtualization hosts, you must create separate desktop providers for
them.
An error can be caused by DNS errors, either in resolving the host name or in contacting the host. If this
happens, check the following:
• Check that all the information you entered is correct, including SSH and SSL ports.
• Check that the Oracle VDI host can resolve the host by using the nslookup hostname command on
the Oracle VDI host.
• Check that the host is running and that the SSH service has started:
# svcs svc:/network/ssh:default
The service should be online. If a service is marked as maintenance, try resetting it using:
# svcadm clear <service_frmi>
Check that the VirtualBox web service is online, using the following command:
# svcs svc:/application/virtualbox/webservice:default
If the service is in maintenance mode, use the following command to clear the service and check the status
again:
# svcadm clear svc:/application/virtualbox/webservice:default
10.4.4. What Are the Requirements for High Availability for Oracle VM
VirtualBox?
High Availability for an Oracle VM VirtualBox virtualization platform would require at least two VirtualBox
hosts. In the event that one VirtualBox server goes down, all existing desktop sessions would be
terminated. Then the terminated sessions would be restarted on the remaining VirtualBox servers as they
are requested by users, as long as there is sufficient memory available.
High Availability for Oracle VDI, Sun Ray Software, and MySQL requires two Oracle VDI hosts.
See Section 2.1, “About Oracle VDI Centers and Hosts” for detailed information about the hardware
configurations that support this type of redundancy.
279
Changing the Password of the VirtualBox User
Before you change the password for the VirtualBox user, it is best to enable maintenance mode for the
VirtualBox host to minimize disruption to users. See Section 8.9.1, “Oracle VM VirtualBox and Microsoft
Hyper-V Host Maintenance”.
To change the password of the VirtualBox user, perform all of the following steps:
You can use the VirtualBox command line to generate the hash.
# VBoxManage internalcommands passwordhash password
For example:
# VBoxManage internalcommands passwordhash T0pSecr3t
Password hash: bfd5bde76fcee3c2e6fc583cd0541569a1d35d551c19d99b36a0ee7628b4b114
The VirtualBox web service uses the VBoxAuthSimple library to authenticate web service users.
The hashed password is stored in the VirtualBox global extra data items.
# VBoxManage setextradata global VBoxAuthSimple/users/User PasswordHash
For example:
# VBoxManage setextradata global VBoxAuthSimple/users/root \
bfd5bde76fcee3c2e6fc583cd0541569a1d35d551c19d99b36a0ee7628b4b114
d. Verify that the stored password hash for the VirtualBox web service user is correct.
# VBoxManage getextradata global VBoxAuthSimple/users/User
For example:
# VBoxManage getextradata global VBoxAuthSimple/users/root
Value: bfd5bde76fcee3c2e6fc583cd0541569a1d35d551c19d99b36a0ee7628b4b114
280
Adding a Sun ZFS or iSCSI Storage Fails if the VirtualBox User is Not Root
d. In the Password field, enter the new password and click Next to confirm the changed details.
10.4.6. Adding a Sun ZFS or iSCSI Storage Fails if the VirtualBox User is Not
Root
When you install VirtualBox, you specify the user that runs VirtualBox on the host. On Oracle Linux
platforms, if you do not specify root as the VirtualBox user, you cannot add a Sun ZFS or iSCSI storage to
the desktop provider.
The Cacao log messages show errors with executing the iscsiadm command, for example:
com.sun.vda.service.api.ServiceException: Error executing command
'iscsiadm -m node -T iqn.1986-03.com.sun:02:ca4afc97-4ffc-67ba-bac6-e8992567cf34
-p 191.168.1.100:3260 -o new' on host '192.168.1.100': iscsiadm: Maybe you are not root?
On Oracle Linux platforms, if you want to use Sun ZFS or iSCSI storage, the VirtualBox user must be root.
Solution: Stop OCFS2 services, disconnect the iSCSI target, and then add the storage again.
To stop OCFS2 services and disconnect the iSCSI target, perform the following steps on each
virtualization host for the desktop provider:
This command should unmount all OCFS2 file systems and stop all OCFS2 activity.
If the file system is not unmounted, try to unmount it using the following command:
# umount /vdi/mount
If it is not possible to unmount the OCFS2 file system because the device is busy. Use the following
command to stop all processes running on the mount:
# fuser -k /vdi/mount
281
A Sun ZFS or iSCSI Storage is Shown With a Reduced Capacity
Use the iscsiadm -m session command to list the iSCSI targets on the host. For example:
# iscsiadm -m session
tcp: [1] 192.168.1.100:3260,1 iqn.1986-03.com.sun:vdi:j4c4iwosixizjpniicm9:y29qlvunnmdnes5jolyu
In this example, the session ID is shown in brackets [1], followed by the IP address and
port of the iSCSI server (192.168.1.100:3260), followed by the iSCSI target name
(iqn.1986-03.com.sun:vdi:j4c4iwosixizjpniicm9:y29qlvunnmdnes5jolyu).
For example:
# iscsiadm -m node -T iqn.1986-03.com.sun:vdi:j4c4iwosixizjpniicm9:y29qlvunnmdnes5jolyu \
-p 192.168.1.100:3260 --logout
For example:
# iscsiadm -m node -T iqn.1986-03.com.sun:vdi:j4c4iwosixizjpniicm9:y29qlvunnmdnes5jolyu \
-p 192.168.1.100:3260 -o delete
• A storage that is larger than 16 terabytes (TB) is shown as having a capacity of only 16TB.
• A small-capacity storage, for example 20 gigabytes (GB), is shown having a significantly reduced
capacity, for example 15GB.
This issue is a result of using the Oracle Cluster File System version 2 (OCFS2) with the Sun ZFS or iSCSI
storage types on Oracle Linux platforms.
OCFS2 only supports partitions up to 16TB (due to the default block size of 4 kilobytes). When Oracle
VDI formats the OCFS2 partition on a storage, it restricts the partition size to 16TB to avoid configuration
errors.
For small-capacity storages, the reduction in capacity is due to the requirements of the OCFS2 file system.
The workaround is to use a bigger storage. The storage capacity should be at least 50GB, depending on
the number of desktops you want to run.
Solution: You must enable maintenance mode for the storage first, see Section 8.9.1, “Oracle VM
VirtualBox and Microsoft Hyper-V Host Maintenance”. This enables Oracle VDI to migrate the desktops
to another storage host and, if needed, to unmount the OCFS2 file systems. Once the storage is in
maintenance mode, it can be removed.
282
Virtualization Hosts Crash if a Storage is Shut Down
If the storage is a local storage and there are multiple virtualization hosts, Oracle VDI automatically creates
a local storage for each virtualization host so that the free space and number of desktops can be monitored
on each host. You must enable maintenance mode for all the local storages before you can remove the
local storage.
If a storage host is shut down (or crashes) and the associated Oracle Cluster File System version 2
(OCFS2) file systems are still mounted on the virtualization hosts, the virtualization hosts crash.
If you need to reboot a storage host, enable maintenance mode for the storage first, see Section 8.9.2,
“Storage Maintenance”. This enables Oracle VDI to unmount the OCFS2 file systems. Once the storage is
in maintenance mode, it can be rebooted.
The alarm is displayed because the configured storage is not yet ready for use. When VirtualBox hosts run
on the Oracle Linux platform, Oracle VDI formats the storage using Oracle Cluster File System version 2
(OCFS2). The critical alarm is displayed for as long as it takes to format the storage. This affects Sun ZFS
and iSCSI storage types only, local and network file system storage types are not affected.
The solution is to edit the configuration of the provider host. See Section 8.8.1, “Reconfiguring an Oracle
VM VirtualBox Host” for details.
The solution is to reload the storage configuration so that the OCFS2 file system is remounted. See
Section 8.8.2, “Reloading iSCSI or Sun ZFS Storage Configuration on Oracle VM VirtualBox Hosts” for
details.
283
The Time in My Oracle VM VirtualBox Desktop Is Too Slow
You can work round this issue by limiting the areas which Oracle VM VirtualBox detects and sends as
video. You do this by configuring a pool property with the following command:
/opt/SUNWvda/sbin/vda pool-setprops -p limited-rca-detection=enabled PoolName
When this property is enabled, screen areas greater than 800 x 600, but smaller than full screen, are not
downscaled.
The typical lines are PIT: mode=2 count=0x2ead (11949) - 99.85Hz (ch=0) and PIT: mode=2
count=0x4ad (1197) - 996.81Hz (ch=0).
Assuming there is only one application which requests the high timer resolution, it can be found by
terminating all running applications one by one, and watching whether the log file shows the drop in timer
resolution. This shows up instantaneously.
Also, looking at the output of prstat often allows to detect which VM processes use substantially more
CPU time than others. This allows reducing the number of candidates if only some VMs use 1kHz timer
resolution.
Performance issues caused by the timer resolution are often dormant until the number of VMs on a
VirtualBox host exceeds the number of (true) CPU cores in the server. The reason is that VirtualBox tries
its best to deal with the situation, which usually keeps a full CPU core busy. When there are more such
VMs they block each other, triggering a symptom which is easy to observe - time in the VM runs much
slower than it should.
10.4.16. I Can See My Oracle VM VirtualBox Hosted Desktop, But It Will Not
Start
In some rare circumstances a desktop may be left registered and powered off on an Oracle VM VirtualBox
host. Desktops in this state for more than a couple of minutes can safely be deleted from the VirtualBox
host if necessary as the configuration is stored in the Oracle VDI database and all data on a storage host.
When manually unregistering a desktop from VirtualBox ensure that you also unregister the desktop's disk
image.
Steps to resolve:
1. Log in as the user you specified during the installation of VirtualBox (typically 'root').
• Or, use the Oracle VDI Manager to obtain the ZFS volume name listed in the Desktop Summary tab.
The UUID is the string after the forward slash (example: f3ced2bb-d072-4efc-83c9-5a487872919d).
3. To unregister the virtual machine on the VirtualBox host (this action does not delete the Oracle VDI
desktop), execute:
284
Why Are My Windows 7 Audio Drivers Not Automatically Installed?
4. To unregister the virtual disk on the VirtualBox host (this action does not delete the Oracle VDI
desktop), execute:
VBoxManage unregisterimage disk uuid
For the 64-bit versions of Windows 7, you have to download the Realtek AC'97 drivers to enable audio.
10.5.2. Users Cannot Log Into Their VMware Provided Windows desktop
Verify that the users are configured for remote access and are allowed to perform a remote access.
Verify that the network adapter is enabled in the template and is connected to the correct network.
Verify that there is a properly configured DHCP server with enough leases running on the subnet your
virtual machine will run on.
If this is enabled, the issue probably has to do with your network settings.
2. Verify that the virtual machine's subnet can be reached from the Windows machine from which you run
the Remote Desktop Connection client.
If you have set up a private network for your virtual machines, it might not be accessible from a
machine not on that network.
285
Creating a vCenter Desktop Provider Fails With "Unable to Contact
VMware VirtualCenter - Host Not Reachable at Port 443" Errors
For more information about how to regenerate an expired certificate, refer to the VMware Knowledge Base
article ID 1009092.
Once the certificate is regenerated, you should be able to successfully create a desktop provider.
Depending on the recycle policy settings for your pool, before a newly created virtual machine is made
available for users, a snapshot is taken. This operation requires sufficient disk space.
2. Verify that the RDP port (typically 3389) of the Windows guest OS instance is open.
Before a newly created virtual machine is made available, the Virtual Desktop Connector verifies
whether RDP communication can be established to the virtual machine. The following issues might
prevent a successful test:
• The virtual machine is on a private network and cannot be accessed by the Virtual Desktop
Connector. Verify your network configuration.
The following procedure describes how to set up a customized virtual machine template according to
VMware customization specs to correct this problem. It requires that RDP is disabled in the virtual machine
template and that RDP is not blocked by a firewall when cloning is completed.
Preparations for manual Sysprep for Windows XP VMs (Step 3) and Windows 7 or later VMs (Step 4) are
also included.
1. Disable RDP by making sure the Remote Desktop checkbox on the Remote section of the System
Preference dialog on the Windows Control Panel is unchecked.
Note
If you are using the Windows Firewall, make sure that the Remote Desktop item
is checked under Firewall Exceptions.
2. Create a registry file called enableRdp.reg at C:\ with the following content:
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]
286
VMware Windows 8 Cloning Fails
"fDenyTSConnections"=dword:00000000
The enableRdp.reg file is used at the end of the Sysprep process to enable RDP in the Windows
registry.
3. For Windows XP manual Sysprep, include the following under Additional Commands in the Setup
Manager tool:
regedit /s C:\enableRdp.reg
The Setup Manager tool is used to create answer files for Sysprep.
4. For Windows 7 and later manual Sysprep and customization specs, create a batch file called
SetupComplete.cmd in the %WINDIR%\Setup\Scripts directory with the following content:
regedit /s C:\enableRdp.reg
1. Configure the Run VMware Tools Scripts panel on the Virtual Infrastructure Client.
a. Select Edit Settings of a particular VM to bring up the Virtual Machine Properties page.
This is where you can modify the behavior of the Power Controls (Start, Stop, Suspend, and Reset).
d. Next to the Power Off switch (red rectangle), select Shut Down Guest.
This allows the guest OS to shut down gracefully when the Power Control button is pressed.
e. In the Run VMware Tools Scripts panel, check the Before Powering Off checkbox.
2. Repeat steps a. through e. above to configure the Run VMware Tools Scripts panel on the guest OS.
The install location on the guest OS, typically C:\Program Files\VMware\VMware Tools,
contains the following default scripts:
poweroff-vm-default.bat
poweron-vm-default.bat
resume-vm-default.bat
suspend-vm-default.bat
287
I Have Created a New Pool in My VMware Desktop provider and Virtual Machines Are Not Created Automatically
The poweroff-vm-default.bat script is the first to execute when the VM is powered off from the
VMware Infrastructure Client. It now calls tsdiscon.exe, which closes all open RDP connections.
• There is not enough disk space available to create copies of the template.
The problem arises in determining which exactly is the primary interface. The VMware documentation
would lead us to believe that it is the primary interface listed in Windows. But, this is not the case. In fact,
the primary interface is determined by the order of the network adapters in VMware vCenter. The network
adapter with the highest number, usually the one which was added most recently, is the primary network
adapter.
2. Select the network adapter with the highest number, for example Network Adapter 3.
3. This is the primary network interface. Change the network label to the appropriate network for RDP.
4. You may need to adjust the other network adapters so that the virtual machine is assigned to all the
correct networks.
288
Unused VMware Virtual Machines Are Not Being Recycled
2. Verify that the VMware Tools and the Virtual Desktop Connector Tools are installed and running on the
Windows guest OS.
Check the Windows Event Log for any problems with the tools.
If you imported desktops from a previous release of Oracle VDI, verify that the desktop is using the
latest version of the Oracle VDI tools. Open the desktop console, go to Control Panel > Add or Remove
Programs. Open the support information for Oracle VDI Tools. The version number of the tools must
match your Oracle VDI release number.
Check the virtual machine settings (Options/Power management), and make sure that the Suspend the
Virtual Machine item is selected.
4. Verify that the Windows guest OS actually enters standby and the virtual machine suspends when the
machine is not in use.
Note
If you experience problems with the standby feature in Windows XP, see http://
www.terranovum.com/projects/energystar/ez_gpo.html. EZ GPO includes a group
policy for power options.
This is why it is strongly recommended to add all RDS hosts of the farm to the Microsoft Remote Desktop
provider. See Section 4.2.5, “Microsoft RDS Farm (NLB Cluster) Management” for details.
10.6.2. Hyper-V Desktop Cloning Fails With "Cannot Reload MSiSCSI Target
List" Errors
The desktop cloning process relies on the iscsicli command-line interface on the Hyper-V server in
order to assign a disk to the new clone. The iscsicli command may sometimes hang on the Hyper-V
server, which in turn will cause the cloning process to fail with the error "Cannot reload MSiSCSI target
list".
Oracle VDI supports a number of settings which allow an administrator to configure how Oracle VDI runs
the iscsicli command on the Hyper-V server. The properties can be modified using the vda command-
line interface. The settings that can be modified are as follows:
289
Can I Enter the Farm Information for the Microsoft Remote Desktop Provider
and let Oracle VDI Detect the Individual RDS Hosts Participating in the Farm?
msiscsi.timeout - The amount of time that Oracle VDI should wait for MSiSCSI operations to complete
on a Windows server.
msiscsi.retries - The number of times Oracle VDI retry loading the iSCSI target list on a Windows
server before returning an error.
msiscsi.retry.interval - The amount of time that Oracle VDI should wait between iSCSI load
retries.
To see the current values for the settings use the command:
# /opt/SUNWvda/sbin/vda settings-getprops \
--property=msiscsi.timeout,msiscsi.retries,msiscsi.retry.interval
To set new values for the settings use a command like the following:
# /opt/SUNWvda/sbin/vda settings-setprops \
--property=msiscsi.timeout=30,msiscsi.retries=10,msiscsi.retry.interval=15
In particular, increasing the value of the msiscsi.retry.interval property has been observed to
reduce the number of cloning failures due to iscsicli failure.
10.6.3. Can I Enter the Farm Information for the Microsoft Remote Desktop
Provider and let Oracle VDI Detect the Individual RDS Hosts Participating in
the Farm?
No, it is not possible to do so. If you want Oracle VDI to collect information about the sessions and allow
some control over them, you need to provide the administrator credentials of each individual RDS host
participating in the farm so that Oracle VDI is able to query these hosts about the sessions.
Alternatively, you may choose to only specify the Remote Desktop Server Farm, in which case no session
and load information is available in Oracle VDI.
See Section 4.2.5, “Microsoft RDS Farm (NLB Cluster) Management” for details.
10.6.4. Oracle VDI Is Not Able to Communicate With the Windows Server
Test that WinRM can communicate using HTTP between two Windows servers.
To configure WinRM to listen for HTTP requests run "winrm qc" on your windows platform.
On another windows machine execute the command below where IP is the IP address or host name of the
Windows server you want to test and USER is the local administrator on the Windows server you want to
test.
C:\Documents and Settings\Administrator>winrm id -r:IP -u:USER
IdentifyResponse
ProtocolVersion = http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
ProductVendor = Microsoft Corporation
ProductVersion = OS: 5.2.3790 SP: 2.0 Stack: 1.1
If you get an error executing this command then WinRM has not been setup correctly on the Windows
server.
290
Desktops and Pools
For some Oracle VDI deployments, this limit is too low and can cause communication problems between
Oracle VDI and Hyper-V. When there are communication problems, the cacao logs typically contain the
following error message:
SOAP Fault: The WS-Management service cannot process the request. The maximum
number of concurrent operations for this user has been exceeded. Close existing
operations for this user, or raise the quota for this user.
Actor:
Code: s:Receiver
Subcodes: w:InternalError
Detail: The WS-Management service cannot process the request. This user is
allowed a maximum number of 15 concurrent operations, which has been exceeded.
Close existing operations for this user, or raise the quota for this user.
If you see this error message, the solution is to increase the MaxConcurrentOperationsPerUser
property to a value that is appropriate for your Oracle VDI deployment. To change the property, run the
following command on the Hyper-V host:
> winrm set winrm/config/service @{MaxConcurrentOperationsPerUser="num"}
For example:
> winrm set winrm/config/service @{MaxConcurrentOperationsPerUser="200"}
10.7.2. Starting a Desktop Fails With "No suitable Hosts to Start a Desktop for
Desktop Provider <Name>" Errors
The error 'No suitable hosts to start a desktop for Desktop Provider Name.' indicates that there were no
hosts with sufficient memory in your desktop provider.
Check the available memory on your hosts using Oracle VDI Manager under the Desktop Provider > Hosts
tab.
• Flexible Assignment: Desktops that are flexibly (or dynamically) assigned are owned by users only
temporarily. Once users log out of their desktops or their desktops are no longer in use, the desktops are
recycled and become available for other users. As part of the recycle process, the desktop assignment is
removed.
291
Oracle VDI Fast Preparation Is Failing
Personal assignments are created when you select a specific desktop in the Oracle VDI Admin GUI and
assign it explicitly to a user.
If you assign a user (or a group of users) to a pool, the desktop assignments are created on demand
the first time the user requests a desktop (or connects to a desktop). The type of assignment (personal
or flexible) depends on the pool settings. You can configure this individually for each pool on the Pool -
Settings subcategory (see the Desktop Assignment section).
In addition to the assignment type, you can also specify how each pool is filled with desktops. Here you
have the choice to manually import desktops, or to clone desktops automatically from a specified template
(see the Cloning subcategory).
When you create a new pool, we provide default settings for the assignment and cloning configurations.
For convenience, the pool wizard offers "Manual", "Dynamic", and "Growing" pool types which only differ in
their default settings. You can change the pool settings at any point. The pool type is not stored anywhere
- it just defines the initial pool settings and is offered as a shortcut. The main differences in the pool types
are as follows:
• Dynamic pool: Desktops are cloned from a template. Flexible desktop assignment is the default.
• Growing pool: Desktops are cloned from a template. Personal desktop assignment is the default.
• Manual pool: Cloning disabled (you have to manually fill this pool via importing desktops). Personal
desktop assignment is the default.
Recycling of desktops will only happen for flexibly assigned desktops. This is independent from the
desktop provider.
In the event that FastPrep fails a Windows system error code is usually returned. These error codes can be
checked on MSDN:
http://msdn.microsoft.com/en-us/library/ms681381(VS.85).aspx
1355 = The specified domain either does not exist or could not be contacted.
- Verify the spelling of your domain and ensure the desktop can resolve the domain name. This is typically
caused by incorrect DNS settings. If using Oracle VM VirtualBox NAT networking, ensure the host has the
correct DNS server in /etc/resolv.conf.
10.7.5. Can I Use Wild Cards in Token Names to Represent a Group of Thin
Clients in Order to Assign These Thin Clients to a Pool?
No, but Oracle VDI defines two special tokens to assign all Sun Ray Clients or all Smart Cards to a pool.
292
The Audio in My Ubuntu Desktop Is Playing Too Slowly. What Should I Do?
AnySunRayClient.000 is a predefined token to assign all Sun Ray Clients (Sun Ray hardware and Oracle
Virtual Desktop Client) together to a pool. The user will get a desktop from the pool if the Sun Ray Client is
used without a Smart Card.
AnySmartCard.000 is a predefined token to assign all Smart Cards to a pool. The user will get a desktop
from the pool if the Sun Ray Client is used with a Smart Card.
Alternatively, you can create tokens in bulk and have them associated to users by using the Oracle
VDI command line as described in Section 5.7.3, “Assigning Tokens to Users”. Then you can make
pool assignments based on existing groups of users in your user directory, or groups you would define
especially for Oracle VDI installations using Custom Groups.
10.7.6. The Audio in My Ubuntu Desktop Is Playing Too Slowly. What Should I
Do?
The alsa driver in the guest desktop tries to autodetect the ac97 hardware clock. This method does not
work with Oracle VM VirtualBox ac97 emulation. Sometimes the driver gets results which look sane but
are actually not, and calculates the clock frequency based on that, getting a wrong value. The ac97_clock
option in alsa_base.conf disables autodetection.
10.7.7. Audio Does Not Play After Changing the Audio Configuration for
Oracle VM VirtualBox Hosted Desktops in Oracle VDI Manager
If you change a desktop's configuration (for example: audio) from Oracle VDI Manager, the changes will
not take effect until the desktop has been unregistered/re-registered on an Oracle VM VirtualBox host.
Simply restarting the desktop from within will not result in this behavior. To force the unregister/register,
choose either Power Off or Shutdown from Oracle VDI Manager and then choose Start.
See Section 6.1, “About Desktop Access” for a list of features supported by each client.
• Check that Sun Ray Clients are using the latest firmware.
See Sun Ray Client Firmware in the Sun Ray Software Administration Guide for details of how to update
the Sun Ray Operating Software on Sun Ray Clients.
293
Smart Cards Are Not Detected When VRDP Is Used
• If the USB device is a USB 2.0 device, check that a USB 2.0 (EHCI) controller is configured in the
desktop or template and is enabled in the virtual machine.
• If MS-RDP is the selected RDP protocol for the pool, ensure the USB redirection component of the Sun
Ray Windows connector is installed in the desktop or template.
• For VMware vCenter or Microsoft Hyper-V desktop providers, check that USB drivers are installed in the
template or desktop.
• Check that the desktop provider is using the release of Oracle VM VirtualBox that is shipped with your
Oracle VDI release.
• Check that the desktop or template is using the correct version of the Oracle VM VirtualBox Guest
Additions.
In order to use smart cards, the device drivers for the smart card reader must be installed in the desktop. It
is best to install the drivers in the desktop template before it is used for cloning in a pool.
10.7.11. Cloning Fails if the Sysprep Timezone Setting Does not Match the
Host Timezone
The Sysprep process removes a template's timezone setting before cloning and uses the default Sysprep
setting (GMT) instead. If the virtualization host is in a different timezone than GMT, the mismatch causes
cloning to fail. The workaround for this issue is:
3. In the Edit System Preparation window, change the TimeZone setting from 85 to the appropriate code
for your timezone.
For example, the timezone code for India Standard Time is 190.
4. Click Save.
5. Enable cloning in the pool and check if the problem is still reproducible.
294
Starting A Desktop Fails With an "Error Getting State" Message
• Use the vda desktop-show desktop command to display the guest additions version for a desktop.
• Use the vda template-show template command to display the guest additions version for a
template.
To determine the desktop or template, see Section 9.1.1, “Obtaining the ID of a Desktop” and
Section 9.2.1, “Obtaining the ID of a Template”.
The problem is caused by an existing registered virtual machine (VM) that has the same name as the
desktop that failed to start, but for some reason the existing VM is inaccessible.
1. Log in as the VirtualBox user (typically root) on the VirtualBox host that hosted the failed desktop.
2. Use the VBoxManage list vms command to list all the registered VMs on the host, for example:
# VBoxManage list vms
"Win700000013" {a7aeff15-f6fb-4c10-bbf4-499bb568c551}
"<inaccessible>" {15a0fdd9-69cb-4de2-b4a9-954633917f82}
"Win700000008" {405b5579-793b-4e80-9f60-0b2df73ebadc}
"Win700000019" {c47d23dc-875f-45c3-820d-bf64d013019f}
The output shows lists the VM name in quotes, for example "Win700000013" and the UUID of the
VM in curly brackets, for example {a7aeff15-f6fb-4c10-bbf4-499bb568c551}. Inaccessible
VMs display <inaccessible> instead of the name, as shown in the example above.
Use the VBoxManage unregistervm UUID command to unregister the VM, for example:
# VBoxManage unregistervm 15a0fdd9-69cb-4de2-b4a9-954633917f82
After you have deleted the inaccessible VMs, you should be able to start the failed desktop.
295
Creating or Updating an App-V Repository Fails With a "Failed to Refresh App-V Cache" Message
If you use Sun ZFS storages and Oracle VM VirtualBox on Oracle Solaris platforms, it can take a long time
to copy the App-V volume between storages.
You can improve the time it takes to copy the the App-V volume, by specifying the size of the disk with the
disk-size property when you create the App-V repository. For example, to specify a disk size of 500
gigabytes (GB):
/opt/SUNWvda/sbin/vda template-appv-create -p name=MyAppv,pool=MyTemplates,\
admin=Administrator,appv-username=appv-user,customization-type=fastprep,\
windows-release=win7,domain=example.com,domain-admin=Administrator,disk-size=500 4
You can only specify the disk size on the command line and only when you create the repository. The
minimum disk size is one GB.
For the best performance, ensure that the App-V user does not have a roaming profile. You might want
to define an App-V user in Active Directory specifically for Oracle VDI. To change the App-V user, see
Section 9.4.5, “Creating a Revision to an App-V Repository”.
• The configured App-V user is not a member of the App-V group in Active Directory.
• The operation to refresh the App-V cache took too long and timed out.
If this happens, check the Cacao logs, see Section 8.5.4, “Checking the Oracle VDI Log Files”.
If the operation to refresh the App-V cache refresh timed out, the Cacao logs contain messages like the
following:
com.sun.vda.vbox.ws.impl.Machine42Impl executeProcess
WARNING: thr#749 Process timed out
com.sun.vda.service.vbox.AppVGuestExecution logCommandResult
FINE: thr#749 Remote command C:\refreshcache.bat
[C:\VDI_APPV] on desktop appvrpo12345678 exited with -1.
296
Creating or Updating an App-V Repository Fails With a "Failed to Login User" Message
com.sun.vda.service.vbox.AppVGuestExecution logCommandResult
FINE: thr#8288 Remote command C:\refreshcache.bat
[C:\VDI_APPV] on desktop appvrpo123456782 exited with 1.
stdout: Querying Servers
Refreshing Servers
Refreshing Server AppVMgmtServer
sftmime REFRESH SERVER:AppVMgmtServer failed
If this happens, check the user name and password of the App-V user is correct both in Active Directory
and in your App-V repository configuration.
If the configured App-V user has a Windows roaming profile, the profile has to be downloaded to the
staging desktop. This can significantly increase the time it takes to create or update an App-V repository
and can result in timeouts.
For the best performance, ensure that the App-V user does not have a roaming profile. You might want
to define an App-V user in Active Directory specifically for Oracle VDI. To change the App-V user, see
Section 9.4.5, “Creating a Revision to an App-V Repository”.
For example:
/opt/SUNWvda/sbin/vda settings-setprops -p 15
• The VirtualBox guest additions installed in the template used to create the App-V repository were not
installed with the /with_autologon switch.
• The system preparation failed and the staging desktop was unable to join the domain.
If this happens, reinstall the guest additions in the template used to create the App-V repository and check
that the specified system preparation configuration is correct.
If this happens, check the Cacao logs, see Section 8.5.4, “Checking the Oracle VDI Log Files”.
If low disk space was the cause of the problem, the Cacao logs contain messages like the following:
Found App-V cache on D:
Microsoft DiskPart version 6.1.7601
Copyright (C) 1999-2008 Microsoft Corporation.
297
Creating an App-V Repository Revision Fails With "An Internal Error Occurred" Message
On computer: APPV_CLONE01
Volume 3 is the selected volume.
Virtual Disk Service error:
Assigning or removing drive letters on the current boot or pagefile volume is not allowed.
In Microsoft Windows, the default setting for virtual memory management is Automatically manage
paging file size for all drives. If the disk space in the desktop template is low, this can cause Windows
to store the paging file on the App-V repository disk and this might result in a failure to clone the staging
desktop or to create the App-V disk.
The solution is to ensure that the desktop template has adequate free disk space. Alternatively, you can
customize the virtual memory management settings in the desktop template so that either no paging file is
used or the paging file is sized so that it can be stored on the C: drive.
10.7.18. Creating an App-V Repository Revision Fails With "An Internal Error
Occurred" Message
If you create a revision to an App-V repository and it fails with an "An Internal Error Occurred" message,
this can be because the trust relationship between the staging desktop used for the App-V Repository and
primary domain has failed. If this happens, Oracle VDI cannot run the required commands as the App-V
user from the primary domain.
If this happens, check the Cacao logs, see Section 8.5.4, “Checking the Oracle VDI Log Files”.
If a failure in the trust relationship was the cause of the problem, the Cacao logs contain messages like the
following:
Caused by: org.virtualbox_4_2.VBoxException: VirtualBox error:
VERR_UNRESOLVED_ERROR (0x80BB0005)
at org.virtualbox_4_2.IProcess.waitFor(IProcess.java:187)
at com.sun.vda.vbox.ws.impl.Machine42Impl.executeProcess(Machine42Impl.java:1430)
... 16 moreq
The VirtualBox log files for the staging desktop might contain the following:
00:04:27.666559 ERROR [COM]: aRC=VBOX_E_IPRT_ERROR (0x80bb0005)
aIID={dfa39a36-5d43-4840-a025-67ea956b3111} aComponent={GuestProcess}
aText={VERR_UNRESOLVED_ERROR}, preserve=false
The only solution is to create a new App-V repository. You can modify group policy settings to prevent this
error from occurring, see Section 10.8.7, “The Trust Relationship Between a Windows Desktop and the
Domain Controller Fails”.
2. If things work as expected, then the vda-client will trigger the startup of the corresponding desktop
and should return an IP (for example. 10.16.46.208) or DNS name (for example, xpdesktop01) for
accessing the user's desktop. If the RDP port differs from the default, then it will be appended to the IP/
DNS name (for example. 10.16.46.208:49259 or xpdesktop01:49259)
3. With that information it should now be possible to establish an RDP connection to the desktop.
298
A User Can Log in But Their Desktop is Not Responding
4. If no IP or DNS name is returned by vda-client, Oracle VDI might not be able to resolve the user ID in
the user directory.
To check that, change the log level for directory services as described in Section 10.3.1, “Increasing
Logging to Troubleshoot User Directory Problems”.
See Section 8.5.4, “Checking the Oracle VDI Log Files” for details.
6. If <dn> is null, that means that no user matching the user id <test user> was found in the user
directory. It might be necessary to customize the list of attributes ldap.userid.attributes to
match the directory schema as explained in Section C.1, “Editing LDAP Filters and Attributes”.
7. If <dn> is not null, that means that the user matching the user id <test user> was correctly found in
the user directory.
If this happens, the solution is to restart the desktop. This can be performed by an administrator (for
example with the vda desktop-restart command) or by the user.
For a user to restart their desktop, they must first disconnect from the desktop by moving the mouse up
to the top of the screen and clicking the "X" on the remote desktop pulldown menu. When the Desktop
Selector screen is displayed, the user selects the non-responsive desktop and clicks the Reset button to
restart the desktop. Restarting a desktop is the same a rebooting a traditional PC, and users also see a
warning that they might lose their unsaved data. Once the desktop is rebooted, it can be connected to from
the Desktop Selector screen. Desktops provided by the following provider types cannot be restarted in this
way:
• There is a pool assigned to the user, but no desktops in the pool are available or free to use.
• A desktop has been selected, but it is in an unusable state, typically the startup of the desktop has failed
for whatever reasons.
If this message occurs, check the Cacao log file, see Section 8.5.4, “Checking the Oracle VDI Log Files”.
1. Check that your desktop/pool assignments are correctly recognized by your system.
299
Error - "Currently There Is No Desktop Available Or Assigned to You"
The Oracle VDI Kiosk login uses an internal command (vda-client) to retrieve that information. You
can manually trigger this command from a terminal (root privileges are not necessary):
$ /opt/SUNWvda/lib/vda-client -a query -u user
Password: xxxxx
Windows 7,Windows7000003,8,User
The command asks for the user's password. So you have to enter the same credential information
as on the Kiosk session login screen (if authentication is disabled on your system, the vda-client
command will still prompt for a password, but you can leave this blank then - your input is not validated
in this case).
If everything works, then you should get a CSV list of desktop/pool assignments. The format is
something like:
<pool-name>,<desktop-name>,<desktop-ID>,<origin>
If you get an error here, or the system reports no assignments, check the Cacao logs. Look for entries
of the ClientRequestWorker that handles vda-client requests:
...
Jun 26, 2009 12:10:47 PM com.sun.vda.service.client.ClientRequestWorker run
FINEST: Received request from vda-client (127.0.0.1): query(user=username)
...
Jun 26, 2009 12:10:49 PM com.sun.vda.service.client.ClientRequestWorker run
FINEST: Sent response to vda-client: Windows 7,Windows70000003,8,User
...
• Authentication failed
• The user name could not be found in LDAP and as a result no user DN could be determined
The log entries between the request received and sent response should give you some insights here.
The pool-name and desktop-Id parameters are only necessary if multiple desktops are assigned
and you want to start a specific desktop. If there is only one desktop or pool assigned (or you just want
to start the default desktop), then you do not need to provide these parameters. If everything works,
then the command will return the name (or IP) of the user's desktop/virtual machine optionally followed
by a colon and the number of the RDP port.
If that does not work (the command reports an error), then you should again take a look into the logs:
...
Jun 26, 2009 12:25:14 PM com.sun.vda.service.client.ClientRequestWorker run
FINEST: Received request from vda-client (127.0.0.1): start(user=username)
....
Jun 26, 2009 12:25:18 PM com.sun.vda.service.client.ClientRequestWorker run
300
The Sun Ray Client Is Cycling and Cannot Connect to a Virtual Machine
Again the log entries between the request received and sent response should give you some insights
about any issues here.
One typical issue is that no suitable host to start the desktop has been found. In that case you should first
check the memory available for running the desktop/virtual machine.
10.8.4. The Sun Ray Client Is Cycling and Cannot Connect to a Virtual Machine
1. Verify that you have a virtual machine available to connect to.
2. Verify that remote access is correctly configured on your guest operating system.
3. Verify that the Oracle VDI host can communicate with either your vCenter or your Oracle VM VirtualBox
host.
4. Verify that the VMware tools are installed on the Windows guest OS.
5. If connecting to Windows 7 or Windows 8 desktops using Microsoft RDP, ensure that users log in within
30 seconds.
By default Windows 7 and Windows 8 disconnect an RDP connection if no-one logs in within 30
seconds.
10.8.5. Users Cannot Log in to Ubuntu 8.04 Desktops Because the Network Is
Not Enabled
Ubuntu has the old "Debian style" network behavior so that every MAC address change (every clone)
bumps the network interface name by one. The result is that getting a working network configuration
requires a few admin mouse clicks. The only solution to this is at template preparation time by excluding
the Oracle VM VirtualBox MAC address range (08:00:27:*) from the "persistent net" machinery in /
lib/udev/rules.d/75-persistent-net-generator.rules and then purging /etc/udev/
rules.d/70-persistent-net.rules.
For Windows desktops, Oracle VDI can distinguish between a desktop disconnect and a desktop logout. If
a user selects Start > Logout from the Windows start menu, the user is logged out of the Windows desktop
and the Oracle VDI (kiosk) session. If the user selects Start > Disconnect, then the user is disconnected
from the Windows desktop while remaining logged into VDI. If disconnected but not logged out, the user is
returned to the desktop selection screen and can, for example, select a different desktop without the need
to log in again. This disconnect behavior is controlled by the client.logout.always setting, which is
301
The Trust Relationship Between a Windows Desktop and the Domain Controller Fails
enabled by default for security reasons. When it is enabled, the user is automatically logged out of Oracle
VDI upon disconnecting from a Windows desktop. If the setting is disabled, however, then a disconnect
does not result in a logout from the Oracle VDI session.
As part of the Oracle VDI logout process, the Sun Ray Client is redirected to the initially/first contacted
Oracle VDI Center. This behavior is especially useful when dealing with multiple VDI centers.
Unfortunately, the distinction between logout and disconnect does not work for Windows XP Professional
virtual desktops, if Microsoft RDP (MS-RDP) is used for displaying the desktop (and the desktop has joined
a domain). In this specific case, because Windows XP returns the wrong exit code, Oracle VDI interprets
a Start > Logout as a desktop disconnect. Consequently, the user is not logged out of Oracle VDI, and the
Sun Ray Client is not redirected to the initial Oracle VDI Center.
The workaround is either to use VirtualBox RDP (VRDP) instead of MS RDP or to ensure that users
are always logged out of Oracle VDI when they disconnect from their desktop. As explained above, the
client.logout.always setting is already enabled by default. If you have changed this behavior, you
can reset it with the following command:
# /opt/SUNWvda/sbin/vda settings-setprops -p client.logout.always=Enabled
10.8.7. The Trust Relationship Between a Windows Desktop and the Domain
Controller Fails
Windows computers use the machine account password to authenticate with the domain. By default,
Windows is configured to change the machine account password every 30 days. If the Oracle VDI pool's
desktop recycling policy is configured to Reset to Snapshot, a mismatch between the credentials of the
desktop and the domain controller may occur. When you revert to a snapshot of the desktop, all automatic
password updates are erased. Under these circumstances, when a user logs in and the Windows
desktop attempts to join the domain, the domain controller reports that the trust relationship between the
workstation and the primary domain controller failed, or that there are unknown logon errors.
For instructions, see Section 9.1.12, “Recloning Selected Desktops” and Section 9.1.13, “Recloning All
Unused Desktops”.
• Modify the Group Policy Object settings of the affected desktops to disable password changes.
3. Use the tree navigation to go to this location: Computer Configuration > Windows Settings > Security
Settings > Local Policies > Security Options.
4. Double-click the policy named "Domain member: Disable machine account password changes" and set
it to Enabled.
As a result, the machine account password is no longer changed. Because the desktops are part of a
managed Oracle VDI Manager pool, this modification has no security impact.
302
Administration Tools
1. If the Oracle VDI host runs into a virtual machine, check that the machine has enough RAM
2. Check the status of Cacao and the Oracle VDI service as described in Section 10.10.2, “The System Is
Not Reacting as Expected”.
/opt/SUNWvda/sbin/vda-service restart
When you use Firefox to connect to Oracle VDI Manager running on Oracle Solaris 11, the browser reports
the error code ssl_error_internal_error_alert. This is due to the fact that Oracle Solaris 11 uses
TLS 1.1, which Firefox does not support yet.
To access this setting, open the Options window, select Advanced and then select the Encryption
tab.
Firefox stores the server certificate and uses it for future connections.
3. Once you have successfully logged in, you can reenable TLS 1.0 in Firefox.
/opt/SUNWvda/sbin/vda-service restart
If you are using the embedded Oracle VDI MySQL Server database, it is important to know that the
database is quite demanding regarding physical resources, this specifically concerns CPU power, RAM
and network bandwidth. The first thing to check is always if the network connectivity is provided and
that the database service is running.
Run the following command to check if the embedded MySQL Server database master and slave (if
configured) are running.
/opt/SUNWvda/sbin/vda-db-status
303
Error - "You Have Been Logged out Because a Consistent Response Could Not Be Guaranteed"
On Oracle Solaris platforms, you can also check the status of the database on the master or slave host
with the following command:
# svcs svc:/application/database/vdadb:default
# /etc/init.d/vda-db-init start
If none of this helps, check the MySQL log files for possible root causes for your database problems. The
log files are located in /var/opt/SUNWvda/mysql. Information about the MySQL Cluster log file format
can be found in the official MySQL documentation: MySQL Cluster Log Messages.
10.9.4. Error - "You Have Been Logged out Because a Consistent Response
Could Not Be Guaranteed"
Refer to the Troubleshooting item Section 10.9.1, “I Cannot Log in to Oracle VDI Manager”.
# passwd root
New Password: <enter new password>
Re-enter new Password: <confirm>
1. Change the password on the MySQL side by using the following MySQL commands.
10.9.7. Does the MySQL Database Store All Sun Ray Software Configuration?
No, the Sun Ray Software configuration is stored in an LDAP-based datastore.
304
The vda Command Reports That Oracle VDI Is Not Running But Other Commands Say It Is
10.9.8. The vda Command Reports That Oracle VDI Is Not Running But Other
Commands Say It Is
Problem: You run the vda command and you see the error message, "This command cannot be
used because Oracle Virtual Desktop Infrastructure is not running on this
server". However when you run the vda-service status and vda-db-status commands, they
show that Oracle VDI is running.
Solution: Check your /etc/hosts file to see if you have an IPv6 entry for localhost. If you have,
comment out that entry and run the vda command again.
10.9.9. Users Do Not Show Up in Users and Groups in Oracle VDI Manager
It might be necessary to customize the LDAP filters ldap.user.object.filter and
ldap.user.search.filter as described in Appendix C, User Directory LDAP Filters and Attributes,
especially if the user directory is OpenLDAP or Novell eDirectory.
10.9.10. Is There a Way to Modify the Cacao Logging Behavior So That a Long
History Can Be Maintained?
Yes. See Section 8.5.5, “Changing Logging for Oracle VDI”.
10.9.11. Jobs Do Not Finish Even After You Cancel Them with Oracle VDI
Manager
You can force to abort all active jobs:
3. If asked for a password, enter the MySQL database administrator password selected when you
configured Oracle VDI on the primary host.
If the administrator password was automatically generated, see Section 10.9.13, “How Do I Log in to
the Embedded MySQL Server Database?”.
If you are using a remote MySQL database, use the remote database administrator user and password.
10.9.12. Can I Adjust the Logging Level for the Oracle VDI Logs?
By default, all Oracle VDI service messages are logged in the Cacao log file. To change the logging level
or the log history, see Section 8.5.4, “Checking the Oracle VDI Log Files”.
Logging in to the Oracle VDI database in order to change settings and data is not
supported. Only use the Oracle VDI administration tools to perform these tasks.
305
Oracle VDI
When you configure the primary host in an Oracle VDI Center and you use the embedded MySQL
Server database, you can either provide your own password for the database administrator or have a
password automatically generated.
Caution
The password is displayed in clear text. Ensure that no-one else can see your
screen.
On the Oracle VDI host that has the master database, run the following command as root :
# /opt/SUNWvda/mysql/bin/mysql --defaults-file=/etc/opt/SUNWvda/my.cnf \
--host=localhost -u root -p
To work around the problem, add the following line in the /etc/system file and reboot the server:
set idle_cpu_no_deep_c = 1
In the problems persist, check the Cacao log files, see Section 8.5.4, “Checking the Oracle VDI Log Files”.
306
How Do I Configure DHCP in Oracle VDI?
necessary that you know on which host runs the Oracle VDI service that owns the daemon job. This lets
you determine, for example, from which host you need to examine the logs.
The Details parameter shows the host name and IP address of the server running the daemon job.
307
308
Appendix A. Automated Administration Scripts
Table of Contents
A.1. Parsing vda Commands that Result in Jobs .............................................................................. 309
A.2. Parsing vda Command Output ................................................................................................. 311
A.3. Parsing vda-center Command Output ....................................................................................... 324
The vda and vda-center commands can be used in scripts for automated administration.
• 0: Successful completion
• 1: An error occurred
The vda job-wait command enables you to wait for a specific job to be completed before the next
command is performed.
# vda job-wait --help
Wait until the job ends
Usage:
vda job-wait [-t timeout | --timeout=timeout] job
-?, --help Print this help list
Options:
-t timeout, --timeout=timeout
Timeout in seconds to wait
Operand:
*job The id of the job
'*' denotes mandatory parameters.
The following sections describe the format of output for the subcommands that support the parsable option.
309
Subcommands That Result in a Multiple Jobs
• pool-profiles-export: Export Windows user profiles from personal hard drives in Oracle VM
VirtualBox desktops.
310
Parsing vda Command Output
• vda admin-list
• vda admin-show
• vda desktop-search
• vda directory-list
• vda group-list
• vda group-show
• vda job-list
• vda job-show
• vda pool-appv-templates
• vda pool-desktops
311
vda admin-list
• vda pool-list
• vda pool-show
• vda pool-templates
• vda pool-users
• vda provider-list
• vda provider-list-appv-templates
• vda provider-list-hosts
• vda provider-list-networks
• vda provider-list-storage
• vda provider-list-templates
• vda provider-list-unmanaged
• vda provider-show
• vda provider-storage-orphans
• vda role-list
• vda template-appv-revisions
• vda template-revisions
• vda token-desktops
• vda token-search
• vda token-show
• vda user-desktops
• vda user-search
• vda user-show
vda admin-list
List all administrators with their roles.
Parsable Output: list of lines with the following values separated by a colon (':').
vda admin-show
Show details for the administrator.
312
vda desktop-search
Parsable Output: one line with the following values separated by a colon (':').
Followed by a list of lines with the following values separated by a colon (':').
vda desktop-search
Search for a desktop or desktops.
Parsable Output: list of lines with the following values separated by a colon (':').
vda directory-list
List all user directories.
Parsable Output: list of lines with the following values separated by a colon (':').
vda group-list
Lists all custom groups.
Parsable Output: list of lines with the following values separated by a colon (':').
313
vda group-show
vda group-show
Show the pools assigned to the custom group.
Parsable Output: list of lines with the following values separated by a colon (':').
vda job-list
List the existing jobs.
Parsable Output: list of lines with the following values separated by a colon (':').
vda job-show
Show the job details.
Parsable Output: one line with the following values separated by a colon (':').
314
vda pool-appv-templates
vda pool-appv-templates
List all App-V templates from the pool.
Parsable Output: list of lines with the following values separated by a colon (':').
vda pool-desktops
List all desktops from the pool.
Parsable Output: list of lines with the following values separated by a colon (':').
vda pool-list
List all pools.
Parsable Output: list of lines with the following values separated by a colon (':').
vda pool-show
Show detailed information about the pool.
315
vda pool-templates
Parsable Output for non-PC Pools: one line with the following values separated by a colon (':').
Parsable Output for PC Pools: one line with the following values separated by a colon (':').
vda pool-templates
List all templates from the pool.
Parsable Output: list of lines with the following values separated by a colon (':').
vda pool-users
List all users of the pool.
Parsable Output: list of lines with the following values separated by a colon (':').
316
vda provider-list
vda provider-list
List all desktop providers.
Parsable Output: list of lines with the following values separated by a colon (':').
vda provider-list-appv-templates
List the App-V templates for the desktop provider.
Parsable Output: list of lines with the following values separated by a colon (':').
vda provider-list-hosts
List all hosts for the Oracle VM VirtualBox, Microsoft Hyper-V, or Microsoft Remote Desktop desktop
providers.
Parsable Output for Oracle VM VirtualBox and Microsoft Hyper-V Providers: list of lines with the
following values separated by a colon (':').
317
vda provider-list-networks
Parsable Output for Microsoft Remote Desktop Providers: list of lines with the following values
separated by a colon (':').
vda provider-list-networks
List all networks for the desktop provider.
Parsable Output: list of lines with the following values separated by a colon (':').
vda provider-list-storage
List all storage servers for the desktop provider.
Parsable Output for Oracle VM VirtualBox and Microsoft Hyper-V Providers: list of lines with the
following values separated by a colon (':').
Parsable Output for VMware vCenter Providers: list of lines with the following values separated by a
colon (':').
318
vda provider-list-templates
vda provider-list-templates
List the templates for the desktop provider.
Parsable Output for Oracle VM VirtualBox and Microsoft Hyper-V Providers: list of lines with the
following values separated by a colon (':').
Parsable Output for VMware vCenter Providers: list of lines with the following values separated by a
colon (':').
vda provider-list-unmanaged
List the desktops from the virtualization platform that are not managed by any desktop provider.
Parsable Output for Oracle VM VirtualBox and Microsoft Hyper-V Providers: list of lines with the
following values separated by a colon (':').
Parsable Output for VMware vCenter Providers: list of lines with the following values separated by a
colon (':').
319
vda provider-show
vda provider-show
Show detailed information about the desktop provider.
Parsable Output for Oracle VM VirtualBox and Microsoft Hyper-V Providers: one line with the
following values separated by a colon (':').
Parsable Output for VMware vCenter Providers: one line with the following values separated by a colon
(':').
Followed by a list of lines with the following values separated by a colon (':').
320
vda provider-show
Parsable Output for Non-Farm Remote Desktop Providers: one line with the following values separated
by a colon (':').
Parsable Output for Farm Remote Desktop Providers: one line with the following values separated by a
colon (':').
Parsable Output for Generic Providers: one line with the following values separated by a colon (':').
Parsable Output for Kiosk Providers: one line with the following values separated by a colon (':').
321
vda provider-storage-orphans
vda provider-storage-orphans
List the orphaned disks of the storage.
Parsable Output: list of lines with the following values separated by a colon (':').
vda role-list
List all roles.
Parsable Output: list of lines with the following values separated by a colon (':').
vda template-appv-revisions
List the revisions of the template.
Parsable Output: list of lines with the following values separated by a colon (':').
vda template-revisions
List the revisions of the template.
Parsable Output: list of lines with the following values separated by a colon (':').
322
vda token-desktops
vda token-desktops
Show the desktops assigned to the token.
Parsable Output: list of lines with the following values separated by a colon (':').
vda token-search
Search for tokens that match the search criteria.
Parsable Output: list of lines with the following values separated by a colon (':').
vda token-show
Show the desktops available for the token.
Parsable Output: list of lines with the following values separated by a colon (':').
vda user-desktops
Show the desktops assigned to the user.
Parsable Output: list of lines with the following values separated by a colon (':').
323
vda user-search
vda user-search
Search for users or groups in the user directory that match the specified search criteria.
Parsable Output: list of lines with the following values separated by a colon (':').
vda user-show
Show the desktops available for the user.
Parsable Output for a User: list of lines with the following values separated by a colon (':').
Parsable Output for a Group: list of lines with the following values separated by a colon (':').
• vda-center agent-status
• vda-center status
vda-center status
List the status of the hosts in an Oracle VDI Center.
Parsable Output: list of lines with the following values separated by a colon (':').
324
vda-center agent-status
Followed by one empty line and one line with the number of hosts in the Oracle VDI Center.
vda-center agent-status
List the information about the Oracle VDI Center Agent on a host.
Parsable Output: list of lines with the following values in key=value format.
Key Value
address Host name and port used by the Oracle VDI
Center Agent for communication with other
Agents.
uptime The length of time (in milliseconds) that the
Oracle VDI Center Agent has been up.
cert-md5 The MD5 fingerprint the fingerprint of the
Oracle VDI Center Agent's certificate.
325
326
Appendix B. Defaults for the Software Bundled With Oracle VDI
This chapter lists the defaults for the software bundled with Oracle VDI. See About the Oracle VDI
Software for details of the bundled software.
Sun Ray Software Configuration
• Administrator password
• FOG signature
/opt/SUNWut/sbin/utconfig
The primary administrator is specified during the configuration of the primary host.
/opt/SUNWut/sbin/utadminuser -a user-name
/opt/SUNWut/sbin/utadminuser -d admin
8. Set Kiosk Policy for both card users and non-card users.
/opt/SUNWut/sbin/utpolicy -a -g -z both -k both -m
327
Oracle VDI Configuration
1. Create RDP Broker SMF service and Proxy SMF services (Oracle Solaris platforms only).
svc://application/rdpb-broker
svc://application/rdpb-proxy
3. Stop Cacao.
cacaoadm stop -f -i vda
5. Start Cacao.
cacaoadm start -i vda
System Preparation
328
Appendix C. User Directory LDAP Filters and Attributes
Table of Contents
C.1. Editing LDAP Filters and Attributes .......................................................................................... 329
C.2. LDAP Filters and Attributes for Users, Groups, and Containers .................................................. 330
C.2.1. Default LDAP Filters and Attributes for Users, Groups and Containers ............................. 331
C.2.2. Active Directory Settings for Users, Groups, and Containers ........................................... 332
C.2.3. Oracle Directory Server Enterprise Edition Settings for Users, Groups, and Containers ...... 333
C.2.4. OpenDS Settings for Users, Groups, and Containers ...................................................... 333
C.2.5. OpenLDAP Settings for Users, Groups, and Containers .................................................. 334
C.2.6. Novell eDirectory Settings for Users, Groups, and Containers ......................................... 334
C.3. LDAP Filters and Attributes for Global Oracle VDI Centers ........................................................ 335
C.3.1. Default LDAP Filters and Attributes for Global Oracle VDI Centers .................................. 335
C.3.2. Active Directory Settings for Global Oracle VDI Centers .................................................. 336
C.3.3. Oracle Directory Server Enterprise Edition Settings for Global Oracle VDI Centers ............ 336
Oracle VDI comes with some default LDAP filters that are suitable for Active Directory or Oracle Directory
Server Enterprise Edition. But these filters might be incompatible with other types of directories and might
need to be modified.
For production, it is always recommended to customize those filters to match most closely the LDAP
schema of the directory.
This section explains how to edit those filters, and the values recommended per type of directory.
See Section 3.13, “About LDAP Filters and Attributes” for details about how Oracle VDI makes use of the
different filters and attributes.
The syntax of the LDAP filters and the validity of the LDAP attributes is not verified by Oracle VDI when
you edit those values. So make sure you validate the LDAP filters and attributes before you set those
values.
LDAP filters and attributes can be validated using an external LDAP tool such as ldapsearch.
Oracle VDI Manager Steps
329
LDAP Filters and Attributes for Users, Groups, and Containers
1. List the LDAP filter used to identify objects of type 'user' and the LDAP filter used to search for users
according a search criteria.
/opt/SUNWvda/sbin/vda directory-getprops
For example:
example% /opt/SUNWvda/sbin/vda directory-getprops \
-p ldap.user.object.filter,ldap.user.search.filter
ldap.user.object.filter:
(&(|(objectclass=user)(objectclass=person)(objectclass=inetOrgPerson)
(objectclass=organizationalPerson))(!(objectclass=computer)))
ldap.user.search.filter:
(|(cn=$SEARCH_STRING)(uid=$SEARCH_STRING)(mail=$SEARCH_STRING))
2. Customize the LDAP filter used to search for users according a search criteria, for Active Directory:
/opt/SUNWvda/sbin/vda directory-setprops
For example:
example% /opt/SUNWvda/sbin/vda directory-setprops \
-p ldap.user.search.filter= \
'"(|(cn=\$SEARCH_STRING)(uid=\$SEARCH_STRING)(mail=\$SEARCH_STRING))"'
Settings updated.
C.2. LDAP Filters and Attributes for Users, Groups, and Containers
Table C.1. LDAP Filters and Attributes for Users, Groups, and Containers
330
Default LDAP Filters and Attributes for Users, Groups and Containers
C.2.1. Default LDAP Filters and Attributes for Users, Groups and Containers
The following table contains the default LDAP filters and attributes for users, groups, and containers.
Table C.2. Default LDAP Filters and Attributes for Users, Groups, and Containers.
331
Active Directory Settings for Users, Groups, and Containers
If you use either the userPrincipalName attribute or the mail attribute for user identification, use this
attribute instead of sAMAccountName in the following settings.
Table C.3. Recommended User, Group, and Container Settings for Active Directory
332
Oracle Directory Server Enterprise Edition Settings for Users, Groups, and Containers
C.2.3. Oracle Directory Server Enterprise Edition Settings for Users, Groups,
and Containers
The following table contains the recommended settings for Oracle Directory Server Enterprise Edition for
users, groups, and containers.
Table C.4. Recommended User, Group, and Container Settings for Oracle Directory Server Enterprise Edition
Table C.5. Recommended User, Group, and Container Settings for OpenDS
333
OpenLDAP Settings for Users, Groups, and Containers
Table C.6. Recommended User, Group, and Container Settings for OpenLDAP
Table C.7. Recommended User, Group, and Container Settings for Novell eDirectory
334
LDAP Filters and Attributes for Global Oracle VDI Centers
C.3. LDAP Filters and Attributes for Global Oracle VDI Centers
Oracle VDI uses the following LDAP filters and attributes to interpret the Oracle VDI Center data stored in
the user directory.
The default values are intended for compatibility with Active Directory and Oracle Directory Server
Enterprise Edition. It is recommended to edit the default values in order to use the more specific ones for
your type of directory.
If you choose to use different objects and attributes than the defaults to store the Oracle VDI Center data,
you need to adapt the LDAP filters and attributes accordingly.
See Section 3.12.4, “Preparing a User Directory for Global Oracle VDI Centers” for a detailed example.
Table C.8. LDAP Filters and Attributes Used for Global Oracle VDI Centers
C.3.1. Default LDAP Filters and Attributes for Global Oracle VDI Centers
The following table contains the default LDAP filters and attributes for Global Oracle VDI Centers.
335
Active Directory Settings for Global Oracle VDI Centers
Table C.9. Default LDAP Filters and Attributes for Global Oracle VDI Centers
Table C.10. Recommended Global Oracle VDI Center Settings for Active Directory
C.3.3. Oracle Directory Server Enterprise Edition Settings for Global Oracle
VDI Centers
The following table contains the recommended settings for Oracle Directory Server Enterprise Edition for
Global Oracle VDI Centers.
Table C.11. Recommended Global Oracle VDI Center Settings for Oracle Directory Server Enterprise Edition
336
Appendix D. Remote Database Configuration
Table of Contents
D.1. Installing and Configuring a Remote MySQL Database (InnoDB) ............................................... 337
D.2. Creating a Privileged Database Administrator ........................................................................... 339
This appendix contains basic instructions on installing and configuring of a remote database for use with
Oracle VDI. For comprehensive information on installing and configuring MySQL can be found in the
MySQL documentation at http://dev.mysql.com/doc.
innodb_data_home_dir=/usr/local/mysql/data
innodb_data_file_path=ibdata1:10M:autoextend
innodb_log_group_home_dir=/usr/local/mysql/data
innodb_buffer_pool_size=50M
innodb_additional_mem_pool_size=10M
innodb_log_file_size=5M
innodb_log_buffer_size=10M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50
2. Create a user "mysql" and a group "mysql" by running the following commands.
# groupadd mysql
# useradd -g mysql mysql
3. Get the MySQL tar file, untar it, and keep it in the / directory.
5. Change to the new directory, and create a symbolic link, called "mysql", that points to the MySQL files
in the directory, by running the following commands.
# cd /usr/local
337
Installing and Configuring a Remote MySQL Database (InnoDB)
# ln -s /mysql-5.1.30-solaris10-i386 mysql
# ls -lrt
total 2
lrwxrwxrwx 1 root root 35 Nov 12 17:33 mysql -> /export/mysql-5.1.30-solaris10-i386
bash-3.00#
6. Make sure that the directory contains the proper owner and group permissions by running the following
commands.
# chgrp -R mysql /mysql-5.1.30-solaris10-i386
# chown -R mysql /mysql-5.1.30-solaris10-i386
8. From the /usr/local/mysql directory, run the following command, and check that it provides the
corresponding output.
# ./scripts/mysql_install_db --user=mysql
which will also give you the option of removing the test databases and anonymous
user created by default. This is strongly recommended for production servers.
338
Creating a Privileged Database Administrator
9. From the /usr/local/mysql directory, run the following command, and check to see that you get the
corresponding output.
# ./bin/mysqld_safe --defaults-file=/etc/my.cnf --ledir=/usr/local/mysql/bin --user=mysql &
[1] 15885
# 090323 22:36:26 mysqld_safe Logging to '/usr/local/mysql/data/wipro-33.err'.
090323 22:36:26 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
10. Now, leave the terminal just the way it is. To make sure the process you just enabled is running all the
time, go to the console and start this process.
# cd /usr/local/mysql/bin
# ./mysql --user=root
Type 'help;' or 'h' for help. Type 'c' to clear the buffer.
mysql>
11. Stop the MySQL daemon by running the following command in a terminal, if you want to stop the
daemon.
# ./mysqladmin shutdown
When the command is run, the terminal, that was left alone, should give the following output.
# /usr/local/mysql/bin/mysqld_safe --defaults-file=/etc/my.cnf --ledir=/usr/local/mysql/bin
--user=mysql &
[1] 16017
# 090323 22:47:38 mysqld_safe Logging to '/usr/local/mysql/data/wipro-33.err'.
090323 22:47:38 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
090323 22:49:31 mysqld_safe mysqld from pid file /usr/local/mysql/data/wipro-33.pid ended
For more information about MySQL user account management, refer to the MySQL Server Administration
chapter of the MySQL Reference Manual.
1. Use the MySQL command line tool to enter the MySQL interactive mode as root.
# ./mysql --user=root
339
Creating a Privileged Database Administrator
In the following example, a user is granted a limited set of privileges that are sufficient to create the
Oracle VDI database.
mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER ON *.* TO ' /
<user>'@'%' IDENTIFIED BY '<password>' WITH GRANT OPTION;
mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER ON *.* TO '<user>'@' /
<db-host-dns>' IDENTIFIED BY '<password>' WITH GRANT OPTION;
Where <user> and <password> are the user name and password of the user account.
340
Appendix E. Licenses for Third-Party Components
Table of Contents
E.1. Apache Software Foundation Licenses ..................................................................................... 341
E.2. Bouncy Castle License ............................................................................................................ 345
E.3. EclipseLink License ................................................................................................................. 346
E.4. Java Secure Channel (JSCH) for SSH2 License ....................................................................... 346
E.5. Xerces License ........................................................................................................................ 347
This appendix contains licenses for third-party components that might be included in the product.
341
Apache Software Foundation Licenses
JAX-RPC 1.1
OpenCSV 1.8
Wiseman 1
The following applies to all products licensed under the Apache 2.0
License:
You may not use the identified files except in compliance with the
Apache License, Version 2.0 (the "License.")
See the License for the specific language governing permissions and
limitations under the License.
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
1. Definitions.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under
common control with that entity. For the purposes of this
definition, "control" means (i) the power, direct or indirect,
to cause the direction or management of such entity, whether by
contract or otherwise, or (ii) ownership of fifty percent (50%)
or more of the outstanding shares, or (iii) beneficial ownership
of such entity.
342
Apache Software Foundation Licenses
343
Apache Software Foundation Licenses
patent licenses granted to You under this License for that Work
shall terminate as of the date such litigation is filed.
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
344
Bouncy Castle License
http://www.apache.org/licenses/LICENSE-2.0
Please note: our license is an adaptation of the MIT X11 License and
should be read as such.
License Copyright (c) 2000 - 2009 The Legion Of The Bouncy Castle
345
EclipseLink License
(http://www.bouncycastle.org)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions: The above copyright notice and this
permission notice shall be included in all copies or substantial
portions of the Software.
JSch 0.0.* was released under the GNU LGPL license. Later, we have
switched over to a BSD-style license.
----------------------------------------------------------------------
Copyright (c) 2002,2003,2004,2005,2006,2007 Atsuhiko Yamanaka,
JCraft,Inc.
All rights reserved.
346
Xerces License
347
Xerces License
348
Glossary
The following is a glossary of terms used for Oracle Virtual Desktop Infrastructure (VDI).
A
agent
A software entity that performs tasks on behalf of another software entity.
ALP
The Appliance Link Protocol is used between Sun Ray Clients and the Sun Ray server.
C
clone
To create a new desktop by copying it from a template and optionally, maintaining a link to the template.
company
A feature to enable multiple user directories to be configured for one Oracle VDI environment. This provides the
ability to provide privacy between multiple groups within the same Oracle VDI environment. Each company has its
own set of desktop pools.
corporation
A setting for the Company feature that enables multiple user directories without the need for privacy. For
example, this is useful for a company with groups in different geographical locations.
custom group
A set of users defined by a filter on the user directory.
D
daemon
Programs that start automatically during system startup and run in the background without user interaction are
usually called services in Windows and daemons in UNIX.
data store
A data store allows configuration settings to be replicated and kept synchronized with other servers automatically.
desktop
A virtual machine containing a desktop instance that is executed and managed within Oracle VDI, and accessed
through RDP.
desktop provider
An entity that provides unified access to the virtualization platforms that include Oracle VM VirtualBox, Microsoft
Hyper-V, VMware vCenter, Microsoft Remote Desktop, Sun Ray Kiosk and Generic.
DTU
Sun Ray Desktop Terminal Units (DTU). Replaced by the term Sun Ray Clients.
E
ESX
Type 1 hypervisor by VMware.
349
F
flexible assignment
Desktops can be temporarily assigned to users as needed from a pool. When a user stops using the assigned
desktop, the desktop can be recycled and made available for other users. Flexible assignment is suitable for
people who typically work in one or a few applications and have fewer requirements for customizing their desktop
environment.
G
Global Oracle VDI Center
A feature that extends the basic "hotdesking" experience known from a single Oracle VDI environment to
encompass multiple Oracle VDI environments. It helps when users travel from one site to another site and need
access to their desktops.
golden image
A desktop template used to create new desktops.
See Also template.
guest pool
A pool with the "Guest" flag turned on. It provides desktops for users who have no assignments to desktops or
other non-guest pools on the Oracle VDI Center they are currently connecting to. Used by the Global Oracle VDI
Center feature.
GUI
Graphical User Interface. Oracle VDI Manager is a browser-based graphical user interface to configure the Oracle
VDI Center.
H
host
The physical computer on which virtual machines are running.
hotdesking
The ability for a user to remove a smart card, insert it into any other Sun Ray Client, and have the user's session
"follow" the user. This enables a user to have instantaneous access to the user's windowing environment and
currently running applications from multiple Sun Ray Clients. This is useful when employees are not assigned to a
specific workplace.
Hyper-V
Hypervisor by Microsoft. Full name is Microsoft Hyper-V.
hypervisor
A program or specialized operating system to run virtual machines on a host. Type 1 hypervisors are "bare metal",
while type 2 hypervisors need a standard operating system.
K
kiosk mode
Kiosk mode is a facility that enables Sun Ray Software to run desktops and applications in a way that bypasses
the normal authentication methods of the underlying operating system.
350
kiosk session
A user session running in kiosk mode.
Oracle VDI comes with a predefined kiosk session type, called Oracle Virtual Desktop Infrastructure. This session
type uses the Sun Ray Windows connector to establish a Remote Desktop Protocol (RDP) connection to a virtual
machine.
In addition to this, the Oracle VDI Sun Ray Kiosk Session desktop provider enables you to use a different Sun
Ray kiosk type instead of a regular Oracle VDI desktop.
L
lifecycle
A desktop is cloned from a template into a pool, used, perhaps reused, recycled, deleted: this is its lifecycle.
M
master revision
The template's revision that will be used by default for desktop cloning in pools. Use the command 'Apply for
Cloning in Pool' to use a specific revision instead.
O
Oracle VDI
Oracle Virtual Desktop Infrastructure provides a complete solution for managing, hosting, and providing access to
virtualized desktop operating systems hosted in the data center.
P
personal assignment
Desktops can be personally assigned to users. When a user stops using a personally assigned desktop, the
desktop will be stored with their desktop settings, and it will not be recycled for other users.
policy
In this context, policies are settings that specify parameters such as timeout intervals, maximum age, and others
that affect the lifecycles of desktops in pools.
pool
A collection of desktops sharing the same characteristics. Pools ordinarily contain desktops that are available for
assignment as well as those that are no longer in active use and are waiting to be recycled or deleted.
R
RDP
Microsoft Remote Desktop Protocol.
351
recycling
When a desktop originating in a pool has not been used for a specified interval or if certain other criteria apply, it
is recycled. Recycling can include being returned to the pool for reassignment, reset to snapshot and reused, or
deleted. In the latter case, a new desktop might by cloned for the pool.
resume
To return a suspended desktop to operation, use the resume feature.
See Also suspend.
revision
Snapshot of a template.
S
service
Programs that start automatically during system startup and run in the background without user interaction are
usually called services in Windows and daemons in UNIX.
SGD
Oracle Secure Global Desktop.
snapshot
A reproduction of the virtual machine at a given point in time, including the state of the data on all the virtual
machine's disks, including whether the virtual machine was powered on, powered off, or suspended.
SSH
Secure Shell, a network protocol that enables exchange of data over a secure channel, using public-key
cryptography for authentication.
SSL
Secure Sockets Layer, a cryptographic protocol used for secure data transfer.
storage
Location for storing configuration settings.
See Also data store.
suspend
To save the current state of a running virtual machine. To return a suspended virtual machine to operation, use
the resume feature.
See Also resume.
system preparation
System preparation refers to modifications made to a Windows guest operating system in a virtual machine,
typically as it is being deployed. Customization options include changing the new virtual machine's identification
and network information.
T
template
A master or golden image of a desktop. Templates are special desktops that are used for cloning new desktops.
352
token
A unique string that identifies a user. Sometimes this is provided by a smart card.
V
vCenter
A tool by VMware to manage an ESX server.
VDA
Virtual Desktop Architecture. Many Oracle VDI components, such as scripts, use vda as a prefix.
VDI
Virtual Desktop Infrastructure.
VDI Center
One or more Oracle VDI hosts working together.
See Also Global Oracle VDI Center.
VDI Manager
See Oracle VDI Manager.
virtual disk
A file or set of files that appears as a physical disk drive to a guest operating system. These files can be on the
host machine or on a remote file system.
virtual machine
A virtualized x86 PC environment in which a guest operating system and associated application software can run.
Multiple virtual machines can operate on the same host system concurrently.
virtual network
A network connecting virtual machines that does not depend on physical hardware connections.
VirtualBox
Type 2 hypervisor. Full name is Oracle VM VirtualBox.
X
X RandR
The X Resize, Rotate and Reflect extension to the X Window System, which enables clients to resize, rotate, and
change screen resolution settings dynamically. For Sun Ray Software and Oracle VDI, this extension is especially
useful when a user hotdesks to Sun Ray Clients that use monitors of different sizes or resolutions than the one
where a given session began.
Xinerama
An extension to the X Window System that enables the use of two or more physical displays as one large virtual
display. Xinerama mode allows the display of a single desktop across multiple monitors.
353
354