2015-08-13 12 views
5

Sto provando a eseguire un file batch sulla mia macchina virtuale tramite VIX vmrun.Vix vmrun non funziona con VMware Player

Per i principianti non vuole nemmeno iniziare. Quando provo questo nella riga di comando:

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

Dice:

Unable to connect to host.

Error: The specified version was not found

Qualsiasi soluzione per questo? Ho sentito che ha qualcosa a che fare con i file di configurazione di VIX che non gestiscono correttamente VMware Player, ma non ho trovato nulla di specifico.

Per la menzione, ho VMware Player versione 7.1.2 e VIX versione 1.13.

Inoltre, non desidero acquistare workstation.

risposta

3

Ok, è riuscito a farlo funzionare, ecco come:

1) Nella cartella VMware \ VMware VIX c'è un file vixwrapper-config.txt. Eseguire un backup e sovrascrivere il seguente sul contenuto del file:

#@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) Se esiste una cartella denominata "Workstation 11.0.0-e-vSphere-6.0.0" quindi spostare da qualche altra parte come un backup

3) Creare una copia della cartella "Workstation 10.0.0-e-vSphere-5.5.0" e il nome:

Workstation-11.0.0-and-vSphere-6.0.0

4) non dimenticare di aggiungere il vmrun percorso della variabile utente: PATH (il percorso vmrun dovrebbe essere qualcosa del tipo: "C: \ Programmi (x86) \ VMware \ VMware VIX \")

Ora i comandi vmrun dovrebbero funzionare.

Il comando seguente apre la VM:

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

1

arrivati ​​qui con lo stesso problema, ma una versione diversa del giocatore VMWare.

Da quello che ho provato, credo che sia necessario avere una riga nel file vixwrapper-config.txt che reindirizza la versione del lettore a una di queste cartelle "Workstation-xxxx" nella cartella VIX.

Che cosa ha funzionato nel mio caso è questa riga nel vixwrapper-config.txt

player 17 vmdb 12.1.1 Workstation-10.0.0-and-vSphere-5.5.0 

Dove:

  • 12.1.1 è la versione del lettore (come per la casella Informazioni nella Guida o proprietà nell'eseguibile)

  • Workstation-10.0.0-and-vSphere-5.5.0 è il nome di una cartella nella cartella del programma VIX (ho scelto la versione più alta.Sembra che ci sia alcun bisogno di copiare e rinominare le cartelle, solo puntando ad uno esistente sembra abbastanza)

  • : Non ho idea, ma funziona :-) (provato alcuni altri valori e lavorato anche)