6.7

Table Of Contents
7 Click OK.
The virtual machine swapfile is stored in the location you selected.
Configure a Virtual Machine Swap File Location for a Cluster
By default, swap files for a virtual machine are on a 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 swap
files on an alternative datastore of your choice.
You can configure an alternative swap file location to place virtual machine swap files on either lower-cost
or higher-performance storage, depending on your needs.
Prerequisites
Before you configure a virtual machine swap file location for a cluster, you must configure the virtual
machine swap file locations for the hosts in the cluster as described in Configure Virtual Machine Swapfile
Properties for the Host.
Procedure
1 Browse to the cluster in the vSphere Client.
2 Click Configure.
3 Select Configuration > General.
4 Next to swap file location, click Edit.
5 Select where to store the swap file.
Option Description
Virtual machine directory Stores the swap file in the same directory as the virtual machine configuration file.
Datastore specified by host Stores the swap file in the location specified in the host configuration.
If the swap file cannot be stored on the datastore that the host specifies, the swap
file is stored in the same folder as the virtual machine.
6 Click OK.
Delete Swap Files
If a host fails, and that host had running virtual machines that were using swap files, those swap files
continue to exist and consume many gigabytes of disk space. You can delete the swap files to eliminate
this problem.
Procedure
1 Restart the virtual machine that was on the host that failed.
2 Stop the virtual machine.
The swap file for the virtual machine is deleted.
vSphere Resource Management
VMware, Inc. 41