Change the VM snapshot location

Sometimes we may need to take snapshot of the vm but we don’t have enough space in our datastore.In that case we can change the snapshot directory by editing vmx file.

Steps

Im going to change the snapshot location of vm challenge-01a. Therefore I need to login to one esxi host(ssh) and browse to the directory(vm)

clip_image001[5]

Open vmx file using vi editor

clip_image002[5]

Im going to use RegionA01-ISCSI02-COMP01 datastore to keep snapshots of this vm. We can copy that path using another ssh session to the same /different host

clip_image003[5]

We need to add two parameters.

  1. Workingdir(we need to paste that copied path to here)
  2. Snapshot.redoNotWithParent(This should be true)

clip_image004[5]

Now we have to re-register this vm.

We have created one snapshot after adding this vm to host. We can check that new delta files(snapshots) are stored in the new path.

clip_image005[5]

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.