Kill Hung Task from Esxi


At first you have to investigate where a hang process exists (Clicking summary tab on VM). Then:
  1. Log in to ESXi host via SSH (using e.g. putty). If the SSH service is not running on ESXi host, please enable it.
To enable SSH from the vSphere Client:
  • Select the host and click the Configuration tab.
  • Click Security Profile in the Software panel.
  • In the Services section, click Properties.
  • Select SSH and click Options.
  • Change the SSH options.
  • Click OK.

  1. Run ps command. If you face problems to find the running processes related to the VM please use grep e.g. ps | grep VM_name. In the below example, I looked for VM named: SPDB1CEN-T:
  2. Kill the parent process by running the command kill id_parent. In my case: kill 84695.
  3. The hang task should be canceled now.

Comments

Popular posts from this blog

Linux VDI with Horizon 6 & Above

Windows Server Update Services (WSUS) – Install and Configure (2008 R2)