Advertisement
iarmin

Rebooting a hung HVM in Citrix XenServer

Aug 29th, 2011
1,157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. # Rebooting a hung HVM in Citrix XenServer
  2.  
  3. 1.
  4. Find the UUID of the hung VM.
  5. You can do this via the command line with ‘xe vm-list’ or via XenCenter.
  6.  
  7. 2.
  8. Find the Domain ID of the hung VM.
  9. Run ‘list_domains’ from the command line, and match the UUID with the ID number
  10. id | uuid | state
  11. 0 | 2fe455fe-3185-4abc-bff6-a3e9a04680b0 | R
  12. 47 | 267227f3-a59e-dafe-b183-82210cf51ec4 | B
  13. 59 | 298817fb-8a3e-7501-11e0-045a8aa860ff | B
  14. 60 | 46e3d5aa-2f02-dfdc-b053-9a8ac56ec5d1 | B
  15. 61 | 16cf3204-eb17-5a12-e8d0-c72087bda690 | B
  16. 62 | 1f9053b5-c6ca-40bb-504e-3017c37e7281 | H
  17. 63 | ddaec491-097a-e271-362b-f2f985e26e4a | R
  18. 65 | 55f3b225-4f65-d1ea-aa19-add44c5acce7 | B
  19. 66 | 7adef6fd-9171-5426-b333-6fb1b57b8e60 | B H
  20. 67 | 6046dc13-f70b-8398-56fb-069c22440a7c | B
  21. 68 | f201cd94-a501-00c2-d21e-8c2f03ea167b | B H
  22. In our case, UUID 1f9053b5-c6ca-40bb-504e-3017c37e7281 is hung, which is Domain ID 62.
  23.  
  24. 3.
  25. Run destroy_domain on the Domain ID.
  26. # /opt/xensource/debug/destroy_domain -domid 62
  27.  
  28. 4.
  29. The VM will still show itself as running, so now, we need to reboot it.
  30. # xe vm-reboot name-label='name of the VM' --force
  31.  
  32. 5.
  33. The VM is now rebooted, and you can bring it up as if you had just pulled the plug. That is, check for some disk corruption, etc.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement