Deploying Hardware-Accelerated Graphics with View Virtual Desktops in Horizon 6
Total Page:16
File Type:pdf, Size:1020Kb
Deploying Hardware-Accelerated Graphics with View Virtual Desktops in Horizon 6 VMware Horizon 6.2 TECHNICAL WHITE PAPER Deploying Hardware-Accelerated Graphics with View Virtual Desktops in Horizon 6 Table of Contents Introduction . 4 Architectural Innovations . 4 Technological Foundation . .5 About This Paper . 5 Types of Graphics Acceleration . 6 Soft 3D . 6 vSGA . 6 vGPU . 7 vDGA. .. 7 Prerequisites . 8 Hardware Requirements . 8 Software Requirements. 9 Client Device Requirements . 9 Application Requirements . 10 DirectX 9.0c . 10 OpenGL 2.1 . 10 CUDA . 10 ESXi Installation and Configuration . 11 Confirm Graphics-Card Installation. 11 Install the GPU vSphere Installation Bundle (VIB) . 12 Start the Xorg Service . 13 Uninstall and Update the GPU VIB . 14 Post-Installation Checks. 14 Xorg . 14 gpuvm . 14 nvidia-smi .. 15 Log Files . 15 Enabling GPU Pass-Through for vDGA and vGPU . 16 Enable the Host for GPU Pass-Through . 16 Verify That VT-d or AMD IOMMU Is Enabled . 16 Enable Device Pass-Through Using the vSphere Web Client . 16 Virtual Machine Configuration and Setup . 17 Configure Virtual Machine Video Card 3D Capabilities . 17 Enable the Virtual Machine for vDGA or vGPU . 18 TECHNICAL WHITE PAPER / 2 Deploying Hardware-Accelerated Graphics with View Virtual Desktops in Horizon 6 View Setup and Configuration . 20 Pool Prerequisites for View in Horizon 6 . 20 Enabling View Pools for Hardware 3D Rendering . 20 Enable an Existing View Pool . 20 Enabling a New View Pool. 20 Video-Memory (VRAM) Sizing . 21 Screen Resolution . 21 Pool 3D-Rendering Options in View . 22 Manage Using vSphere Client . 23 Automatic . 23 Software . 23 Hardware . 23 Disabled. 23 NVIDIA GRID vGPU . 23 Best Practices for Configuring 3D Rendering in Horizon 6 . 24 When to Select the Automatic Option . 24 When to Select the Hardware Option . 24 When to Select the Manage Using vSphere Client Option . 24 When to Select the Software Option . 24 Performance Tuning Tips and Best Practices . 25 Virtual Machine Configuration . 26 Virtual Machines Using VMXNET3 . 26 Configuring Adequate Virtual Machine Resources, vCPU, and vRAM . 26 Optimizing PCoIP . 26 Enabling Relative Mouse . 27 Workaround for CAD Performance Issues . 27 Resource Monitoring . 27 gpuvm . 27 nvidia-smi . 28 Troubleshooting . 29 About the Authors and Contributors . 31 References . 31 TECHNICAL WHITE PAPER / 3 Deploying Hardware-Accelerated Graphics with View Virtual Desktops in Horizon 6 Introduction Engineers, designers, and scientists have traditionally relied on dedicated graphics workstations to perform the most demanding tasks, such as manipulating 3D models and visually analyzing large data sets. These standalone workstations carried high acquisition and maintenance costs, and they required the user to be present in the lab or office. In areas such as oil and gas, space exploration, aerospace, engineering, science, and manufacturing this meant that an organization’s individuals had to be located in the same physical location as the workstation. Virtualizing the graphics workstation provides immediate benefits by enabling workers to collaborate and be productive from any location, using any endpoint device. This enables organizations to employ the best global talent available and work more easily with valued partners and suppliers. Virtualization also offers both CapEx and OpEx savings, driving down acquisition and maintenance costs. Innovations in hardware-based graphics acceleration and virtualization technology have made graphics workstation virtualization a reality. With the latest generation of virtualization software, display protocols, and advanced graphics cards, virtual desktops can meet and even exceed the performance expectations of designers and researchers accustomed to working on high-end standalone graphics workstations. The ability of a single physical GPU to support multiple users also has important implications for IT as well as for users who are increasingly accustomed to mobility. Architectural Innovations Moving the graphics acceleration hardware from the workstation to a server is a key architectural innovation. This shift changes the computing metaphor for graphics processing, putting the additional compute, memory, networking, and security advantages of the data center at the disposal of the user, so that complex models and very large data sets can be accessed and manipulated from virtually anywhere. With appropriate network bandwidth and suitable remote client devices, IT can now offer the most advanced users an immersive 3D graphics experience while freeing them from the limitations of the old computing metaphor. Fewer physical resources are needed, the wait time to open complex models or run simulations is greatly reduced, and users are no longer tied to a single physical location. With vGPU, several advanced graphics users can typically be hosted on a single physical GPU without diminishing performance. A vSGA solution enables a larger number of users who run less intensive workloads or who require only occasional access to the shared GPU. With vDGA, a GPU is reserved for the exclusive use of a single user. A vDGA solution can be used to meet specific compatibility requirements, but it provides a low consolidation benefit. Centralizing graphics workloads in the data center also simplifies the management, provisioning, and maintenance of desktops, applications, and data. TECHNICAL WHITE PAPER / 4 Deploying Hardware-Accelerated Graphics with View Virtual Desktops in Horizon 6 Technological Foundation The key enabling technologies for these solutions are: • Graphics cards that support GPU virtualization - NVIDIA GRID - NVIDIA Tesla - AMD FirePro - Intel HD Graphics P4700 • VMware vSphere® 5.1 or later • VMware View® 5.3 or later (now called View in VMware Horizon® 6) • Protocols - PCoIP - Secure WebSocket protocol for remote display • VMware vRealize® Operations Manager™ About This Paper This paper begins by explaining the differences between the four types of graphics acceleration, matching them with typical use cases. Later sections provide installation and configuration instructions as well as best practices and troubleshooting. For a more detailed discussion of use cases, sizing, and test results, see the VMware Horizon 6 3D Engineering Workloads Reference Architecture. TECHNICAL WHITE PAPER / 5 Deploying Hardware-Accelerated Graphics with View Virtual Desktops in Horizon 6 Types of Graphics Acceleration Horizon 6 offers four types of 3D graphics acceleration, which map fairly closely to four common use cases. Oil and Gas Architecture Design Diagnostics Image Engineering Quality Lightweight CAD Interactivity Media and Graphics 3D Viewers Cost per Seat GIS WebGL Productivity Apps with Graphics Aero vDGA vSGA Soft 3D NVIDIA GRID vGPU Light Users Heavy Users Fewer Applications Many Applications Task Worker Knowledge Worker Power User Designer Figure 1: 3D Technologies for Different Use Cases Soft 3D Software-based Soft 3D is included in all editions of Horizon 6 to provide improved performance for users who can be characterized as task workers. Those who perform routine office tasks, or who spend most of their time coding, or even writing about graphics, can benefit from this technology without requiring a hardware-based solution. vSGA Virtual Shared Graphics Acceleration (vSGA) provides a significant level of enhancement for office workers and executives—people who create or manipulate 2D or 3D graphics using Microsoft Office, Adobe Photoshop, and other non-specialized end-user applications. A vSGA solution can improve performance for this use case and provide high levels of consolidation of users across GPUs. One graphics acceleration card installed on the vSphere host can support a large number of users who require only occasional access, and many physical servers can support multiple graphics acceleration cards. Virtual Shared Graphics Acceleration does not support all graphics API versions and may not be supported by certain ISVs. The vSGA solution uses a proprietary VMware graphics driver that provides an abstraction layer on top of the physical GPU, so that virtual desktops benefit from hardware acceleration, but they do not have direct physical access to the GPU. This arrangement allows functionality such as VMware vSphere vMotion® but means that not all graphics APIs are supported. TECHNICAL WHITE PAPER / 6 Deploying Hardware-Accelerated Graphics with View Virtual Desktops in Horizon 6 vGPU Virtual Graphics Processing Unit (vGPU) is similar in concept and design to vSGA, but it provides mediated, direct access to the physical GPU—so multiple users can share a single GPU—using native graphics card drivers. NVIDIA GRID cards can support several engineers, data scientists, and designers who rely on advanced graphics software such as CAx applications, with performance that can meet or exceed that of a traditional dedicated workstation. This is usually the most cost-effective solution both for large enterprises and for small-to-medium- sized design studios, largely because of the cost savings that result from supporting several designers per graphics card instead of one. A vGPU solution supports OpenGL and DirectX graphic APIs. With NVIDIA GRID 2.0, vGPU can also support OpenCL and NVIDIA CUDA. GRAPHICS PHYSICAL VIRTUAL USE FRAME MAXIMUM MAXIMUM vGPUs CARD GPUs GPU CASE BUFFER NUMBER OF DISPLAYS PER USER AT MAXIMUM RESOLUTION PER PER OF GPU GRID 2560x1600 CARD K280Q Designer 4 GB 4 1 2 K260Q Designer 2 GB 4 2 4 GRID K2 2 K240Q Designer or 1 GB 2 4 8 Power