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

标签 virtual-machine vmware vmware-player vix

我试图通过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/

相关文章:

windows-10 - 无法连接虚拟设备sata0 :1 because no corresponding device is available on the host

android - adb 可以列出设备,但 adb shell/logcat 不起作用

azure - Azure 上的自动缩放虚拟机 ​​: Day In & Day Out

ubuntu - guest 机器中缺少 Vagrant 同步文件夹

laravel - 在MAC上安装Laravel Homestead时出现问题

vmware - 如何配置虚拟机在主机开启时自动启动

powershell - 使用 SoapUI 运行 VMWare powerCLI 命令

linux - vmware 为 linux 扩大空间

performance - Windows AZURE I/O 测试临时驱动器 D : vs Attached Drives

docker - 在vmware中运行的docker出现x509错误