Best practices XenApp on vSphere
Based on the real life results when virtualizing XenApp I thought it was about time to summarize some of the best practices for virtualizing XenApp servers.
Why we DO want to virtualize XenApp?
- For server consolidation: vSphere enables scale up XenApp deployments;
- For mixing server editions: 32-bit and 64-bit XenApp VMs can coexist;
- For management: Better management through flexibility & isolation think about Change Management and VMware DRS;
- For high availability and disaster recovery: VMware HA and vCenter Site Recovery Manager;
- For less costs for server hardware, maintenance contracts, power, cooling, floor and rackspace.
Virtualizing XenApp servers is very complex. There are a lot more layers involved, like the type of hardware, the capabilities of the processor, the performance of the shared storage, the hypervisor used, the specific settings per hypervisor, operating system settings in a virtual environment, the XenApp settings in a virtual environment, the Workspace management settings in a virtual environment etc, etc.
In the following sections I tried to summarize some of the best practices we use in our projects:
- Use the latest processors from AMD Barcelona with RVI of Intel Nehalem with EPT;
- Use two physical processors;
- Maximize the number of NIC’s or use HP Flex-10;
- Always use the last BIOS version: enable processor virtual extensions, enable hyper treading and enable AMD RVI or Intel EPT.
- Because a lot of business applications are not yet supported under a 64Bits OS use Windows2003 for better compatibility and better overall project results.
Creating the virtual XenApp servers:
- Don’t use P2V tools. Always build new virtual XenApp severs;
- Select the right operating systems durin the virtual machine setup in vSphere;
- Make sure the HAL of the operating system matches the number of vCPU’s;
- Do not disable Transparent Page Sharing (TPS);
- Disable unneeded and unused hardware (COM & LPT ports, USB, CD-ROM, Floppy);
- Disable unneeded operating system features like Wallpaper, menu animations, desktop themes, and active desktop, all animated icons in the system tray, including the network indicator and the system clock;
- Disable realtime antivirus checking.
- Use a separate VMDK for the sytem partition and program files;
- Use a separate disk for the Windows page file. Size it 1.5 till 2 times the size of the RAM (W2003 std max. 4096MB);
- Measure the number of IOPS you need on your shared storage.
- Us the enhanced vmxnet network driver;
- Enable Transmit coalescing;
Disable unnecessary services:
- “DHCP Client if you are using static IPs”;
- “Help and Support”;
- “HTTP SSL”;
- “IMAPI CD-Burning COM Service”;
- “Indexing Service”;
- “Intersite Messaging”;
- “Remote Access Auto Connection Manager”;
- “Remote Access Connection Manager”;
- “Remote Desktop Help Session Manager”.
- Use roaming profiles;
- Tune the profile size and set a limit on: temporary internet files, delete profile after log-off and exclude directories from roaming;
- Host profiles on a different disk or partition on a diferrent dedicated server;
- Install the User Profile Hive Cleanup Service (UPHclean);
- Move the spool file to a separate partition or disk drive;
If you take al this into consideration you can use the following sizing rules. Depending on the workload you can use the following building blocks:
Heavy Load 20 users per virtual XenApp server (total 80 users)
|4 Virtuele XenApp Server per host|
|2 vCPU direct on 2 cores|
|4GB internal memory|
|48GB external memory|
Normal Load 20 users per virtual XenApp server (total 120 users)
|6 Virtuele XenApp Server per host|
|4GB internal memory|
|48GB external memory|
Please don’t forget real-life workloads vary drastically. The usage and load for a XenApp server is hard to predict because there are users involved. User behavior is the most difficult to predict! Also for a virtual XenApp counts, test your specific workload as I could make a huge differentiator in sizing and even the success of your project.
The founder and driving force behind VMGuru. With over 20 years experience in IT, he now works as a Cloud Management Specialist at VMware Benelux. He worked as technical consultant, pre-sales and solutions architect for several systems integrators.
He’s a long time VMware VCP Data Center Virtualization, VCP Desktop, VCP Cloud Management & Automation, VCA, VSP and VTSP, vExpert Cloud (2017) and 9 year vExpert (2009 – 2017).