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.
About this task
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.
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.
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.
- Display the cluster in the inventory.
- Right-click the cluster and select Edit Settings.
- In the settings list, select Swapfile Location.
- Under Swapfile Policy for Virtual Machines, select where to store the virtual machine swapfile.
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.
- Click OK.