I have a vm that is using a non persistent vmdk so every time it shuts down it does not change the vmdk. I also want to start it up when its already booted to cut down on the time that is needed to bring up the vm.
I read that in vmware 4 there was a way to tell the system to resume from a suspend every time you boot, but I don't see that option in esxi. I can modify the vmx file every time before I boot up the machine and just change the checkpoint.vmState to a vmss suspend file I have, but esxi deletes the file after it boots up. Is there a way to have it not delete the file? I could then just modify the vmx before I boot the machine.
I have tried:
Setting the vmss file as read only
Adding resume.repeatable = "true" to the config, but that did nothing.
Creating a link to the file "ln -s" thinking that it would delete the symbolic link, but not the original, but I was wrong and it deleted the link and the original.
I was going to try chattr +i to prevent root from deleting it, but chattr is not in the esxi system.