VM startup is stuck on "Getting Windows ready. Don't turn off your computer" in Azure
This article describes the "Getting ready" and "Getting Windows ready" screens that you may encounter when you boot a Windows virtual machine (VM) in Microsoft Azure. It provides steps to help you collect data for a support ticket.
Symptoms
A Windows VM does not boot. When you use Boot diagnostics to get the screenshot of the VM, you may see that the VM displays the message "Getting ready" or "Getting Windows ready".
Cause
Usually this issue occurs when the server is doing the final reboot after the configuration was changed. The configuration change might be initialized by Windows updates or by the changes on the roles/feature of the server. For Windows Update, if the size of the updates was large, the operating system needs more time to reconfigure the changes.
Collect an OS memory dump
Tip
If you have a recent backup of the VM, you may try restoring the VM from the backup to fix the boot problem.
If the issue does not resolve after waiting for the changes to process, you would need to collect a memory dump file and contact support. To collect the Dump file, follow these steps:
Attach the OS disk to a recovery VM
- Take a snapshot of the OS disk of the affected VM as a backup. For more information, see Snapshot a disk.
- Attach the OS disk to a recovery VM.
- Remote desktop to the recovery VM.
- If the OS disk is encrypted, you must turn off the encryption before you move to the next step. For more information, see [Decrypt the encrypted OS disk in the VM that cannot boot](troubleshoot-bitlocker-boot-error.md#Decrypt-the-encrypted-OS disk).
Locate dump file and submit a support ticket
- On the recovery VM, go to windows folder in the attached OS disk. If the driver letter that is assigned to the attached OS disk is F, you need to go to F:\Windows.
- Locate the memory.dmp file, and then submit a support ticket with the dump file.
If you cannot find the dump file, move the next step to enable dump log and Serial Console.
Enable dump log and Serial Console
To enable dump log and Serial Console, run the following script.
Open elevated command Prompt session (Run as administrator).
Run the following script:
In this script, we assume that the drive letter that is assigned to the attached OS disk is F. Replace it with the appropriate value in your VM.
reg load HKLM\BROKENSYSTEM F:\windows\system32\config\SYSTEM #Enable Serial Console bcdedit /store F:\boot\bcd /set {bootmgr} displaybootmenu yes bcdedit /store F:\boot\bcd /set {bootmgr} timeout 5 bcdedit /store F:\boot\bcd /set {bootmgr} bootems yes bcdedit /store F:\boot\bcd /ems {default} ON bcdedit /store F:\boot\bcd /emssettings EMSPORT:1 EMSBAUDRATE:115200 #Enable OS Dump REG ADD "HKLM\BROKENSYSTEM\ControlSet001\Control\CrashControl" /v CrashDumpEnabled /t REG_DWORD /d 1 /f REG ADD "HKLM\BROKENSYSTEM\ControlSet001\Control\CrashControl" /v DumpFile /t REG_EXPAND_SZ /d "%SystemRoot%\MEMORY.DMP" /f REG ADD "HKLM\BROKENSYSTEM\ControlSet001\Control\CrashControl" /v NMICrashDump /t REG_DWORD /d 1 /f REG ADD "HKLM\BROKENSYSTEM\ControlSet002\Control\CrashControl" /v CrashDumpEnabled /t REG_DWORD /d 1 /f REG ADD "HKLM\BROKENSYSTEM\ControlSet002\Control\CrashControl" /v DumpFile /t REG_EXPAND_SZ /d "%SystemRoot%\MEMORY.DMP" /f REG ADD "HKLM\BROKENSYSTEM\ControlSet002\Control\CrashControl" /v NMICrashDump /t REG_DWORD /d 1 /f reg unload HKLM\BROKENSYSTEMMake sure that there's enough space on the disk to allocate as much memory as the RAM, which depends on the size that you are selecting for this VM.
If there's not enough space or this is a large size VM (G, GS or E series), you could then change the location where this file will be created and refer that to any other data disk which is attached to the VM. To do this, you will need to change the following key:
reg load HKLM\BROKENSYSTEM F:\windows\system32\config\SYSTEM REG ADD "HKLM\BROKENSYSTEM\ControlSet001\Control\CrashControl" /v DumpFile /t REG_EXPAND_SZ /d "<DRIVE LETTER OF YOUR DATA DISK>:\MEMORY.DMP" /f REG ADD "HKLM\BROKENSYSTEM\ControlSet002\Control\CrashControl" /v DumpFile /t REG_EXPAND_SZ /d "<DRIVE LETTER OF YOUR DATA DISK>:\MEMORY.DMP" /f reg unload HKLM\BROKENSYSTEM
Detach the OS disk and then Re-attach the OS disk to the affected VM.
Start the VM and access the Serial Console.
Select Send Non-Maskable Interrupt(NMI) to trigger the memory dump.
Attach the OS disk to a recovery VM again, collect dump file.
After you collect the dump file, contact Microsoft support to analyze the root cause.
Contact us for help
If you have questions or need help, create a support request, or ask Azure community support.
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ