<

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

HOW TO: Configure Host Cache Configuration for your VMware vSphere 5.0 or 5.1 ESXi (5.0 or 5.1) Host Server

Published on
25,973 Points
12,973 Views
5 Endorsements
Last Modified:
Approved
Andrew Hancock (VMware vExpert / EE MVE^2)
MVE^2, Expert of the Year 2017-2011, Scribe 2016-2012, Author of the Year 2017-6,2013-2012 VMware vExpert 2018-2011 27 years of experience.
In VMware vSphere 5.x (ESXi 5.x) there is a new feature called Host Cache Configuration. This new feature allows the VMware vSphere Administrator to configure the VMware vSphere 5.x (ESXi 5.x) host server to use a cache on a Solid State Disks (SSD) for the virtual machine's swapfile for better performance, because the SSD has much faster latency than a traditional mechanical disk. This is also known in VMware Administrator circles as Swap to Host Cache or Swap to SSD. Once Host Cache Configuration has been enabled, the virtual machines will be swapping to SSD, but this swapfile is not a true swap file, and the entire virtual machine swap file (.vswp)  is not stored on the SSD.

With the current fall in prices for consumer SSDs, it can give a real performance boost to a VMware ESXi 5.x server which is short on memory. Consumer SSDs e.g. Kingston SSDNow V+200 Drive Model SVP200S37A/60G are generally cheaper than server memory. We recently purchased this model for £29.99 GBP.

If your SSD is not correctly Tagged as an SSD on the VMware vSphere Server (ESXi 5.x), please refer to my previous Experts Exchange article
HOW TO: Tag and Configure a storage device as a Solid State Disk (SSD) in VMware vSphere 5.0 or 5.1  (ESXi 5.0 or ESXi 5.1)

In the following tutorial, I'll demonstrate how you can Enable the Host Cache Configuration Feature.

1. Connect to the VMware vSphere Hypervisor (ESXi) or VMware vSphere vCenter Server.

Using the VMware vSphere Client, Login and Connect to the ESXi server, using IP address or hostname of the ESXi server, using root username and password credentials. If you have a VMware vSphere vCenter server, you could also specify IP address or hostname of the vCenter server.

    Using the VMware vSphere Client, Login and Connect to the ESXi server

2. Enable the Host Cache Configuration Feature

Select the Host followed by the Configuration Tab, on the left hand side under Software heading should be an option called Host Cache Configuration, this option is only present on ESXi 5.0 and ESXi 5.1 host servers, and this is a per host setting.
Enable the Host Cache Configuration FeatureIf no SSD Datastores are present checked the SSD has been tagged correctly as a SSD, and the datastore has been formatted as a VMFS datastore.

Select the tagged datastore you want to configure for host cache. Right-Click the datastore and select Properties.
Select datastore propertiesThe following dialogue box will be displayed
Host Cache Configuration propertiesSelect and put a tick in the Allocate space for host cache. It is recommended to dedicate a SSD datastore entirely for Host Cache. If you want to create a custom size, adjust the slider to the desired size.
Allocate space for host cacheCongratulations you have successfully configured and enabled the Host Cache Configuration feature for your host VMware vSphere ESXi 5.x Server (ESXi 5.x server.).

******************************************************************************************************************************************************
Thank you for reading my article, please leave valuable feedback. If you liked my VMware article and would like to see more Articles from me, please click the Yes button near the: Was this article helpful? at the bottom of this article just below and to the right of this information. Thank You. Do not forget if you have a question about this article or another VMware, Virtualisation, Windows Server 2012 question, why not post a Question for Me and the other Experts Exchange Experts in the VMware, Virtualisation, Windows 2008 Zones. I look forward to hearing from you. - Andy :- twitter @einsteinagogo
******************************************************************************************************************************************************
5
Comment
1 Comment

Expert Comment

by:DITGUY
Is this necessary if you plenty of RAM in the esx host and the guest OS? Will a host use that pagefile if it's not using the max ram assigned to it?
0

Featured Post

Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

Join & Write a Comment

Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month