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)
Open vmx file using vi editor
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
We need to add two parameters.
- Workingdir(we need to paste that copied path to here)
- Snapshot.redoNotWithParent(This should be true)
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.