Find the UUID of the hung
virtual machines. This is done from the command line of the XenServer hosting
the problem virtual machine. The command to execute is xe vm-list. Another way to find
the UUID of the virtual machine is to click the ‘General’ tab of the virtual
machine in XenCenter.
Once you have the UUID you
need to find the domain ID of the hung virtual machine. This is done by
executing the command list_domains from
the XenServer hosting the problem virtual machine. You will need to match the
UUID with domain ID number. The output of this command will look like this:
id
|
uuid | state
0 |
2fe455fe-3185-4abc-bff6-a3e9a04680b0 | R
47 | 267227f3-a59e-dafe-b183-82210cf51ec4
| B
59 |
298817fb-8a3e-7501-11e0-045a8aa860ff | B
(i.e. UUID
267227f3-a59e-dafe-b183-82210cf51ec4 has a domain ID of 47)
To free the virtual
machine we need to execute destroy_domain command on the domain ID. This is
done by executing the command:
/opt/xensource/debug/destroy_domain –domid 47
Note: 47 is the domain ID
If the Host reports the vm
in a halted state after running xe vm-list,
try to reset the power.
To reset the power state
run the following command:
xe vm-reset-powerstate vm=VM NAME force=true where VM Name is the server name.
Or
xe vm-shutdown vm=VMNAME force=true where VM NAME is the server name.
Once the VM is shutdown,
restart on another XenServer
xe vm-start vm=VMNAME
Sometime running commands using
the XenServer command line will yield you more information about a problem that
otherwise XenCenter may not reveal to you.
For example: If the VM is having issues starting; executing the command xe vm-start name-label=
<Name of VM> will likely get more information about what may be
causing the issue.
Also, sometimes a server
will not report to its host after being migrated. It is either stuck in
powering off (staying in yellow) or powering on. Run this command on from the pool master for that pool.
xe-toolstack-restart
The VM should show back
up. If not close out of XenCenter and reopen.
No comments:
Post a Comment