Thursday, May 2, 2024
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 31342  / 3 Years ago, fri, july 16, 2021, 6:52:04

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?


More From » command-line

 Answers
3

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)


[#29563] Friday, July 16, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ngthmated

Total Points: 12
Total Questions: 115
Total Answers: 113

Location: Saint Vincent and the Grenadines
Member since Wed, Apr 21, 2021
3 Years ago
;