05 Vcloud Services Consultant
Total Page:16
File Type:pdf, Size:1020Kb
Optimizing Windows for VMware View 4.5 Optimizing Windows for VMware View™ 4.5 (Optimizing Windows 7, Windows Vista and XP) Version 2.0 For use only by VMware PSO and VMware Solution Providers Consulting Service Delivery Aid – Not a Customer Deliverable Optimizing Windows for VMware View 4.5 Version History Date Ver. Author Description Rev iewers February 2011 V2.0 Tim Federwitz Second Release (Added Dav id Richardson, John Windows XP and Vista) Dodge, Matt Coppinger, Matt Wood August 2010 V1.0 Tim Federwitz First Release (Windows 7 John Dodge, Matt only ) Coppinger, Matt Lesak, Ry an Miersma, Justin Venezia © 2011 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. This product is covered by one or more patents listed at http://www.vmware.com/download/patents.html . VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies. VMware, Inc 3401 Hillview Ave Palo Alto, CA 94304 www.vmware.com © 2011 VMware, Inc. All rights reserved. Page 2 of 44 Optimizing Windows for VMware View 4.5 Contents 1. Introduction ......................................................................................... 4 1.1 Comparing Default and Optimized Windows 7 Installations ........................................ 4 1.2 How to use this Guide ............................................................................................... 4 2. Mandatory Optimizations for Virtual Desktops ................................... 5 2.1 Virtual Machine Configuration Settings ...................................................................... 5 2.2 Partition Alignment .................................................................................................... 5 2.3 Services to Disable.................................................................................................... 7 2.4 Tasks to Execute....................................................................................................... 8 2.5 Disable Scheduled Tasks .......................................................................................... 8 3. Services, Features, and Tasks that Impact Desktop Performance . 10 3.1 Services Table (low risk service s) ............................................................................ 11 3.2 Services Table (medium to high risk service s) ......................................................... 21 3.3 Task/Feature Table ................................................................................................. 24 4. Index of Optimization Settings ......................................................... 30 5. Further Optimizations ....................................................................... 34 5.2 Microsoft Office Optimizations ................................................................................. 39 6. Profile, Registry, Task Scheduler, or GPO? .................................... 41 6.1 Supported Methods for Modifying the Default User Profile ....................................... 41 7. Additional Resources ....................................................................... 41 © 2011 VMware, Inc. All rights reserved. Page 3 of 44 Optimizing Windows for VMware View 4.5 1. Introduction Microsoft Windows is a complex operating system incorporating thousands of built in features. Many of the user convenience features were designed for a dedicated resource usage model, such as a dedicated physical PC with abundant RAM and CPU resources. When the desktop hardware container moves from a dedicated physical PC to a virtual hosted desktop, it is crucial that each running process provide value to the user experience. It is this point where many of Window’s user convenience features designed to enhance the user experience actually have the opposite effect by taxing the shared resource pool of physical RAM and CPU from the vSphere host, causing poor application performance or ―frozen‖ displays on the virtualized desktop. Further compounding the negative impact of this situation is the fact that the workload consuming more than its fair share of resources may not be the same workload impacted by the resource shortage at any given time. This guide provides guidance for optimizing Windows for use in a virtual hosted desktop environment. Be advised, this is no simple task—a feature that is superfluous and unnecessary in one environment may be crucial to an application in another environment. Toward that end, this guide does not simply provide configurations to improve performance, but also provides some insight into the possible impact of the provided configurations. The intent of this revised document is to provide a single-source optimization reference-guide for all supported versions of Windows on View 4.5. 1.1 Comparing Default and Optimized Windows 7 Installations Default install of Windows 7 Enterprise 32-bit with Office 2007 Ultimate, without any updates/patches results in a virtual machine size of 6.94GB After all important patches for Windows and Office are applied, the size of the virtual machine increases to 9.88GB. (as of 6/10/10) Memory footprint after default install with Office 2007 Ultimate and patches is 423MB at boot up, but settles down to around 387MB. Memory resource utilization fluctuates between the two values depending on what tasks/processes are running at any given time. The memory utilization footprint after disabling Aero and Sideshow, at boot is around 380MB, but settles down to around 350MB and fluctuates between the two values. A reduction of ~40MB is possible by simply disabling Aero and Sideshow. The memory utilization footprint after disabling all of the services and features listed in Table 1, at boot is ~287MB, but settles down to around 267MB. This is a savings of nearly 140MB RAM over the default configuration. Note All of the above data was gathered using VMware Fusion, and memory usage was taken from within the virtual machine using Windows Task Manager. 3D features, such as Aero, are not currently supported in a vSphere virtual machine. The point of the exercise is to show that substantial memory usage savings can be had even on idle virtual machines. This is also not revealing the disk I/O savings of disabling services like indexing/search and prefetch, all of which run while a virtual machine is idle. 1.2 How to use this Guide There are three categories of optimizations found in this guide: Mandatory, Low Risk (Conservative), and Medium to High Risk (Aggressive). © 2011 VMware, Inc. All rights reserved. Page 4 of 44 Optimizing Windows for VMware View 4.5 You should apply the mandatory optimizations to all virtual machines intended to run as View Desktops. Failing to apply these optimizations will certainly result in lower virtual machine density and a very high probability of poor performance negatively impacting user experience as more VMs are deployed. The list of optimizations in this category strictly contains very low risk and very high impact items. After apply ing the mandatory optimizations, you can choose to apply only conservative optimizations for a balance of applications support, OS flexibility, and VM density, or you can choose to apply conservative and aggressive optimizations, possibly sacrificing some application or OS features in return for maximum VM density. Regardless of which path you choose, you must always test business critical and core applications on View Desktops to ensure that applications will perform as expected in a virtual hosted deskto p environment, as well as validating any projections you have for VM density in terms of VMs per core and host. 2. Mandatory Optimizations for Virtual Desktops This section provides a bare-minimum set of optimizations to apply to all base images, regardless of use case. Skipping these optimizations will always have a net negative impact on virtualized Windows desktops. 2.1 Virtual Machine Configuration Settings Some virtual machine level settings have a dramatic impact on virtual machine performance. For the best possible performance, use these settings: VMTools Installed: Yes SCSI Controller: LSI Logic SAS or Parallel NIC Adapter Type: VMXNET3 Logging: Disabled (if troubleshooting is required, this can be turned back on) 2.2 Partition Alignment Partition alignment is crucial to virtual disk performance. There are reports that throughput can increase by as much as 62% (averaging about 12%) with a latency decrease of up to 33% (averaging about 10%) in disks that have been properly aligned. © 2011 VMware, Inc. All rights reserved. Page 5 of 44 Optimizing Windows for VMware View 4.5 Starting with Windows 7 and 2008 Server, partition alignment is performed automatically during the installation, but you must align the partition before installation of Windows XP and Vista. To verify the alignment status of an existing virtual desktop, open a command prompt and run the following command: wmic partition get BlockSize, StartingOffset This displays the following if the partition is aligned properly (1048576 is the expected result): Block Siz e StartingOffset 512 10485 76 If the partition is not aligned properly output si milar to the following is displayed: Block Siz e StartingOffset 512 32256 Partition alignment needs to occur before the installation of the operating system. To align a partition before installation, follow the instructions described in this Microsoft K nowledge