6

VMWARE-VIX command "vmrun" failing

I have checked in the online resources of the product documentation, and in discussion groups where other people experience the same issue.

I have the following configuration

  • Ubuntu 13.04 (x64)
  • VMware Player 6.0
  • VMware-VIX API 1.12.2

... and when I try to run the command in the format:

  • vmrun -T player start /path/vm.vmx

I get an error:

*Unable to connect to host. Error: The specified version was not found.*

Forum proposed solution:

  • others with the same issue claimed the solution was to edit a file
  • /usr/lib/vmware/configurator/vixwrapper-product-config.txt
  • to add / modify the line (to ensure it has your correct version of VM player)
  • player 16 vmdb 6.0.0 Workstation-10.0.0-and-vSphere-5.5.0

... but when I open the player, it seems that I do already have v6.0.0 (according to the "help > about" menu item in the player GUI.

... so if it is not the wrong version in that config file ... what is causing the problem?

UPDATE

  • when I try to run the command instead as just:

$ vmrun start /path/vm.vmx (without the -T and "player" host type specification)

... I get the error:

  • Service type VIX_SERVICEPROVIDER_VMWARE_WORKSTATION was specified, but not installed

So is this indication that it thinks I have installed workstation instead of player?

How can I change that?

4 Answers 4

7

SOLUTION

  • ok, just solved this one as well
  • in case anyone else encounters this issue, here is the solution:

vmrun command is ignoring its own config file:

  • /usr/lib/vmare/vixwrapper-product-config.txt

I am not sure why, but even when you use the command as follows:

  • vmrun -T player start /path/vm.vmx

... it is checking & finding vmware workstation NOT player (even if the config file has the correct version of player listed), and then complaining that workstation is not installed.

So, here is how I got around it:

  1. Uninstall vmware player: vmware-installer -u vmware-player
  2. Uninstall vmware-vix: vmware-installer -u vmware-vix
  3. Install vmware workstation: same process as player (remember to chmod +x the bundle)

Surprisingly, what you will find is that you now have both player AND workstation installed, even though if you try installing workstation while player is already installed, the installer will tell you that it cannot do it.

It has also reinstalled VIX as part of workstation, and VIX has this time correctly picked up vmplayer ... so you may now start it at the command line with vmrun

note

  • I was unable still to vmrun via ssh login from another computer
  • Like myself, you may want to start this vm automatically when ubuntu boots (which it should do fine, and that is my next step also)
2
  • I suspect (just a guess) that the developer at VMware who tested the product before putting it out there, may have done so on a non-clean install, and so didn't notice this issue him/her-self, because the config files left behind by a previous vmware workstation install were still there, and so what happened was the bug got overlooked, as it did not occur for them ... but that's just a guess, it could be a million other things too. Sep 8, 2013 at 5:21
  • This fixed the problem for me. (but unfortunately I didn't have a Workstation license - I'm just using the vagrant plugin which uses a different license. However, my employer stumped up for a workstation license to get me unblocked and everything works fine.) Jul 29, 2015 at 14:40
1

I ran into this as well. Installing Workstation 10.0 does work and I noticed something. Workstation comes with Player 6.0 and VIX 1.13. I wonder why they haven't released 1.13 separately.

3
  • did the solution I discovered work in your situation too? Oct 5, 2013 at 11:31
  • Yes it did. Also I'd like to mention that VIX 1.13 was released so I suspect that we can bypass installing Workstation and just used Player 6.0 with VIX 1.13.
    – user198515
    Oct 14, 2013 at 21:29
  • nice thanks for that ... it was a particularly annoying problem :-) Oct 15, 2013 at 23:54
1

Check the dash before the 'T' option in the vmrun command. I had copied it from this web page and it was using a long dash character instead of a regular dash:

http://www.steelrat.info/en/ubuntu/zapusk-vmware-player-na-ubuntu-bez-graficheskogo-interfeysa/

This caused the error where it complained it could not find workstation:

Error: Service type VIX_SERVICEPROVIDER_VMWARE_WORKSTATION was specified, but not installed

I got this same error when I used a lower case 't' instead of 'T', so I think this error message is from vmrun not getting the 'player' option. Changing to a regular dash (and a capital 'T') fixed the problem, so now I can launch my VM in the player from the command line:

VM="/opt/vmware/Ubuntu_Node/Ubuntu 64-bit.vmx
vmrun -T player start "$VM" nogui
vmrun -T player suspend "$VM"

If you want to use vmware player to run a service, you may want to check this out: https://serverfault.com/questions/70887/vmware-player-running-as-a-service (the answer by David Gladfelter worked for me)

3
  • Can you please edit your post and copy/paste the full command you referred to, and also post the link as reference. That would be very helpful to some of those, dealing with the same problem in finding a solution.
    – v2r
    Feb 23, 2014 at 1:43
  • yeah the command was all correctly applied ... it wasn't the -T Feb 27, 2014 at 1:52
  • I have just started at Uni ... but if I get the chance I will go back through my notes & find more detail to add to this post ... just not sure right now where it is & have a lot else on my plate Feb 27, 2014 at 1:53
1

Please do the following steps:

  1. VIX 1.13 and player 7.1.2. Windows.
  2. error: Unable to connect to host. Error: The specified version was not found.
  3. FROM player folder we get "vixwrapper-product-config.txt" and put it to vix folder. backup "vixwrapper-config.txt" and rename "vixwrapper-product-config.txt" to "vixwrapper-config.txt".

  4. open "vixwrapper-config.txt".

  5. find row player 17 vmdb 7.1.2 Workstation-11.0.0-and-vSphere-6.0.0

  6. Copy name of folder "Workstation-11.0.0-and-vSphere-6.0.0"

  7. at vix folder copy whole folder "Workstation-10.0.0-and-vSphere-5.5.0" (i'am simply get lastest) to "Workstation-11.0.0-and-vSphere-6.0.0".

  8. enjoy.

1
  • Sorry I haven't been online for a while (busy with other things), and only just saw this response of yours now ... I no longer have that environment available to test your solution, though at the time as you can see I was able to solve it. Many thanks anyway. Apr 19, 2016 at 17:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .