10

VIX vmrun を使用して仮想マシンでバッチ ファイルを実行しようとしています。

手始めに、それは開始したくありません。コマンドラインでこれを試すと:

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

それは言います:

ホストに接続できません。

エラー: 指定されたバージョンが見つかりませんでした

これに対する回避策はありますか?VIX 構成ファイルが VMware Player を適切に処理していないことが関係していると聞きましたが、具体的なことはわかっていません。

ちなみに、私は VMware Player バージョン 7.1.2 と VIX バージョン 1.13 を持っています。

また、ワークステーションは購入したくありません。

4

4 に答える 4

6

同じ問題でここに来ましたが、VMWareプレーヤーのバージョンが異なります。

私が試したところ、vixwrapper-config.txt に、所有しているプレーヤーのバージョンを VIX フォルダー内のこれらの「Workstation-xxxx」フォルダーの 1 つにリダイレクトする行が必要なだけであると思います。

私の場合にうまくいったのは、 vixwrapper-config.txt のこの行です

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

どこ:

  • 12.1.1 はプレーヤーのバージョンです (ヘルプの [バージョン情報] ボックスまたは実行可能ファイルのプロパティによる)

  • Workstation-10.0.0-and-vSphere-5.5.0 は、VIX プログラム フォルダー内のフォルダーの名前です (私は最も高いバージョンを選択しました。フォルダーをコピーして名前を変更する必要はないようです。既存のフォルダーを指すだけです)。 1つで十分なようです)

  • 17 : わかりませんが、うまくいきます :-) (他の値を試してみたところ、うまくいきました)

于 2016-09-08T11:06:48.307 に答える
6

わかりました、なんとか機能させることができました。方法は次のとおりです。

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 および vSphere-6.0.0

4) vmrun パスをユーザー変数 PATH に追加することを忘れないでください (vmrun パスは次のようになります: "C:\Program Files (x86)\VMware\VMware VIX\")

これで、vmrun コマンドが機能するはずです。

次のコマンドは、VM を開きます。

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

于 2015-08-20T13:59:38.220 に答える
5

Paul-et-Mickey からの回答を拡張します (50 ポイントがなく、コメントできません、申し訳ありません)。最新バージョンのプレイヤーなどを使用している場合は、マイナーバージョンも忘れずに記入してください。だから私にとってはそうでした

プレーヤー 19 vmdb 15.0.2 ワークステーション-12.0.0

編集するファイルは /usr/lib/vmware-vix/vixwrapper-config.txt にあります。

于 2019-02-05T10:34:27.513 に答える