首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Vix vmrun不适用于VMware播放器

Vix vmrun不适用于VMware播放器
EN

Stack Overflow用户
提问于 2015-08-13 10:12:49
回答 4查看 18.8K关注 0票数 10

我正试图通过VIX vmrun在虚拟机上运行一个批处理文件。

首先,它甚至不想开始。当我在命令行中尝试此操作时:

vmrun -T播放器启动“D:\myUser\VMWare\Windows 7\Windows7.vmx”

上面写着:

无法连接到主机。 错误:找不到指定的版本

有什么解决办法吗?我听说它与VIX配置文件有关,没有正确地处理VMware播放器,但没有发现任何具体的内容。

值得一提的是我有VMware播放器版本7.1.2和VIX版本1.13。

我也不想买工作站。

EN

回答 4

Stack Overflow用户

回答已采纳

发布于 2015-08-20 13:59:38

好的,成功地让它工作了,下面是如何:

1)在VMware\VMware VIX文件夹中有一个vix包装器-config.txt文件。对文件的内容进行备份并覆盖以下内容:

代码语言:javascript
复制
#@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)如果有一个名为"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”

票数 6
EN

Stack Overflow用户

发布于 2016-09-08 11:06:48

带着同样的问题来到这里,但是VMWare播放器的另一个版本。

根据我所做的尝试,我认为您只需要在vixwrapper config.txt中有一行将您必须的播放器版本重定向到VIX文件夹中的"Workstation-xxxx“文件夹之一。

在我的例子中起作用的是vixwrapper config.txt中的这一行

代码语言:javascript
复制
player    17  vmdb  12.1.1 Workstation-10.0.0-and-vSphere-5.5.0

其中:

  • 12.1.1是播放器的版本(根据“帮助”中的“关于”框或可执行文件中的属性)
  • Workstation-10.0.0-and-vSphere-5.5.0是VIX程序文件夹中文件夹的名称(我选择了最高版本)。似乎没有必要复制和重命名文件夹,只是将其指向一个现有的文件夹似乎就足够了)
  • 17:我不知道,但它起作用了:-) (尝试了一些其他的值,它也起作用了)
票数 6
EN

Stack Overflow用户

发布于 2019-02-05 10:34:27

扩展从保罗-et的答案(没有50点,不能评论,对不起)。如果您使用的是最新版本的播放器等,不要忘记包括次要版本。所以对我来说

播放器19 vmdb 15.0.2工作站-12.0.0

要编辑的文件位于/usr/lib/vmware-vix/vixwrapper config.txt中。

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31985348

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档