电脑VM虚机无法重启关机的强制处理办法

时间:2022-05-28 18:52:26 电脑 我要投稿
  • 相关推荐

电脑VM虚机无法重启关机的强制处理办法

  有一台虚机无法正常网络连接,通过VSPHERE CLIENT连接到VC中,也无法对其进行重启和关机操作,具体报错截图

电脑VM虚机无法重启关机的强制处理办法

  查看事件日志

  原来是执行VMTOOLS安装程序时出现的问题,询问实施工程师,原来是要进行VMTOOLS的升级未成功出现的问题,虚机现在挂死无任何响应。

  对其进行重启和关机均无任何响应,这台虚机挂有很多RDM裸盘,是存储监控机。需要立即解决问题,删除重建显然来不及。

  那么有没有别的办法可以强制让虚机关机或重启呢?

  下面介绍一种方法。

  首先打开虚机所在ESXI主机的SSH连接功能。

  然后连接到命令行

  执行进程查看,可查看到每个虚机的进程

  # esxcli vm process list|more

  F9EMCSE01

  World ID: 40008824

  Process ID: 0

  VMX Cartel ID: 40008821

  UUID: 42 0a d0 01 38 68 b7 7d-61 5e 4c ab d5 5b f0 6c

  Display Name: F9EMCSE01

  Config File: /vmfs/volumes/55813f75-c661c1ac-dea8-6c0b8462a7e8/F9EMCSE01/F9EMCSE01.vmx

  # esxcli vm process kill --type=

  Error: Missing required parameter -w|--world-id

  Usage: esxcli vm process kill [cmd options]

  Description:

  kill Used to forcibly kill Virtual Machines that are stuck

  and not responding to normal stop operations.

  Cmd options:

  -t|--type=The type of kill operation to attempt. There are three

  types of VM kills that can be attempted: [soft,

  hard, force]. Users should always attempt 'soft' kills

  first, which will give the VMX process a chance to

  shutdown cleanly (like kill or kill -SIGTERM). If that

  does not work move to 'hard' kills which will shutdown

  the process immediately (like kill -9 or kill

  -SIGKILL). 'force' should be used as a last resort

  attempt to kill the VM. If all three fail then a

  reboot is required. (required)

  -w|--world-id=The World ID of the Virtual Machine to kill. This can

  be obtained from the 'vm process list' command

  (required)

  有三种类型,SOFT是杀死虚机进程。HARD是强制杀死,类似KILL -9. FORCE是杀死整个虚机。

  执行语句

  esxcli vm process kill --type=hard --world-id=40008824

  发现虚机已被强制关闭,再重启就正常了,升级VMTOOLS成功。

《电脑VM虚机无法重启关机的强制处理办法.doc》
将本文的Word文档下载到电脑,方便收藏和打印
推荐度:
点击下载文档

【电脑VM虚机无法重启关机的强制处理办法】相关文章:

电脑关机后无法重启怎么办06-04

电脑关机后自动重启的解决办法10-19

电脑关机后自动重启的原因03-21

为什么电脑关机后又自动重启06-04

强制关机对电脑有哪些伤害07-20

电脑关机后自动重启的解决方法06-04

电脑点了关机老是重启的解决方法03-22

电脑老是关机自动重启怎么办06-04

电脑关机后自动又重启怎么办06-04

电脑不定时自动重启的处理方法03-18

在线咨询

电脑VM虚机无法重启关机的强制处理办法

  有一台虚机无法正常网络连接,通过VSPHERE CLIENT连接到VC中,也无法对其进行重启和关机操作,具体报错截图

电脑VM虚机无法重启关机的强制处理办法

  查看事件日志

  原来是执行VMTOOLS安装程序时出现的问题,询问实施工程师,原来是要进行VMTOOLS的升级未成功出现的问题,虚机现在挂死无任何响应。

  对其进行重启和关机均无任何响应,这台虚机挂有很多RDM裸盘,是存储监控机。需要立即解决问题,删除重建显然来不及。

  那么有没有别的办法可以强制让虚机关机或重启呢?

  下面介绍一种方法。

  首先打开虚机所在ESXI主机的SSH连接功能。

  然后连接到命令行

  执行进程查看,可查看到每个虚机的进程

  # esxcli vm process list|more

  F9EMCSE01

  World ID: 40008824

  Process ID: 0

  VMX Cartel ID: 40008821

  UUID: 42 0a d0 01 38 68 b7 7d-61 5e 4c ab d5 5b f0 6c

  Display Name: F9EMCSE01

  Config File: /vmfs/volumes/55813f75-c661c1ac-dea8-6c0b8462a7e8/F9EMCSE01/F9EMCSE01.vmx

  # esxcli vm process kill --type=

  Error: Missing required parameter -w|--world-id

  Usage: esxcli vm process kill [cmd options]

  Description:

  kill Used to forcibly kill Virtual Machines that are stuck

  and not responding to normal stop operations.

  Cmd options:

  -t|--type=The type of kill operation to attempt. There are three

  types of VM kills that can be attempted: [soft,

  hard, force]. Users should always attempt 'soft' kills

  first, which will give the VMX process a chance to

  shutdown cleanly (like kill or kill -SIGTERM). If that

  does not work move to 'hard' kills which will shutdown

  the process immediately (like kill -9 or kill

  -SIGKILL). 'force' should be used as a last resort

  attempt to kill the VM. If all three fail then a

  reboot is required. (required)

  -w|--world-id=The World ID of the Virtual Machine to kill. This can

  be obtained from the 'vm process list' command

  (required)

  有三种类型,SOFT是杀死虚机进程。HARD是强制杀死,类似KILL -9. FORCE是杀死整个虚机。

  执行语句

  esxcli vm process kill --type=hard --world-id=40008824

  发现虚机已被强制关闭,再重启就正常了,升级VMTOOLS成功。