我正试图通过VIX vmrun在虚拟机上运行一个批处理文件。
首先,它甚至不想开始。当我在命令行中尝试此操作时:
vmrun -T播放器启动“D:\myUser\VMWare\Windows 7\Windows7.vmx”
上面写着:
无法连接到主机。 错误:找不到指定的版本
有什么解决办法吗?我听说它与VIX配置文件有关,没有正确地处理VMware播放器,但没有发现任何具体的内容。
值得一提的是我有VMware播放器版本7.1.2和VIX版本1.13。
我也不想买工作站。
发布于 2015-08-20 13:59:38
好的,成功地让它工作了,下面是如何:
1)在VMware\VMware VIX文件夹中有一个vix包装器-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
# EOF2)如果有一个名为"Workstation-11.0.0-and-vSphere-6.0.0“的文件夹,那么将其移动到其他地方作为备份。
3)复制"Workstation-10.0.0- and -vSphere-5.5.0“文件夹,并命名为:
Workstation-11.0.0-and-vSphere-6.0.0
4)不要忘记将vmrun路径添加到用户变量: path ( vmrun路径应该是这样的:"C:\Program (x86)\VMware\VMware VIX\")
现在,vmrun命令应该可以工作。
下面的命令打开VM:
vmrun -T播放器启动“D:\myUser\VMWare\Windows 7\Windows7.vmx”
发布于 2016-09-08 11:06:48
带着同样的问题来到这里,但是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其中:
发布于 2019-02-05 10:34:27
扩展从保罗-et的答案(没有50点,不能评论,对不起)。如果您使用的是最新版本的播放器等,不要忘记包括次要版本。所以对我来说
播放器19 vmdb 15.0.2工作站-12.0.0
要编辑的文件位于/usr/lib/vmware-vix/vixwrapper config.txt中。
https://stackoverflow.com/questions/31985348
复制相似问题