Objective
This article describes how to trigger and capture a memory dump from a Windows Virtual Machine (VM)?? running?? on XenServer.
Troubleshooting unresponsive Windows VMs running on XenServer can be difficult. In some cases, it is necessary to obtain a complete memory dump from the system and analyze it to find the?? root cause of an issue.?? You can?? use special shortcuts to trigger memory dumps by pressing Ctrl key and Scroll Lock?? key twice (Ctrl+ScrLk+ScrLk).
Note: This shortcut works on XenServer and is the preferred method by Microsoft for generating Windows memory dumps.
Refer to the Microsoft KB article, How to generate a kernel or a complete memory dump file in Windows Server 2008 for more information.
Note: The DumpConfigurator.hta file or tool provides a single location to make all the settings necessary for obtaining a complete memory dump including the keyboard shortcut configuration. You can download the utility from?? Windows Platform Tools.
The console keyboard shortcut bindings in XenCenter might interfere with the ability to send the Ctrl+ScrLk+ScrLk key?? sequence to the VM. To confirm, go to Tools > Options > Console in XenCenter. If “Share clipboard contents with remote console” is selected, and “Release keyboard and mouse” is bound to “Right Ctrl”, than the key sequence to trigger the crash dump does not work.
Incorrect
Correct
Instructions
Generate Memory Dump in Windows from the XenServer Host
To trigger and capture a memory dump from a Windows VM running on XenServer, complete the following procedure:
-
Configure the dump type in a computer with Windows operating system.
-
Log on as a user with administrator privileges from the Windows VM and complete the following procedure:
-
Click Start, right-click Computer, and then?? click Properties.
-
Click Advanced system settings on the System page, and then click the Advanced tab.
-
Click Settings in the Startup and Recovery area, and then ensure that you select Complete memory dump in the Write Debugging information section.
Notes:
-
By default, the complete memory dump option is disabled. You can enable the option if your computer has less than 2 GB of physical RAM.
-
To enable the complete memory dump option, manually set the CrashDumpEnabled registry entry to 0x1 in the following registry sub-key and restart Windows:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl
Caution! Refer to the Disclaimer at the end of this article, before editing the registry.
Trigger the Crash on XenServer
To trigger the crash on XenServer, complete the following procedure:
Note: This procedure is not recommended if the memory dump obtained is not as clean as the one obtained by using the keyboard shortcut.??
-
Open a text console (in XenCenter or by using SSH) to XenServer where the VM is running.
-
?? Run the following command to obtain the domain ID?? from the VM from which you would like to collect a memory dump.
# xl?? list | grep -i "VM_NAME"?? ?? ?? ?? ??
?? ?? ?? ?? ?? ?? ??
?? or
?? list_domains | grep -i VM_UUID
In the above case , the domain ID is 2 for the Virtual Machine - Citrix WLB Virtual Appliance
(To find the UUID of the VM , Click on the VM > Click on General Tab > Right click On UUID > copy the UUID to clipboard > Now you can paste the same while executing the command - list_domains | grep -i UUID )
-
Use the domain ID?? obtained from the Step 2?? and?? run the following command
For XenServer 6.0 , 6.0.2 and 6.1
# /usr/lib/xen/bin/crash_guest [domain ID]
eg :?? #?? /usr/lib/xen/bin/crash_guest 2
For XenServer 6.2 and 6.5, use:
# xen-hvmcrash [domain ID]
eg : # xen-hvmcrash 2 -
The Windows VM displays the common blue error screen and starts to dump memory to its file system.
-
After restarting the Windows VM, verify if a memory file dump is created in the configured location.
Additional Resources
Disclaimer
Supporto Citrix
Traduzione automatica
Questo articolo ?? ¨ stato tradotto da un sistema di traduzione automatica e non ?? ¨ stata valutata da persone. Citrix fornisce traduzione automatica per aumentare l'accesso per supportare contenuti; tuttavia, articoli automaticamente tradotte possono possono contenere degli errori. Citrix non ?? ¨ responsabile di incongruenze, errori o danni derivanti dell'uso di articoli automaticamente tradotte.
Citrix技術支持
自動翻譯
這篇文章被翻譯由一個自動翻譯系統,並沒有受到人們的審查。 Citrix提供自動翻譯,增加獲得支持的內容;但是,自動翻譯的文章可能可以包含錯誤。思傑不負責不一致,錯誤或損壞因使用自動翻譯的文章的結果。
Поддержка Citrix
Tradução automática
Эта статья была переведена автоматической системой перевода и не был рассмотрен людьми. Citrix обеспечивает автоматический перевод с целью расширения доступа для поддержки контента; Однако, автоматически переведенные статьи могут может содержать ошибки. Citrix не несет ответственности за несоответствия, ошибки, или повреждения, возникшие в результате использования автоматически переведенных статей.
시트릭스 지원
자동 번역
이 문서 자동 번역 시스템에 의해 번역 된 사람들에 의해 검토되지 않았다. 시트릭스는 컨텐츠를 지원하기 위해 접근을 높이기 위해 자동 번역을 제공합니다; 그러나, 자동으로 번역 기사 오류를 포함 할 수있다. 시트릭스는 자동으로 번역 된 기사의 사용의 결과로 발생하는 불일치, 오류 또는 손해에 대해 책임을지지 않습니다.