Quantcast
Channel: VMware Communities : All Content - Workstation Pro
Viewing all articles
Browse latest Browse all 18268

VMRun, unable to connect to host 1 out of 3 times

$
0
0

Hi,

 

I am using vmrun.exe to interact with VMWare Workstation 7.1.4 build-385536 via some windows batch files.

 

I am randomly getting this error message: "Unable to connect to host. Error: Unrecognized errcode" no matter what command I use (start, stop, listProcessesInGuest, killProcessInGuest, etc. ).

I so decided to run some benchmark, running for example the following command:

 

(ECHO OFF & FOR /L %a IN (0,1,100) DO (VMRUN.EXE -T ws listProcessesInGuest haha.vmx | FINDSTR /R /C:"Unable.*")>NUL && ECHO FAILURE) & ECHO ON

 

It turns out I get this error message approximately 30% of the time!

 

I tried to add some delay between queries (3 seconds), but it did not change anything to the problem...

 

I added some retry command to the main commands of my batch, like starting up the virtual machine, or starting main jobs on the VM, but it is not reliable, since I for example retry 5 times to start the VM, but if I get the error 5 times in a row, then it's all messed up...

 

Any help, or confirmation on the error reproduction would be fully appreciated.


Viewing all articles
Browse latest Browse all 18268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>