Rex*_*ral 10 vmware virtual-machine vix vmware-player
我试图通过VIX vmrun在我的虚拟机上运行批处理文件.
对于初学者来说,它甚至不想开始.当我在命令行中尝试此操作时:
vmrun -T播放器启动"D:\ myUser\VMWare\Windows7\Windows 7.vmx"
它说:
无法连接到主机.
错误:找不到指定的版本
有什么解决方法吗?我听说它与VIX配置文件有关,没有正确处理VMware Player,但没有找到任何具体的东西.
提到我有VMware Player版本7.1.2和VIX版本1.13.
另外我不想买Workstation.
好的,设法使其正常工作,方法如下:
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
Run Code Online (Sandbox Code Playgroud)
2)如果有一个名为“ Workstation-11.0.0-and-vSphere-6.0.0”的文件夹,则将其移至其他位置作为备份
3)复制文件夹“ Workstation-10.0.0-and-vSphere-5.5.0”,并将其命名为:
工作站11.0.0和vSphere-6.0.0
4)不要忘记将vmrun路径添加到用户变量:PATH(vmrun路径应类似于以下内容:“ C:\ Program Files(x86)\ VMware \ VMware VIX \”)
现在,vmrun命令应该可以使用了。
以下命令将打开虚拟机:
vmrun -T播放器启动“ D:\ myUser \ VMWare \ Windows7 \ Windows 7.vmx”
在这里遇到了相同的问题,但是版本不同的VMWare Player。
根据我的尝试,我认为您只需要在vixwrapper-config.txt中有一行即可将播放器的版本重定向到VIX文件夹中的这些“ Workstation-xxxx”文件夹之一。
在我的情况下有效的是vixwrapper-config.txt中的这一行
player 17 vmdb 12.1.1 Workstation-10.0.0-and-vSphere-5.5.0
Run Code Online (Sandbox Code Playgroud)
哪里:
12.1.1 是播放器的版本(根据“帮助”中的“关于”框或可执行文件中的属性)
Workstation-10.0.0和vSphere-5.5.0 是VIX程序文件夹中文件夹的名称(我选择了最高版本。似乎不需要复制和重命名文件夹,只需将其指向现有文件夹即可。一个似乎足够)
17:我不知道,但它能起作用:-)(尝试了其他一些值,它也能起作用)
扩展 Paul-et-Mickey 的答案(没有 50 分,不能发表评论,抱歉)。如果您使用的是最新版本的播放器等,请不要忘记包含次要版本。所以对我来说是
播放器 19 vmdb 15.0.2 工作站-12.0.0
要编辑的文件位于 /usr/lib/vmware-vix/vixwrapper-config.txt 中。
| 归档时间: |
|
| 查看次数: |
15105 次 |
| 最近记录: |