Has anyone ever had problems with network access when running a script on guest OS using vmrun?
I have a batch script that copies some files from a mapped network drive on my vm. It runs fine when called locally from the vm. When i run the script from the host, the script runs but it complains that "the system cannot find the drive specified".
My host is a linux machine, guest is winXP.
vmrun -gu test.bat
Any ideas?
Try with the full path to test.bat
Example:
vmrun -gu "c:\mydirectory\test.bat"
Thanks for your quick reply but the full path didn't help. The batch file actually runs, albeit with complaints.
It seems that the mapped network drive is not available when the batch file is run through vmrun. Any way to work around this?
I don't believe there is a workaround for this, the mapped drives are login specific and the process that it running the batch file is most likely not aware of the drive mapping. I believe this is the case and I will double check this for you.
Is the mapped network drive in the VM already authenticated? For example, I map z:\ to a network drive, but when I reboot and then try to access it, Windows Explorer asks me to authenticate with a dialog box. If you didn't already do this in the VM before running the script, that's likely the problem.