2015-08-13 53 views
5

我想通过VIX vmrun在我的虚拟机上运行批处理文件。Vix vmrun不能与VMware Player兼容

对于初学者来说,它甚至不想开始。当我尝试这个命令行:

​​

它说:

Unable to connect to host.

Error: The specified version was not found

任何解决方法吗?我听说这与VIX配置文件无法正确处理VMware Player有关,但没有找到任何具体的东西。

提到我有VMware Player版本7.1.2和VIX版本1.13。

另外我不想购买Workstation。

回答

3

好了,设法得到它的工作,方法如下:

1)在VMware \ VMware的VIX文件夹中有一个vixwrapper-config.txt的文件。做一个备份并覆盖以下在文件的内容:

#@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)如果有一个名为“工作站 - 11.0.0和-的vSphere-6.0.0”,那么别的地方将它作为文件夹备份

3)使该文件夹 “工作站 - 10.0.0和-的vSphere-5.5.0” 和名称的副本吧:

Workstation-11.0.0-and-vSphere-6.0.0

4)不要忘记添加vmrun路径到用户变量:路径(vmrun路径应该是这样的:“C:\ Program Files文件(x86)\ VMware \ VMware VIX \”)

现在vmrun命令应该可以工作。

以下命令打开VM:

​​
1

来到这里同样的问题,但不同版本的VMware播放器。

从我尝试过的方式来看,您只需要在vixwrapper-config.txt中有一行将VIX文件夹中的这些“Workstation-xxxx”文件夹中的某个文件夹重定向到该播放器的版本。

在什么情况下,我的工作是该线路vixwrapper-config.txt的

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

其中:

  • 12.1.1是玩家的版本(如每个帮助中的About框或可执行文件中的属性)

  • Workstation-10.0.0-and-vSphere-5.5.0是VIX程序文件夹中的文件夹的名称(我选择了最高版本。似乎没有必要复制和重命名文件夹,只需将它指向一个现有的似乎不够)

  • :我不知道,但它工作:-)(尝试了一些其他的价值和它也工作)

相关问题