Azure VM's reboot and are unavailable with black screen seen in Boot Diagnostics

Andrew Azure 26 Reputation points
2021-11-05T14:53:50.36+00:00

Is anyone else having this nightmare with their VM's failing to restart in Azure? Support have been no help and will only help once I have a crash dump file which is very hit and miss unless I enable full crash dump on all our servers.

The issue is the server restarts and never comes back up, you can still ping but the Boot Diagnostics screen is just black, the only option is to force a shutdown and restart.

We haven't imported this issue into Azure as it also affects VM's we built in Azure.

Windows for business | Windows Server | User experience | Other
{count} votes

14 answers

Sort by: Most helpful
  1. Justin Credible 11 Reputation points
    2021-12-22T13:23:27.303+00:00

    Hi @Andrew Azure ,

    We are experiencing the same or similar issues. Ping is okay but the boot diagnostics is as follows:

    159687-bootdiagnostics.png

    This is happening only with Windows Server (2019) GEN2 VM's. Were you able to find any resolution to this issue? This seems to occur randomly - not every reboot ends up in this state. Frustrating issue tbh.

    2 people found this answer helpful.

  2. Jason W 11 Reputation points
    2022-09-15T21:10:33.07+00:00

    I am experiencing the same problem as well. Got a case opened with MS right now to see if I can get it resolved. I have notice that this issue occurs on multiple subscription that I own and randomly on different VMs each time when patching time comes around. I just have a suspicion that something is wrong either on the image/VM combo or the host that is it hosting on. This issue has been going on for a while while i have been trying to generate a memory dump to investigate on. But since the VM is stuck at a state where it seems to not response to the dump triggered by NMI, i have been having trouble getting a dump for them to work on. Have anyone of you experience the same thing on generating a dump?

    2 people found this answer helpful.

  3. Francesco Luminati 11 Reputation points
    2023-01-10T07:02:37.317+00:00

    Good morning everyone, we have the same problem on our VMs, on different tenants, when they are restarted programmatically. Totally randomly we end up with VMs stuck with black screen, and Azure Agent offline. This happens even with Windows 10 Multisession (AVD) VMs!!! Has anyone maybe found a solution or the reason for this problem? Thank you very much

    2 people found this answer helpful.
    0 comments No comments

  4. Sven van Achthoven 21 Reputation points
    2022-09-14T11:24:23.007+00:00

    Has anyone found a solution yet for this issue? Experiencing the same issue with the same VM Image specifications:

    240956-vm.png

    241051-vm2.png

    1 person found this answer helpful.
    0 comments No comments

  5. Niklas Engfelt 21 Reputation points Microsoft Employee
    2022-12-13T14:53:24.38+00:00

    You need to set the registry first for it to listen to the NMI. You should also change registry to get a full dump. (Active dump may be preferred to get a bit smaller)
    Perhaps you can add a policy to your VMs which can have this issue that adds/sets the registry keys to create full dump and to trigger it on NMI.
    Then use Serial Console to send the NMI signal.

    https://learn.microsoft.com/en-gb/troubleshoot/azure/virtual-machines/serial-console-windows#use-the-serial-console-for-nmi-calls
    https://learn.microsoft.com/en-GB/troubleshoot/windows-client/performance/generate-a-kernel-or-complete-crash-dump#use-nmi
    https://support.microsoft.com/kb/969028

    :: Enable dump on NMI
    reg add HKLM\System\CurrentControlSet\Control\CrashControl /v NMICrashDump /t REG_DWORD /d 1 /f
    :: Set Pagefile to RAM+256MB (e g MIN 8448 and MAX 12000 on 8GB VM) and enable Complete memory dump, add also FilterPages to get Active memory dump (smaller, from Windows 10+/2016+)
    reg add HKLM\System\CurrentControlSet\Control\CrashControl /v CrashDumpEnabled /t REG_DWORD /d 1 /f
    reg add HKLM\System\CurrentControlSet\Control\CrashControl /v FilterPages /t REG_DWORD /d 1 /f

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.