Getting "Error occurred during initialization of VM" Getting "Error occurred during initialization of VM" shell shell

Getting "Error occurred during initialization of VM"


Thanks to Andrew for the hint.

As said in the post it was a legacy script, and had thousands of line in each of the script which made our analysis hard. But finally figured out that the process in which we were getting error was being launched by another user. That user didn't had permission to access the parent folder and hence we were getting

Could not determine current working directory.

I gave the permission on the parent folder to that user and it worked. Thanks to all of you...


It is an expected behavior.

The script is run in a subshell, and cannot change the parent shell working directory. Its effects are lost when it finishes.

SO Reference for a workaround.