By default, swapfiles for a virtual machine are located 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 swapfiles on an alternative datastore of your choice.

Before you begin

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.

About this task

You can configure an alternative swapfile location to place virtual machine swapfiles on either lower-cost or higher-performance storage, depending on your needs.

Procedure

  1. Browse to the cluster in the vSphere Web Client.
  2. Click Configure.
  3. Select Configuration > General.
  4. Next to Swap file location, click Edit.
  5. Select where to store the swapfile.

    Option

    Description

    Virtual machine directory

    Stores the swapfile in the same directory as the virtual machine configuration file.

    Datastore specified by 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.

  6. Click OK.