我试图通过VIX vmrun运行我的虚拟机上的批处理文件。
对于初学者来说,它甚至不想要开始。当我尝试这个命令行:
vmrun -T玩家启动 “d:\ MYUSER目录\ VMware \ Windows7的\ Windows下7.vmx”
它说:
无法连接到主机。
错误:指定的版本未找到
任何解决方法吗?我听说它是与VIX配置文件不正确地处理VMware播放,但还没有发现具体的事情。
对于有口难言的VMware Player版本7.1.2和VIX版本1.13。
此外,我不想买工作站。
来到这里同样的问题,但不同版本的VMware播放器。
从我试过,我认为你只需要拥有在vixwrapper-config.txt的重定向,你必须在文件夹VIX这些“工作站-XXXX”文件夹中的一个播放器的版本线。
在什么情况下,我的工作是该线路vixwrapper-的config.txt
player 17 vmdb 12.1.1 Workstation-10.0.0-and-vSphere-5.5.0
哪里:
好了,设法得到它的工作,方法如下:
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”并将其命名为:
工作站11.0.0和-的vSphere-6.0.0
4)不要忘记将vmrun路径添加到用户变量:路径(vmrun路径应该是这样的: “C:\ Program Files文件(x86)的\ VMware的\ VMware的VIX \”)
现在vmrun命令将正常运行。
下面的命令打开VM:
vmrun -T玩家启动 “d:\ MYUSER目录\ VMware \ Windows7的\ Windows下7.vmx”
扩大从保罗-ET-米奇答案(没有50点,无法发表评论,抱歉)。如果您使用的是最新版本的播放器等的,不要忘了包括次要版本。所以对我来说这是
玩家19 vmdb 15.0.2工作站-12.0.0
编辑该文件是/usr/lib/vmware-vix/vixwrapper-config.txt。
作为vixwrapper-config文件中注释解释,这和您的VMware引擎(工作站,播放机,ESX等)VIX工具之间的包装(即vmrun)。现在,如果你想这个VIX换到一个VMplayer 15.0.0(能够使用“vmrun -T球员......”),那么你必须有一个线
玩家19 vmdb 15.0.0工作站-12.0.0
其中,“播放器”是VMPlayer,“19”是API的版本,“vmdb”是你的虚拟机库的形式,'15 .0.0' 你VMPlayer的版本,和子目录中的API库的位置。
在几句话,复制与“播放器”的现有生产线,适应你的VMPlayer的正确版本。