25

サーバー上で仮想マシンを実行しているのですが、停止または再起動できません。これ以上ログオンできず、VMwareサーバーコンソールを使用して仮想マシンを停止できません。他のVMが実行されているため、ホストを再起動することは問題外です。1台のマシンを強制的に停止させる他の方法はありますか?

4

8 に答える 8

18

Linuxを使用している場合は、ゲストプロセスを取得できます

ps axuw | grep vmware-vmx

@Dubasが指摘したように、VMDへのパス名で誤ったプロセスを選択できるはずです

于 2008-09-17T10:20:06.980 に答える
17

Windows を使用している場合、仮想マシンには、タスク マネージャーに表示される独自のプロセスが必要です。sysinternals Process Explorerを使用して正しいものを見つけ、そこから強制終了します。

于 2008-09-17T10:17:40.900 に答える
5

場合によっては、一時停止できない場合や、VMで「電源」アクションを実行できない場合があります。また、すでに複数のVMが稼働している場合もあります。このプロセスを使用して、強制終了する正しいPIDを特定します。

Windows 7の場合-タスクマネージャーを開きます-「vmware-vmx.exe」という名前のプロセスを探し、PIDをメモします。

[パフォーマンス]タブに切り替えて、[リソースモニター]を起動します。[ディスクアクティビティ]パネルを展開します。「ファイル」列を並べ替えます。強制終了するVMに適したvmdkファイルを探します。「イメージ」列には、「vmware-vmx」プロセスがリストされます。PIDに注意してください。

[プロセス]タブに戻り、PIDを強制終了します。

于 2012-07-16T16:42:56.090 に答える
4

これが私が基づいてしたことです

a)@Espoのコメントと
b)私が遊んでいるのはWindowsタスクマネージャーしかなかったという事実...

ホストマシンにログオンし、タスクマネージャーを開き、表示メニューを使用して[プロセス]タブにPID列を追加しました。

ボックスで実行されていたvmware-wmx.exeプロセスのすべてのインスタンスのPIDを(はい、紙とペンで)書き留めました。

VMWareコンソールを使用して、誤った仮想マシンを一時停止しました。

再開すると、自分のマシンに対応するvmware-vmxプロセスを特定し、それを強制終了することができました。

これまでのところ、悪影響はないようです。

于 2008-09-17T10:58:40.897 に答える
3

ESXi 5 の場合、まず vSphere コンソールから ssh を有効にしてからログインし、次のコマンドを使用してプロセス ID を見つけます。

ps -c | grep -i "machine name"

次に、プロセスIDを見つけて、次を使用してプロセスを終了できますkill

于 2011-09-09T00:15:14.713 に答える
3

VMware の Web ページから以下を参照してください。

ESXi ホスト上の仮想マシンをパワーオフする (1014165) 症状

次の問題が発生しています。

You cannot power off an ESXi hosted virtual machine.
A virtual machine is not responsive and cannot be stopped or killed.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1014165

「ESXi 5.x esxcli コマンドを使用して仮想マシンをパワーオフする

esxcli コマンドをローカルまたはリモートで使用して、ESXi 5.x 上で実行されている仮想マシンをパワーオフできます。詳細については、『vSphere Command-Line Interface Reference』の「esxcli vm Commands」セクションを参照してください。

Open a console session where the esxcli tool is available, either in the ESXi Shell, the vSphere Management Assistant (vMA), or the location where the vSphere Command-Line Interface (vCLI) is installed.

Get a list of running virtual machines, identified by World ID, UUID, Display Name, and path to the .vmx configuration file, using this command:

esxcli vm process list

Power off one of the virtual machines from the list using this command:

esxcli vm process kill --type=[soft,hard,force] --world-id=WorldNumber

Notes:
Three power-off methods are available. Soft is the most graceful, hard performs an immediate shutdown, and force should be used as a last resort.
Alternate power off command syntax is: esxcli vm process kill -t [soft,hard,force] -w WorldNumber

Repeat Step 2 and validate that the virtual machine is no longer running.

ESXi 4.1 の場合:

Get a list of running virtual machines, identified by World ID, UUID, Display Name, and path to the .vmx configuration file, using this command:

esxcli vms vm list

Power off one of the virtual machines from the list using this command:

esxcli vms vm kill --type=[soft,hard,force] --world-id=WorldNumber"
于 2013-09-18T12:52:32.647 に答える
2

VmWare フュージョンの場合は、altキーを押したまま [仮想マシンの再起動] をクリックします。

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1006215

于 2013-08-19T17:25:29.660 に答える