I'm attempting to change the working directory of a VM so that snapshots are stored on a different Datastore.
I used the following two articles for instruction:
"Creating snapshots in a different location than default virtual machine directory"
http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=1002929
"Registering or adding a virtual machine to the inventory"
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1006160
I unregistered my VM. I added the following line to my .vmx:
workingDir = "/vmfs/volumes/4cb6d8b0-45f1b122-3a3a-d48564535eca/vm-snapshots"
This was copied straight from the directions. The only thing I changed was the part of the path that identifies my datastore.
Note: I also tried using "vmsnapshots" to make sure the hyphen wasn't my problem, but I received the same error message.
I reregistered my VM. I didn't have any problems adding the .vmx to the inventory. When I right click on my VM and goto Edit Settings > Options, the Virtual Machine Working Location appears to be correct. The 4cb6d8b0-45f1b122-3a3a-d48564535eca correctly translated to the identifier for the datastore (it looked like this: [DL360G7DS1] vm-snapshots/). I powered on my VM. I receive the following error message:
"This virtual machine cannot be powered on because its working directory is not valid. Please use the configuration editor to set a valid working directory, and then try again."
I wasn't sure if the "vm-snapshots" directory would be created automatically or if I should create it, so I tried both ways. There are no spaces in my path or folder name. I didn't change anything else in my .vmx, and when I remove the workingDir line, the VM powers on without issue.
There is a strong chance I am missing something very simple here. The path appears to be accepted and pointing in the right direction. I don't know what I need to do to "vm-snapshots" to make it valid. The instructions didn't mention anything about the requirements for this directory.
Any advice would be greatly appreciated. Please let me know if I didn't supply enough information or if the rest of my .vmx file needs to be posted.