VMware – Separate location for Snapshot

Posted: February 19, 2010 in VMware

All snapshots are created in the default virtual machine directory.
Even if the vmdk disk file is located on different datastore than the
virtual machine,
the delta files are created in the default virtual machine directory.

This article provides instructions to change the default location.

Changing the location of where the delta files are created is helpful
if you need to:

* Create a snapshot but do not have enough space on the VMFS volume
* Power on a virtual machine but there is not enough space to create a
swap file on the VMFS volume
To change the default location:

1. Power off the virtual machine.
2. Add the following line to the VMX configuration file for the virtual machine:
workingDir=""
For example:
workingDir="/vmfs/volumes/46f1225f-552b0069-e03b-00145e808070/vm-snapshots"
3. To reload virtual machine configuration, run the command:
# vimsh -ne "vmsvc/reload " (To Get ID Type vmware-cmd vmx file getid)
When you power on the virtual machine, snapshot files and VSWP files are
created in the new location.

Note: If you do not want to redirect the virtual machine’s swap file, add the
following line to the VMX configuration file, then reload the configuration:
sched.swap.dir=""

When you power on the virtual machine, the swap file is created in the
same directory as virtual machine.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s