6.0

Table Of Contents
2 Click the Configuration tab.
3 Click the Virtual Machine Swapfile Location link.
The Configuration tab displays the selected swapfile location. If configuration of the swapfile location
is not supported on the selected host, the tab indicates that the feature is not supported.
If the host is part of a cluster, and the cluster settings specify that swapfiles are to be stored in the same
directory as the virtual machine, you cannot edit the swapfile location from the host configuration tab.
To change the swapfile location for such a host, use the Cluster Settings dialog box.
4 Click Edit.
5 Select either Store the swapfile in the same directory as the virtual machine or Store the swapfile in a
swapfile datastore selected below.
If you select Store the swapfile in a swapfile datastore selected below, select a datastore from the list.
6 Click OK.
The virtual machine swapfile is stored in the location you selected.
Configure a Virtual Machine Swapfile Location for a Cluster
By default, swapfiles for a virtual machine are located on a VMFS datastore in the folder that contains the
other virtual machine files. However, you can instead configure the hosts in your cluster to place virtual
machine swapfiles on an alternative datastore of your choice.
You might choose to configure an alternative swapfile location to place virtual machine swapfiles on either
lower-cost or higher-performance storage, depending on your needs.
NOTE Setting an alternative swapfile location might cause migrations with vMotion to complete more
slowly. For best vMotion performance, store virtual machine swapfiles in the same directory as the virtual
machine.
Prerequisites
Launch the vSphere Client and log in to a vCenter Server system.
Before you configure a virtual machine swapfile location for a cluster, you must configure the virtual
machine swapfile locations for the hosts in the cluster as described in “Configure Virtual Machine Swapfile
Properties for the Host,” on page 346.
Procedure
1 Display the cluster in the inventory.
2 Right-click the cluster and select Edit Settings.
3 In the settings list, select Swapfile Location.
4 Under Swapfile Policy for Virtual Machines, select where to store the virtual machine swapfile.
Option Description
Store the swapfile in the same
directory as the virtual machine
Stores the swapfile in the same directory as the virtual machine
configuration file.
Store the swapfile in the datastore
specified by the host
Stores the swapfile in the location specified in the host configuration.
If the swapfile cannot be stored on the datastore that the host specifies, the
swapfile is stored in the same folder as the virtual machine.
5 Click OK.
Chapter 25 Resource Management for Single Hosts
VMware, Inc. 347