Migrating virtual machine swap (.vswp) files from one datastore to another
searchcancel
Migrating virtual machine swap (.vswp) files from one datastore to another
book
Article ID: 304593
calendar_today
Updated On: 02-18-2025
Products
VMware vSphere ESXi
Issue/Introduction
This article provides steps to migrate the .vswp files without having to power off the virtual machines.
By default, if the virtual machine swap files (.vswp) are stored in an ESXi host swapfile datastore. Storage vMotion does not move these files.
Storage vMotion fails to migrate the .vswp files.
Resolution
To migrate the .vswp file to the same location as the virtual machine:
Ensure that a new datastore is available to all the ESXi hosts in the cluster.
Configure the ESXi host to use the destination datastore for the .vswp files of their virtual machines. (To add the Swapfile location for all the hosts in a cluster, right-click the cluster, select Edit Settings, select Swapfile location, select Store the swap file in the datastore specified by the host.