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]