You can use the advanced virtual machine attributes to customize virtual machine configuration.

Table 1. Advanced Virtual Machine Attributes

Attribute

Description

Default

sched.mem.maxmemctl

Maximum amount of memory reclaimed from the selected virtual machine by ballooning, in megabytes (MB). If the ESXi host needs to reclaim additional memory, it is forced to swap. Swapping is less desirable than ballooning.

-1 (Unlimited)

sched.mem.pshare.enable

Enables memory sharing for a selected virtual machine.

This boolean value defaults to True. If you set it to False for a virtual machine, this turns off memory sharing.

True

sched.swap.persist

Specifies whether the virtual machine’s swap files should persist or be deleted when the virtual machine is powered off. By default, the system creates the swap file for a virtual machine when the virtual machine is powered on, and deletes the swap file when the virtual machine is powered off.

False

sched.swap.dir

Directory location of the virtual machine's swap file. Defaults to the virtual machine's working directory, that is, the directory that contains its configuration file. This directory must remain on a host that is accessible to the virtual machine. If you move the virtual machine (or any clones created from it), you might need to reset this attribute.

Equals workingDir