Kill Hung Task from Esxi
At first you have to investigate where a hang process exists (Clicking summary tab on VM). Then:
- 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.
- 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:
- Kill the parent process by running the command kill id_parent. In my case: kill 84695.
- The hang task should be canceled now.
Comments
Post a Comment