2015-08-13 54 views
5

我想通過VIX vmrun在我的虛擬機上運行批處理文件。Vix vmrun不能與VMware Player兼容

對於初學者來說,它甚至不想開始。當我嘗試這個命令行:

​​

它說:

Unable to connect to host.

Error: The specified version was not found

任何解決方法嗎?我聽說這與VIX配置文件無法正確處理VMware Player有關,但沒有找到任何具體的東西。

提到我有VMware Player版本7.1.2和VIX版本1.13。

另外我不想購買Workstation。

回答

3

好了,設法得到它的工作,方法如下:

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)如果有一個名爲「工作站 - 11.0.0和-的vSphere-6.0.0」,那麼別的地方將它作爲文件夾備份

3)使該文件夾 「工作站 - 10.0.0和-的vSphere-5.5.0」 和名稱的副本吧:

Workstation-11.0.0-and-vSphere-6.0.0

4)不要忘記添加vmrun路徑到用戶變量:路徑(vmrun路徑應該是這樣的:「C:\ Program Files文件(x86)\ VMware \ VMware VIX \」)

現在vmrun命令應該可以工作。

以下命令打開VM:

​​
1

來到這裏同樣的問題,但不同版本的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 

其中:

  • 12.1.1是玩家的版本(如每個幫助中的About框或可執行文件中的屬性)

  • Workstation-10.0.0-and-vSphere-5.5.0是VIX程序文件夾中的文件夾的名稱(我選擇了最高版本。似乎沒有必要複製和重命名文件夾,只需將它指向一個現有的似乎不夠)

  • :我不知道,但它工作:-)(嘗試了一些其他的價值和它也工作)

相關問題