Vix vmrun does not work with VMware Player

I am trying to run a batch file on my virtual machine through VIX vmrun.

To begin with, he does not even want to start. When I try this on the command line:

vmrun -T player start "D: \ myUser \ VMWare \ Windows7 \ Windows 7.vmx"

It says:

Unable to connect to host.

Error: The specified version was not found.

Any workaround for this? I heard that it has something to do with VIX configuration files that do not handle VMware Player properly, but have not found anything specific.

For mention, I have VMware Player version 7.1.2 and VIX version 1.13.

Also I do not want to buy Workstation.

+5
source share
4 answers

Well, I managed to get it working, here's how:

1) In the VMware \ VMware VIX folder there is a file vixwrapper-config.txt. Make a backup and overwrite the following with the contents of the file:

#@Version-Info # # VixAllProducts revision mapping for Workstation/Player # # This file translates product version specifications into the appropriate Vix # implementations. # # Each @Version-Info line has 5 white-space seperated entries: # # provider-type: ws, esx, viserver, etc # apiVersion: the apiVersion supported, as passed in from VixHost_Connect() # ipc-type: none, vmdb, vmodl, cim # product-version: the product version string # # implementation-directory: the path to the library that implements the # version described by the first 4 parameters # # # The configuration is based on the first 4 fields, which describe # the product. The 5th field is the location. To force it to try # multiple location, the same configuration can be repeated. Note that # list is built in LIFO order, so the latest entry in the configuration # will be the first used. If for some reason that value fails, it will # continue through any other matches. # Workstation 11.1.2 and Player 7.1.2 ws 17 vmdb 11.1.2 Workstation-11.0.0-and-vSphere-6.0.0 player 17 vmdb 7.1.2 Workstation-11.0.0-and-vSphere-6.0.0 ws-shared 17 none 11.1.2 Workstation-11.0.0-and-vSphere-6.0.0 # EOF 

2) If there is a folder called "Workstation-11.0.0-and-vSphere-6.0.0", move it somewhere else as a backup

3) Make a copy of the folder "Workstation-10.0.0-and-vSphere-5.5.0" and name it:

Workstation-11.0.0-and-Vsphere-6.0.0

4) Do not forget to add the vmrun path to the user variable: PATH (the vmrun path should look something like this: "C: \ Program Files (x86) \ VMware \ VMware VIX \")

Vmrun commands should now work.

The following command opens the virtual machine:

vmrun -T player start "D: \ myUser \ VMWare \ Windows7 \ Windows 7.vmx"

+3
source

There is one and the same problem, but a different version of the VMWare player.

From what I tried, I think you only need to have a line in the vixwrapper-config.txt file that redirects the version of your player to one of these Workstation-xxxx folders in the VIX folder.

What in my case was on this line in the vixwrapper-config.txt file

 player 17 vmdb 12.1.1 Workstation-10.0.0-and-vSphere-5.5.0 

Where:

  • 12.1.1 - this is the version of the player (in accordance with the "About the program" window in the Help or the properties in the executable file)

  • Workstation-10.0.0-and-vSphere-5.5.0 is the name of the folder in the folder with the VIX program (I selected the highest version. I need to copy and rename the folders, just pointing to the existing one seems to be enough)

  • 17 : I have no idea, but it works :-) (tried some other values, and it worked too)

+2
source

As the comments in the vixwrapper-config file explained, this is the shell between the VIX tools (i.e. vmrun) and your VMware engines (WorkStation, Player, ESX, etc.). Now, if you want to wrap this VIX in VMplayer 15.0.0 (to be able to use 'vmrun -T player ...'), then you should have a line

player 19 vmdb 15.0.0 Workstation-12.0.0

where "player" is for VMPlayer, "19" is the API version, "vmdb" is the virtual machine storage form, "15.0.0" is the version of your VMPlayer and the subdirectory where the API libraries are located.

In a nutshell, duplicate an existing line with "player" and adapt it to the desired version of your VMPlayer.

0
source

Expanding the answer from Paul-et-Mickey (no 50 points and can not comment, sorry). If you are using the latest version of the player, etc., Remember to enable the minor version. So for me it was

player 19 vmdb 15.0.2 Workstation-12.0.0

The file for editing is located in /usr/lib/vmware-vix/vixwrapper-config.txt.

0
source

All Articles