Kill Unresponsive VM in XenServer

Kill Unresponsive VM in XenServer Sometimes VMs stuck in an unresponsive state and once you give shutdown command via XenCenter VM never goes offline. The first step could be to do toolstack restart so that you can try force shutdown command. If this is also not resolving the issue you need to find the dom id of the VM and kill it from the command line.

Below are the steps:

1. Go to general tab of the VM and copy the UUID

General tab of the VM for UUID

2. and then on the XenServer console, run the following to get the domid

list_domains | grep UUID

list_domains | grep UUID

The first column is the dom-id of the VM.

 

3. Run the following cmd to destroy:

/opt/xensource/debug/xenops destroy_domain –domid idoftheVM

Bulent Tolu

Bulent Tolu

Bulent is an IT professional with Master's in MIS and 10-years of experience in broad range of Information Technologies. He is exposed to engineering/architecting, implementation/integration, and administration of various high-available IT systems and infrastructure. He has a passion to continually research, test and evaluate new technologies and follow industry best practices to secure and optimize IT systems. Currently, he lives in Istanbul and works as a Sr. Cloud Computing and Virtualization Consultant. He has a diverse knowledge and interest in Virtualization and Cloud Computing.

:: VMware Certified Advanced Professional 5
Data Center Administration (VCAP5-DCA)
Data Center Design (VCAP-DCD)
:: VTSP (VMware Certified Technical Sales Professional 5)
:: MCSE(Microsoft Certified Solutions Expert) – Private Cloud 2012
:: CCEE(Citrix Certified Enterprise Engineer)
Bulent ToluBulent ToluBulent ToluBulent Tolu Bulent Tolu
Bulent Tolu

Leave a Reply