VMware Cloud Community
mt73
Contributor
Contributor
Jump to solution

How to move vmx swap file to a new location?

How can I move the new vmx swap files to an alternate location in ESXi 5?

I'm not talking about the regular swap file, I know how to move that one. 

0 Kudos
1 Solution

Accepted Solutions
dkraut
Enthusiast
Enthusiast
Jump to solution

The creation of a VMX swap file for each virtual machine (and thus the reduction in host memory

reservation for that virtual machine) is automatic. By default, this file is created in the virtual machine’s

working directory (either the directory specified by

workingDir in the virtual machine’s .vmx file, or, if
this variable is not set, in the directory where the

.vmx file is located) but a different location can be set
with  sched.swap.vmxSwapDir.

View solution in original post

0 Kudos
2 Replies
dkraut
Enthusiast
Enthusiast
Jump to solution

The creation of a VMX swap file for each virtual machine (and thus the reduction in host memory

reservation for that virtual machine) is automatic. By default, this file is created in the virtual machine’s

working directory (either the directory specified by

workingDir in the virtual machine’s .vmx file, or, if
this variable is not set, in the directory where the

.vmx file is located) but a different location can be set
with  sched.swap.vmxSwapDir.

0 Kudos
mt73
Contributor
Contributor
Jump to solution

Thank you very much. That worked !

0 Kudos