VMware {code} Community
Aristizabal
Enthusiast
Enthusiast

Changing VM swap file directory on the fly

Hi,

I would like to have the VM swap file on a different directory from the snapshot files.

I can change the snapshot directory on the fly using a Perl script, but the problem is that after I do so and power cycle the VM, the swap file is created on the snapshot directory.

There is a KB that explains how to force the creation of the swap file to a particular directory, http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=100292... by setting the option sched.swap.dir; the problem is that if I do it while the VM is power on the change doesn't have any impact after the VM is power cycled.

Is it possible to set the sched.swap.dir option through the API?, or use any other routine to change the VM config spec?.

I am aware of the global policy that can be set to store all the VM swap files in one datastore but I prefer to stay away from an option that involves changes for all the VMs on the host.

Any help is highly appreciated,

Juan.

Reply
0 Kudos
1 Reply
Aristizabal
Enthusiast
Enthusiast

According to VMware support this is not possible.

Reply
0 Kudos