When a virtual machine is powered on, the system creates a VMkernel swap file to serve as a backing store for the virtual machine's RAM contents. You can accept the default swap file location or save the file to a different location. By default, the swap file is stored in the same location as the virtual machine's configuration file.

For more information about host swap file settings, see the vSphere Datacenter Administration Guide. For more information about cluster settings, see the Resource Management Guide.

1

In the vSphere Client inventory, right-click the virtual machine and select Edit Settings.

2

Click the Option tab and under Advanced, select Swapfile Location.

3

Select an option.

Option

Description

Default

Stores the virtual machine swap file at the default location defined by the host or cluster swap file settings.

Always store with the virtual machine

Stores the virtual machine swap file in the same folder as the virtual machine configuration file.

Store in the host's swapfile datastore

Stores the virtual machine swap file in the swap file datastore defined by the host or cluster swap file settings.

4

Click OK to save your changes and close the dialog box.