gpt4 book ai didi

virtual-machine - Vix vmrun不适用于VMware Player

转载 作者:行者123 更新时间:2023-12-04 03:20:14 26 4
gpt4 key购买 nike

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

对于初学者来说,它甚至都不想启动。当我在命令行中尝试此操作时:

vmrun -T player start "D:\myUser\VMWare\Windows7\Windows 7.vmx"



它说:

Unable to connect to host.

Error: The specified version was not found



有什么解决方法吗?我听说这与无法正确处理VMware Player的VIX配置文件有关,但尚未发现任何特定的内容。

值得一提的是,我有VMware Player版本7.1.2和VIX版本1.13。

我也不想购买工作站。

最佳答案

好的,设法使其正常工作,方法如下:

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)如果有一个名为“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 Files(x86)\VMware\VMware VIX\”)

现在,vmrun命令应该可以使用了。

以下命令将打开虚拟机:

vmrun -T player start "D:\myUser\VMWare\Windows7\Windows 7.vmx"

关于virtual-machine - Vix vmrun不适用于VMware Player,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31985348/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com